Dart Documentationorson_chartsAnchor2D

Anchor2D class

Specifies a location relative to some not-yet-determined rectangle in 2D-space (the getAnchorPoint() method will return a specific location given a rectangle as input).

Static Properties

final Anchor2D BOTTOM_CENTER #

References a point in the middle of the bottom edge of a rectangle.

final Anchor2D BOTTOM_LEFT #

References a point at the bottom left corner of a rectangle.

final Anchor2D BOTTOM_RIGHT #

References a point at the bottom right corner of a rectangle.

final Anchor2D CENTER #

References a point in the center of a rectangle.

final Anchor2D CENTER_LEFT #

References a point in the middle of the left edge of a rectangle.

final Anchor2D CENTER_RIGHT #

References a point in the middle of the right edge of a rectangle.

final Anchor2D TOP_CENTER #

References a point in the middle of the top edge of a rectangle.

final Anchor2D TOP_LEFT #

References a point at the top left corner of a rectangle.

final Anchor2D TOP_RIGHT #

References a point at the top right corner of a rectangle.

Constructors

new Anchor2D(RefPt2D refPt, Offset2D offset) #

Constructs a new instance.

Properties

Offset2D offset #

RefPt2D refPt #

Methods

Point getAnchorPoint(Rectangle rect) #

Calculates the anchor point for the supplied rect.