Dart Documentationorson_chartsAbstractTableElement

AbstractTableElement abstract class

The base class for table elements.

Subclasses

ColorScaleElement, FlowElement, GridElement, ShapeElement, TextElement, VerticalFlowElement

Implements

TableElement

Static Properties

final Color DEFAULT_BACKGROUND_COLOR #

The default background color (a semi-transparent white).

Constructors

new AbstractTableElement() #

Default constructor.

Properties

Color backgroundColor #

The background color.

Color foregroundColor #

The foreground color.

Insets insets #

The insets.

RefPt2D refPoint #

The reference point for the element.

String tag #

The element tag.

Methods

abstract void draw(CanvasRenderingContext2D context, Rectangle bounds) #

inherited from TableElement

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

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

inherited from TableElement

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

abstract Dimension2D preferredSize(CanvasRenderingContext2D context, Rectangle bounds) #

inherited from TableElement

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

void receive(TableElementVisitor visitor) #

Receives a visitor. This is part of a general mechanism for traversing a structure of table elements and performing operations on each one.

docs inherited from TableElement