Package org.jfree.chart.ui
Class LCBLayout
- java.lang.Object
-
- org.jfree.chart.ui.LCBLayout
-
- All Implemented Interfaces:
java.awt.LayoutManager,java.io.Serializable
public class LCBLayout extends java.lang.Object implements java.awt.LayoutManager, java.io.SerializableSpecialised layout manager for a grid of components.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intbuttonGapThe gap between each component and button.private static intCOLUMNSA constant for the number of columns in the layout.private int[]colWidthTracks the column widths.private intlabelGapThe gap between each label and component.private int[]rowHeightTracks the row heights.private static longserialVersionUIDFor serialization.private intvGapThe gap between rows.
-
Constructor Summary
Constructors Constructor Description LCBLayout(int maxrows)Creates a new LCBLayout with the specified maximum number of rows.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutComponent(java.awt.Component comp)Not used.voidaddLayoutComponent(java.lang.String name, java.awt.Component comp)Not used.voidlayoutContainer(java.awt.Container parent)Lays out the components.java.awt.DimensionminimumLayoutSize(java.awt.Container parent)Returns the minimum size using this layout manager.java.awt.DimensionpreferredLayoutSize(java.awt.Container parent)Returns the preferred size using this layout manager.voidremoveLayoutComponent(java.awt.Component comp)Not used.voidremoveLayoutComponent(java.lang.String name, java.awt.Component comp)Not used.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
For serialization.- See Also:
- Constant Field Values
-
COLUMNS
private static final int COLUMNS
A constant for the number of columns in the layout.- See Also:
- Constant Field Values
-
colWidth
private int[] colWidth
Tracks the column widths.
-
rowHeight
private int[] rowHeight
Tracks the row heights.
-
labelGap
private int labelGap
The gap between each label and component.
-
buttonGap
private int buttonGap
The gap between each component and button.
-
vGap
private int vGap
The gap between rows.
-
-
Method Detail
-
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Returns the preferred size using this layout manager.- Specified by:
preferredLayoutSizein interfacejava.awt.LayoutManager- Parameters:
parent- the parent.- Returns:
- the preferred size using this layout manager.
-
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Returns the minimum size using this layout manager.- Specified by:
minimumLayoutSizein interfacejava.awt.LayoutManager- Parameters:
parent- the parent.- Returns:
- the minimum size using this layout manager.
-
layoutContainer
public void layoutContainer(java.awt.Container parent)
Lays out the components.- Specified by:
layoutContainerin interfacejava.awt.LayoutManager- Parameters:
parent- the parent.
-
addLayoutComponent
public void addLayoutComponent(java.awt.Component comp)
Not used.- Parameters:
comp- the component.
-
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
Not used.- Specified by:
removeLayoutComponentin interfacejava.awt.LayoutManager- Parameters:
comp- the component.
-
addLayoutComponent
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)Not used.- Specified by:
addLayoutComponentin interfacejava.awt.LayoutManager- Parameters:
name- the component name.comp- the component.
-
removeLayoutComponent
public void removeLayoutComponent(java.lang.String name, java.awt.Component comp)Not used.- Parameters:
name- the component name.comp- the component.
-
-