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 int
The gap between each component and button.private static final int
A constant for the number of columns in the layout.private int[]
Tracks the column widths.private int
The gap between each label and component.private int[]
Tracks the row heights.private static final long
For serialization.private int
The gap between rows. -
Constructor Summary
ConstructorsConstructorDescriptionLCBLayout
(int maxrows) Creates a new LCBLayout with the specified maximum number of rows. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(Component comp) Not used.void
addLayoutComponent
(String name, Component comp) Not used.void
layoutContainer
(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.void
Not used.void
removeLayoutComponent
(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:
preferredLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the parent.- Returns:
- the preferred size using this layout manager.
-
minimumLayoutSize
Returns the minimum size using this layout manager.- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the parent.- Returns:
- the minimum size using this layout manager.
-
layoutContainer
Lays out the components.- Specified by:
layoutContainer
in interfaceLayoutManager
- Parameters:
parent
- the parent.
-
addLayoutComponent
Not used.- Parameters:
comp
- the component.
-
removeLayoutComponent
Not used.- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Parameters:
comp
- the component.
-
addLayoutComponent
Not used.- Specified by:
addLayoutComponent
in interfaceLayoutManager
- Parameters:
name
- the component name.comp
- the component.
-
removeLayoutComponent
Not used.- Parameters:
name
- the component name.comp
- the component.
-