com.klg.jclass.swing.gauge
Class RadialLayout
java.lang.Object
|
+--com.klg.jclass.swing.gauge.RadialLayout
- public class RadialLayout
- extends Object
- implements LayoutManager2, Serializable
RadialLayout -- lays out RadialConstraint
components
.
- See Also:
- Serialized Form
constraints
protected Vector constraints
- List of locations
components
protected Vector components
- List of components
RadialLayout
public RadialLayout()
addLayoutComponent
public void addLayoutComponent(Component comp,
Object constraint)
- Specified by:
- addLayoutComponent in interface LayoutManager2
- Parameters:
comp
- constraint
-
getLayoutAlignmentX
public float getLayoutAlignmentX(Container c)
- Specified by:
- getLayoutAlignmentX in interface LayoutManager2
getLayoutAlignmentY
public float getLayoutAlignmentY(Container c)
- Specified by:
- getLayoutAlignmentY in interface LayoutManager2
invalidateLayout
public void invalidateLayout(Container c)
- Specified by:
- invalidateLayout in interface LayoutManager2
maximumLayoutSize
public Dimension maximumLayoutSize(Container c)
- Specified by:
- maximumLayoutSize in interface LayoutManager2
addLayoutComponent
public void addLayoutComponent(String r,
Component comp)
removeLayoutComponent
public void removeLayoutComponent(Component comp)
preferredLayoutSize
public Dimension preferredLayoutSize(Container target)
minimumLayoutSize
public Dimension minimumLayoutSize(Container target)
layoutContainer
public void layoutContainer(Container target)
- Lays out the container radially. Each component
encapsulates the angle and extent at which it would like
to be placed in the circle.
- Parameters:
target
-
toString
public String toString()
- Overrides:
- toString in class Object