Dart Documentationorson_chartsFlowElement

FlowElement class

A container element that arranges its children in a horizontal flow layout.


AbstractTableElement > FlowElement




new FlowElement() #

Creates a new instance.


Color backgroundColor #

inherited from AbstractTableElement

The background color.

Color foregroundColor #

inherited from AbstractTableElement

The foreground color.

num hgap #

The gap between elements in the horizontal flow.

HAlign horizontalAlignment #

The horizontal alignment for the elements in the case that the FlowElement is rendered with bounds wider than it requires.

Insets insets #

inherited from AbstractTableElement

The insets.

RefPt2D refPoint #

inherited from AbstractTableElement

The reference point for the element.

String tag #

inherited from AbstractTableElement

The element tag.


void addElement(TableElement element) #

Adds an element.

docs inherited from ContainerElement

void draw(CanvasRenderingContext2D context, Rectangle bounds) #

Draws this element and all of its children on the canvas within the specified bounds.

docs inherited from TableElement

List<Rectangle> layoutElements(CanvasRenderingContext2D context, Rectangle bounds) #

Calculates the layout for the elements within this element, returning a list of bounding rectangles.

docs inherited from TableElement

Dimension2D preferredSize(CanvasRenderingContext2D context, Rectangle bounds) #

Returns the preferred size of the element. The bounds provides some context regarding the maximum available height and width.

docs inherited from TableElement

void receive(TableElementVisitor visitor) #

Iterates over all the elements in this flow container and calls receive(visitor) for each of them.