Package org.jfree.chart.ui
Class LCBLayout
java.lang.Object
org.jfree.chart.ui.LCBLayout
- All Implemented Interfaces:
LayoutManager,Serializable
Specialised layout manager for a grid of components.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe gap between each component and button.private static final intA constant for the number of columns in the layout.private int[]Tracks the column widths.private intThe gap between each label and component.private int[]Tracks the row heights.private static final longFor serialization.private intThe gap between rows. -
Constructor Summary
ConstructorsConstructorDescriptionLCBLayout(int maxrows) Creates a new LCBLayout with the specified maximum number of rows. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component comp) Not used.voidaddLayoutComponent(String name, Component comp) Not used.voidlayoutContainer(Container parent) Lays out the components.minimumLayoutSize(Container parent) Returns the minimum size using this layout manager.preferredLayoutSize(Container parent) Returns the preferred size using this layout manager.voidNot used.voidremoveLayoutComponent(String name, Component comp) Not used.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization.- See Also:
-
COLUMNS
private static final int COLUMNSA constant for the number of columns in the layout.- See Also:
-
colWidth
private int[] colWidthTracks the column widths. -
rowHeight
private int[] rowHeightTracks the row heights. -
labelGap
private int labelGapThe gap between each label and component. -
buttonGap
private int buttonGapThe gap between each component and button. -
vGap
private int vGapThe gap between rows.
-
-
Constructor Details
-
LCBLayout
public LCBLayout(int maxrows) Creates a new LCBLayout with the specified maximum number of rows.- Parameters:
maxrows- the maximum number of rows.
-
-
Method Details
-
preferredLayoutSize
Returns the preferred size using this layout manager.- Specified by:
preferredLayoutSizein interfaceLayoutManager- Parameters:
parent- the parent.- Returns:
- the preferred size using this layout manager.
-
minimumLayoutSize
Returns the minimum size using this layout manager.- Specified by:
minimumLayoutSizein interfaceLayoutManager- Parameters:
parent- the parent.- Returns:
- the minimum size using this layout manager.
-
layoutContainer
Lays out the components.- Specified by:
layoutContainerin interfaceLayoutManager- Parameters:
parent- the parent.
-
addLayoutComponent
Not used.- Parameters:
comp- the component.
-
removeLayoutComponent
Not used.- Specified by:
removeLayoutComponentin interfaceLayoutManager- Parameters:
comp- the component.
-
addLayoutComponent
Not used.- Specified by:
addLayoutComponentin interfaceLayoutManager- Parameters:
name- the component name.comp- the component.
-
removeLayoutComponent
Not used.- Parameters:
name- the component name.comp- the component.
-