BlockNode class abstract

BlockNode is a base class for all nodes with "block" placement rules; it roughly corresponds to <div/> in HTML.

A block node should be able to find its style in the root stylesheet, via the method fillStyles, and then based on that style build the corresponding element in the format method. Both of these methods must be implemented by subclasses.

Implementations include:

  • ColumnNode
  • TextBlockNode (which itself can be a HeaderNode or ParagraphNode)
Implemented types
Implementers

Constructors

BlockNode()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style BlockStyle
The runtime style applied to this node, this will be set by fillStyles.
getter/setter pairoverride-getter

Methods

fillStyles(DocumentStyle stylesheet, InlineTextStyle parentTextStyle) → void
override
format(double availableWidth) BlockElement
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited