|
JHotDraw 7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.draw.LocatorLayouter
public class LocatorLayouter
A layouter which lays out all children of a CompositeFigure according to their LayoutLocator property..
Field Summary | |
---|---|
static AttributeKey<Locator> |
LAYOUT_LOCATOR
LayoutLocator property used by the children to specify their location relative to the compositeFigure. |
Constructor Summary | |
---|---|
LocatorLayouter()
Creates a new instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AttributeKey<Locator> LAYOUT_LOCATOR
Constructor Detail |
---|
public LocatorLayouter()
Method Detail |
---|
public java.awt.geom.Rectangle2D.Double calculateLayout(CompositeFigure compositeFigure, java.awt.geom.Point2D.Double anchor, java.awt.geom.Point2D.Double lead)
Layouter
calculateLayout
in interface Layouter
anchor
- 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
layout
in interface Layouter
anchor
- start point for the layoutlead
- minimum lead point for the layout
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |