|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.contrib.SimpleLayouter
org.jhotdraw.contrib.StandardLayouter
public class StandardLayouter
A StandardLayouter contains standard algorithm for layouting a Layoutable. As a standard behaviour all child components of a Layoutable are laid out underneath each other starting from top to bottom while the x position of all child components stays the same and the width is forced to the width of the maximum width. At the end the presentation figure of the Layoutable is set to the maximum x and y size to encompass all contained child components graphically as well.
Constructor Summary | |
---|---|
StandardLayouter()
Default constructor which is needed for the Storable mechanism. |
|
StandardLayouter(Layoutable newLayoutable)
Constructor which associates a StandardLayouter with a certain Layoutable. |
Method Summary | |
---|---|
java.awt.Rectangle |
calculateLayout(java.awt.Point origin,
java.awt.Point corner)
Calculate the layout for the figure and all its subelements. |
Layouter |
create(Layoutable newLayoutable)
Create a new instance of this type and sets the layoutable |
java.awt.Rectangle |
layout(java.awt.Point origin,
java.awt.Point corner)
Method which lays out a figure. |
Methods inherited from class org.jhotdraw.contrib.SimpleLayouter |
---|
getInsets, getLayoutable, read, setInsets, setLayoutable, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardLayouter()
public StandardLayouter(Layoutable newLayoutable)
newLayoutable
- Layoutable to be laid outMethod Detail |
---|
public Layouter create(Layoutable newLayoutable)
create
in interface Layouter
create
in class SimpleLayouter
public java.awt.Rectangle calculateLayout(java.awt.Point origin, java.awt.Point corner)
calculateLayout
in interface Layouter
calculateLayout
in class SimpleLayouter
origin
- start point for the layoutcorner
- minimum corner point for the layout
public java.awt.Rectangle layout(java.awt.Point origin, java.awt.Point corner)
layout
in interface Layouter
layout
in class SimpleLayouter
origin
- start point for the layoutcorner
- minimum corner point for the layout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |