DoubleHierarchicalRenderer

com.phasmidsoftware.tableparser.core.render.HierarchicalRenderer.DoubleHierarchicalRenderer
See theDoubleHierarchicalRenderer companion object

Trait DoubleHierarchicalRenderer extends the UntaggedHierarchicalRenderer to provide rendering capabilities specifically for objects of type Double in a hierarchical structure.

This trait is used to define how instances of Double can be represented in a hierarchical format, inheriting the basic behavior and methods from the UntaggedHierarchicalRenderer type class.

Key Features:

  • Automatic support for rendering Double objects in a hierarchical layout.
  • Includes rendering functionality inherited from UntaggedHierarchicalRenderer, such as the render method.
  • Provides a default styling structure through the style property inherited from the parent trait.

This trait simplifies the customization and usage of hierarchical renderers specific to the Double type and can be utilized as part of a rendering pipeline where structured data representations are needed.

Attributes

See also

UntaggedHierarchicalRenderer for more details on the base functionality.

Companion
object
Graph
Supertypes
trait HierarchicalRenderer[Double]
trait Renderer[Double, Node]
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Inherited methods

def asString(t: Double): String

Method to render content as a String. This method is invoked only when T is not a Product, sequence or Option. Normally, the default method is what is required, but it might be necessary to override in some situations. This method does not apply to style or attribute values.

Method to render content as a String. This method is invoked only when T is not a Product, sequence or Option. Normally, the default method is what is required, but it might be necessary to override in some situations. This method does not apply to style or attribute values.

Value parameters

t

the content value.

Attributes

Returns

a String corresponding to t.

Inherited from:
HierarchicalRenderer
def render(t: Double, attrs: Map[String, String]): Node

Render an instance of T as a U.

Render an instance of T as a U.

Value parameters

attrs

a map of attributes for this value of U.

t

the input parameter, i.e. the object to be rendered.

Attributes

Returns

a new instance of U.

Inherited from:
UntaggedHierarchicalRenderer
def render(t: Double): Node

Render an instance of T as an O, qualifying the rendering with no attributes.

Render an instance of T as an O, qualifying the rendering with no attributes.

Value parameters

t

a T to be rendered.

Attributes

Returns

an instance of type O.

Inherited from:
Renderer

Inherited fields

val baseAttrs: Map[String, String]

Defines the base attribute set for type T.

Defines the base attribute set for type T.

Attributes

Inherited from:
HierarchicalRenderer
val style: String

Defines the default style for type T.

Defines the default style for type T.

Attributes

Inherited from:
UntaggedHierarchicalRenderer