public interface Layouter
Strategy
Composite figures can be laid out using different layout algorithms which
are implemented by layouters.
Context: CompositeFigure
; Strategy: Layouter
.
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.
|
java.awt.geom.Rectangle2D.Double calculateLayout(CompositeFigure compositeFigure, java.awt.geom.Point2D.Double anchor, java.awt.geom.Point2D.Double lead)
anchor
- start point for the layoutlead
- minimum lead point for the layoutjava.awt.geom.Rectangle2D.Double layout(CompositeFigure compositeFigure, java.awt.geom.Point2D.Double anchor, java.awt.geom.Point2D.Double lead)
anchor
- start point for the layoutlead
- minimum lead point for the layout