Package org.jfree.layout
Class RadialLayout
- java.lang.Object
-
- org.jfree.layout.RadialLayout
-
- All Implemented Interfaces:
LayoutManager
,Serializable
public class RadialLayout extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RadialLayout()
Constructs this layout manager with default properties.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
main(String[] args)
Run a demonstration.Dimension
minimumLayoutSize(Container parent)
Returns the minimum size.Dimension
preferredLayoutSize(Container parent)
Returns the preferred size.void
removeLayoutComponent(Component comp)
Not used.void
removeLayoutComponent(String name, Component comp)
Not used.String
toString()
Returns the class name.
-
-
-
Method Detail
-
addLayoutComponent
public void addLayoutComponent(Component comp)
Not used.- Parameters:
comp
- the component.
-
removeLayoutComponent
public void removeLayoutComponent(Component comp)
Not used.- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Parameters:
comp
- the component.
-
addLayoutComponent
public void addLayoutComponent(String name, Component comp)
Not used.- Specified by:
addLayoutComponent
in interfaceLayoutManager
- Parameters:
name
- the component name.comp
- the component.
-
removeLayoutComponent
public void removeLayoutComponent(String name, Component comp)
Not used.- Parameters:
name
- the component name.comp
- the component.
-
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
Returns the preferred size.- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the parent.- Returns:
- The preferred size.
- See Also:
LayoutManager
-
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
Returns the minimum size.- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Parameters:
parent
- the parent.- Returns:
- The minimum size.
- See Also:
LayoutManager
-
layoutContainer
public void layoutContainer(Container parent)
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:
LayoutManager
-
toString
public String toString()
Returns the class name.
-
-