Package org.jfree.layout
Class RadialLayout
java.lang.Object
org.jfree.layout.RadialLayout
- All Implemented Interfaces:
LayoutManager
,Serializable
RadialLayout is a component layout manager. Compents are laid out in a
circle. If only one component is contained in the layout it is positioned
centrally, otherwise components are evenly spaced around the centre with
the first component placed to the North.
This code was developed to display CTD rosette firing control WARNING: Not thoughly tested, use at own risk.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
The maximum component height.private int
The maximum component width.private int
The minimum height.private int
The minimum width.private int
The preferred height.private int
The preferred width.private static final long
For serialization.private boolean
Size unknown flag. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayoutComponent
(Component comp) Not used.void
addLayoutComponent
(String name, Component comp) Not used.void
layoutContainer
(Container parent) This is called when the panel is first displayed, and every time its size changes.static void
Run a demonstration.minimumLayoutSize
(Container parent) Returns the minimum size.preferredLayoutSize
(Container parent) Returns the preferred size.void
Not used.void
removeLayoutComponent
(String name, Component comp) Not used.private void
Sets the sizes attribute of the RadialLayout object.toString()
Returns the class name.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization.- See Also:
-
minWidth
private int minWidthThe minimum width. -
minHeight
private int minHeightThe minimum height. -
maxCompWidth
private int maxCompWidthThe maximum component width. -
maxCompHeight
private int maxCompHeightThe maximum component height. -
preferredWidth
private int preferredWidthThe preferred width. -
preferredHeight
private int preferredHeightThe preferred height. -
sizeUnknown
private boolean sizeUnknownSize unknown flag.
-
-
Constructor Details
-
RadialLayout
public RadialLayout()Constructs this layout manager with default properties.
-
-
Method Details
-
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.
-
setSizes
Sets the sizes attribute of the RadialLayout object.- Parameters:
parent
- the parent.- See Also:
-
preferredLayoutSize
Returns the preferred size.- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the parent.- Returns:
- The preferred size.
- See Also:
-
minimumLayoutSize
Returns the minimum size.- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the parent.- Returns:
- The minimum size.
- See Also:
-
layoutContainer
This is called when the panel is first displayed, and every time its size changes. Note: You CAN'T assume preferredLayoutSize or minimumLayoutSize will be called -- in the case of applets, at least, they probably won't be.- Specified by:
layoutContainer
in interfaceLayoutManager
- Parameters:
parent
- the parent.- See Also:
-
toString
Returns the class name. -
main
Run a demonstration.- Parameters:
args
- ignored.- Throws:
Exception
- when an error occurs.
-