org.jhotdraw.draw.layouter
Class LocatorLayouter
- java.lang.Object
-
- org.jhotdraw.draw.layouter.LocatorLayouter
-
-
Field Summary
Fields Modifier and Type Field and Description static AttributeKey<Locator>LAYOUT_LOCATORLayoutLocator property used by the children to specify their location relative to the compositeFigure.
-
Constructor Summary
Constructors Constructor and Description LocatorLayouter()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.geom.Rectangle2D.DoublecalculateLayout(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.Doublelayout(CompositeFigure compositeFigure, java.awt.geom.Point2D.Double anchor, java.awt.geom.Point2D.Double lead)Method which lays out a figure.
-
-
-
Field Detail
-
LAYOUT_LOCATOR
public static final AttributeKey<Locator> LAYOUT_LOCATOR
LayoutLocator property used by the children to specify their location relative to the compositeFigure.
-
-
Method Detail
-
calculateLayout
public java.awt.geom.Rectangle2D.Double calculateLayout(CompositeFigure compositeFigure, java.awt.geom.Point2D.Double anchor, java.awt.geom.Point2D.Double lead)
Description copied from interface:LayouterCalculate the layout for the figure and all its subelements. The layout is not actually performed but just its dimensions are calculated.- Specified by:
calculateLayoutin interfaceLayouteranchor- start point for the layoutlead- minimum lead point for the layout
-
layout
public java.awt.geom.Rectangle2D.Double layout(CompositeFigure compositeFigure, java.awt.geom.Point2D.Double anchor, java.awt.geom.Point2D.Double lead)
Description copied from interface:LayouterMethod which lays out a figure. It is called by the figure if a layout task is to be performed. Implementing classes specify a certain layout algorithm in this method.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG