public class RadialLayout
extends java.lang.Object
implements java.awt.LayoutManager, java.io.Serializable
This code was developed to display CTD rosette firing control WARNING: Not thoughly tested, use at own risk.
Modifier and Type | Field and Description |
---|---|
private int |
maxCompHeight
The maximum component height.
|
private int |
maxCompWidth
The maximum component width.
|
private int |
minHeight
The minimum height.
|
private int |
minWidth
The minimum width.
|
private int |
preferredHeight
The preferred height.
|
private int |
preferredWidth
The preferred width.
|
private static long |
serialVersionUID
For serialization.
|
private boolean |
sizeUnknown
Size unknown flag.
|
Constructor and Description |
---|
RadialLayout()
Constructs this layout manager with default properties.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.awt.Component comp)
Not used.
|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Not used.
|
void |
layoutContainer(java.awt.Container parent)
This is called when the panel is first displayed, and every time its size
changes.
|
static void |
main(java.lang.String[] args)
Run a demonstration.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Returns the minimum size.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Returns the preferred size.
|
void |
removeLayoutComponent(java.awt.Component comp)
Not used.
|
void |
removeLayoutComponent(java.lang.String name,
java.awt.Component comp)
Not used.
|
private void |
setSizes(java.awt.Container parent)
Sets the sizes attribute of the RadialLayout object.
|
java.lang.String |
toString()
Returns the class name.
|
private static final long serialVersionUID
private int minWidth
private int minHeight
private int maxCompWidth
private int maxCompHeight
private int preferredWidth
private int preferredHeight
private boolean sizeUnknown
public RadialLayout()
public void addLayoutComponent(java.awt.Component comp)
comp
- the component.public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- the component.public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
name
- the component name.comp
- the component.public void removeLayoutComponent(java.lang.String name, java.awt.Component comp)
name
- the component name.comp
- the component.private void setSizes(java.awt.Container parent)
parent
- the parent.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
parent
- the parent.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
parent
- the parent.LayoutManager
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
parent
- the parent.LayoutManager
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- ignored.java.lang.Exception
- when an error occurs.