org.jfree.layout
Class RadialLayout
java.lang.Object
org.jfree.layout.RadialLayout
- LayoutManager, Serializable
extends java.lang.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.
- Bryan Scott (for Australian Antarctic Division)
RadialLayout() - Constructs this layout manager with default properties.
|
RadialLayout
public RadialLayout()
Constructs this layout manager with default properties.
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
Not used.
name
- the component name.comp
- the component.
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.
main
public static void main(String[] args)
throws Exception
Run a demonstration.
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
Returns the minimum size.
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
Returns the preferred size.
removeLayoutComponent
public void removeLayoutComponent(String name,
Component comp)
Not used.
name
- the component name.comp
- the component.
toString
public String toString()
Returns the class name.