| Modifier and Type | Field and Description |
|---|---|
static AttributeKey<Locator> |
LAYOUT_LOCATOR
LayoutLocator property used by the children to specify their location
relative to the compositeFigure.
|
| Constructor and Description |
|---|
LocatorLayouter()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D.Double |
calculateLayout(CompositeFigure compositeFigure,
java.awt.geom.Point2D.Double anchor,
java.awt.geom.Point2D.Double lead)
Calculate the layout for the figure and all its subelements.
|
java.awt.geom.Rectangle2D.Double |
layout(CompositeFigure compositeFigure,
java.awt.geom.Point2D.Double anchor,
java.awt.geom.Point2D.Double lead)
Method which lays out a figure.
|
public static final AttributeKey<Locator> LAYOUT_LOCATOR
public java.awt.geom.Rectangle2D.Double calculateLayout(CompositeFigure compositeFigure, java.awt.geom.Point2D.Double anchor, java.awt.geom.Point2D.Double lead)
LayoutercalculateLayout in interface Layouteranchor - start point for the layoutlead - minimum lead point for the layoutpublic java.awt.geom.Rectangle2D.Double layout(CompositeFigure compositeFigure, java.awt.geom.Point2D.Double anchor, java.awt.geom.Point2D.Double lead)
Layouter