|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.contrib.SimpleLayouter
public class SimpleLayouter
Constructor Summary | |
---|---|
SimpleLayouter(Layoutable newLayoutable)
|
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.Insets |
getInsets()
Get the insets for spacing between the figure and its subfigures |
Layoutable |
getLayoutable()
Get the figure upon which the layout strategy operates. |
java.awt.Rectangle |
layout(java.awt.Point origin,
java.awt.Point corner)
Method which lays out a figure. |
void |
read(StorableInput dr)
Reads the contained figures from StorableInput. |
void |
setInsets(java.awt.Insets newInsets)
Set the insets for spacing between the figure and its subfigures |
void |
setLayoutable(Layoutable newLayoutable)
Set the figure upon which the layout strategy operates. |
void |
write(StorableOutput dw)
Writes the contained figures to the StorableOutput. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleLayouter(Layoutable newLayoutable)
Method Detail |
---|
public Layoutable getLayoutable()
public void setLayoutable(Layoutable newLayoutable)
newLayoutable
- Layoutable to be laid outpublic void setInsets(java.awt.Insets newInsets)
setInsets
in interface Layouter
newInsets
- new spacing dimensionspublic java.awt.Insets getInsets()
getInsets
in interface Layouter
public Layouter create(Layoutable newLayoutable)
create
in interface Layouter
public java.awt.Rectangle calculateLayout(java.awt.Point origin, java.awt.Point corner)
Layouter
calculateLayout
in interface Layouter
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)
Layouter
layout
in interface Layouter
origin
- start point for the layoutcorner
- minimum corner point for the layoutpublic void read(StorableInput dr) throws java.io.IOException
read
in interface Storable
java.io.IOException
public void write(StorableOutput dw)
write
in interface Storable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |