|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Layouter
A Layouter encapsulates a algorithm to layout a figure. It is passed on to a figure which delegates the layout task to the Layouter's layout method. The Layouter might need access to some information specific to a certain figure in order to layout it out properly. Note: Currently, only the GraphicalCompositeFigure uses such a Layouter to layout its child components.
GraphicalCompositeFigure
Method Summary | |
---|---|
java.awt.Rectangle |
calculateLayout(java.awt.Point origin,
java.awt.Point corner)
|
java.awt.Insets |
getInsets()
Get the insets for spacing between the figure and its subfigures |
java.awt.Rectangle |
layout(java.awt.Point origin,
java.awt.Point corner)
Method which lays out a figure. |
void |
setInsets(java.awt.Insets newInsets)
Set the insets for spacing between the figure and its subfigures |
Methods inherited from interface CH.ifa.draw.util.Storable |
---|
read, write |
Method Detail |
---|
java.awt.Rectangle calculateLayout(java.awt.Point origin, java.awt.Point corner)
java.awt.Rectangle layout(java.awt.Point origin, java.awt.Point corner)
origin
- start point for the layoutcorner
- minimum corner point for the layoutvoid setInsets(java.awt.Insets newInsets)
newInsets
- new spacing dimensionsjava.awt.Insets getInsets()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |