|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.layout.RadialLayout
public class RadialLayout
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.
| Constructor Summary | |
|---|---|
RadialLayout()
Constructs this layout manager with default properties. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RadialLayout()
| Method Detail |
|---|
public void addLayoutComponent(Component comp)
comp - the component.public void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagercomp - the component.
public void addLayoutComponent(String name,
Component comp)
addLayoutComponent in interface LayoutManagername - the component name.comp - the component.
public void removeLayoutComponent(String name,
Component comp)
name - the component name.comp - the component.public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerparent - the parent.
LayoutManagerpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerparent - the parent.
LayoutManagerpublic void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerparent - the parent.LayoutManagerpublic String toString()
toString in class Object
public static void main(String[] args)
throws Exception
args - ignored.
Exception - when an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||