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.
- Author:
- Bryan Scott (for Australian Antarctic Division)
- See Also:
-
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.toString()
Returns the class name.
-
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.
-
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.
-