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 intThe maximum component height.private intThe maximum component width.private intThe minimum height.private intThe minimum width.private intThe preferred height.private intThe preferred width.private static final longFor serialization.private booleanSize unknown flag. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLayoutComponent(Component comp) Not used.voidaddLayoutComponent(String name, Component comp) Not used.voidlayoutContainer(Container parent) This is called when the panel is first displayed, and every time its size changes.static voidRun a demonstration.minimumLayoutSize(Container parent) Returns the minimum size.preferredLayoutSize(Container parent) Returns the preferred size.voidNot used.voidremoveLayoutComponent(String name, Component comp) Not used.private voidSets 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:
removeLayoutComponentin interfaceLayoutManager- Parameters:
comp- the component.
-
addLayoutComponent
Not used.- Specified by:
addLayoutComponentin 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:
preferredLayoutSizein interfaceLayoutManager- Parameters:
parent- the parent.- Returns:
- The preferred size.
- See Also:
-
minimumLayoutSize
Returns the minimum size.- Specified by:
minimumLayoutSizein 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:
layoutContainerin 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.
-