CH.ifa.draw.contrib
Interface Layouter
-
- All Superinterfaces:
- java.io.Serializable, Storable
- All Known Implementing Classes:
- StandardLayouter
public interface Layouter extends java.io.Serializable, Storable
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.- See Also:
GraphicalCompositeFigure
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.awt.RectanglecalculateLayout(java.awt.Point origin, java.awt.Point corner)java.awt.InsetsgetInsets()Get the insets for spacing between the figure and its subfiguresjava.awt.Rectanglelayout(java.awt.Point origin, java.awt.Point corner)Method which lays out a figure.voidsetInsets(java.awt.Insets newInsets)Set the insets for spacing between the figure and its subfigures
-
-
-
Method Detail
-
calculateLayout
java.awt.Rectangle calculateLayout(java.awt.Point origin, java.awt.Point corner)
-
layout
java.awt.Rectangle layout(java.awt.Point origin, java.awt.Point corner)Method 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.- Parameters:
origin- start point for the layoutcorner- minimum corner point for the layout
-
setInsets
void setInsets(java.awt.Insets newInsets)
Set the insets for spacing between the figure and its subfigures- Parameters:
newInsets- new spacing dimensions
-
getInsets
java.awt.Insets getInsets()
Get the insets for spacing between the figure and its subfigures- Returns:
- spacing dimensions
-
-
DataMelt 3.0 © DataMelt by jWork.ORG