Dart Documentationorson_chartsTextElement

TextElement class

A table element that displays text.

Extends

AbstractTableElement > TextElement

Implements

TableElement

Constructors

new TextElement(String text, Font font) #

Creates a new instance with the specified text and font (and defaults to LEFT alignment).

Properties

HAlign alignment #

The horizontal alignment for the text.

Color backgroundColor #

inherited from AbstractTableElement

The background color.

Font font #

The font.

Color foregroundColor #

inherited from AbstractTableElement

The foreground color.

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.

String text #

The text.

Methods

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) #

inherited from AbstractTableElement

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