de.erichseifert.gral.graphics.layout
Interface Layout
-
- All Superinterfaces:
- java.io.Serializable
- All Known Subinterfaces:
- OrientedLayout
- All Known Implementing Classes:
- AbstractLayout, AbstractOrientedLayout, EdgeLayout, OuterEdgeLayout, StackedLayout, TableLayout
public interface Layout extends java.io.SerializableInterface that provides basic functions for arranging a layout. Functionality includes the arrangement of components and returning the preferred size of a specified container using this layout.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description doublegetGapX()Returns the amount of horizontal space between two layed out components.doublegetGapY()Returns the amount of vertical space between two layed out components.java.awt.geom.Dimension2DgetPreferredSize(Container container)Returns the preferred size of the specified container using this layout.voidlayout(Container container)Arranges the components of the specified container according to this layout.voidsetGapX(double gapX)Sets the amount of horizontal space between two layed out components.voidsetGapY(double gapY)Sets the amount of horizontal space between two layed out components.
-
-
-
Method Detail
-
getGapX
double getGapX()
Returns the amount of horizontal space between two layed out components.- Returns:
- Space in pixels.
-
setGapX
void setGapX(double gapX)
Sets the amount of horizontal space between two layed out components.- Parameters:
gapX- Space in pixels.
-
getGapY
double getGapY()
Returns the amount of vertical space between two layed out components.- Returns:
- Space in pixels.
-
setGapY
void setGapY(double gapY)
Sets the amount of horizontal space between two layed out components.- Parameters:
gapY- Space in pixels.
-
layout
void layout(Container container)
Arranges the components of the specified container according to this layout.- Parameters:
container- Container to be laid out.
-
getPreferredSize
java.awt.geom.Dimension2D getPreferredSize(Container container)
Returns the preferred size of the specified container using this layout.- Parameters:
container- Container whose preferred size is to be returned.- Returns:
- Preferred extent of the specified container.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG