Joda System API

org.joda.swing
Class JRadioButtonPanel.Layout

java.lang.Object
  |
  +--org.joda.swing.JRadioButtonPanel.Layout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable
Enclosing class:
JRadioButtonPanel

public static class JRadioButtonPanel.Layout
extends java.lang.Object
implements java.awt.LayoutManager2, java.io.Serializable

Layout manager to manage the radio buttons

See Also:
Serialized Form

Constructor Summary
JRadioButtonPanel.Layout(java.awt.Container target, int columns)
           
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
           
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
protected  void calculate(java.awt.Container target)
          Do the calc
protected  int calculateColumns(java.awt.Container target)
          Calculate the number of columns
protected  int calculateRows(java.awt.Container target)
          Calculate the number of columns
 int getColumns()
          Gets the number of columns to group the radio buttons in.
 float getLayoutAlignmentX(java.awt.Container target)
           
 float getLayoutAlignmentY(java.awt.Container target)
           
 void invalidateLayout(java.awt.Container target)
           
 void layoutContainer(java.awt.Container target)
           
 java.awt.Dimension maximumLayoutSize(java.awt.Container target)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRadioButtonPanel.Layout

public JRadioButtonPanel.Layout(java.awt.Container target,
                                int columns)
Method Detail

getColumns

public int getColumns()
Gets the number of columns to group the radio buttons in.

Returns:
the number of columns

getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container target)
Specified by:
getLayoutAlignmentX in interface java.awt.LayoutManager2
See Also:
LayoutManager2.getLayoutAlignmentX(Container)

getLayoutAlignmentY

public float getLayoutAlignmentY(java.awt.Container target)
Specified by:
getLayoutAlignmentY in interface java.awt.LayoutManager2
See Also:
LayoutManager2.getLayoutAlignmentY(Container)

invalidateLayout

public void invalidateLayout(java.awt.Container target)
Specified by:
invalidateLayout in interface java.awt.LayoutManager2
See Also:
LayoutManager2.invalidateLayout(Container)

addLayoutComponent

public void addLayoutComponent(java.awt.Component comp,
                               java.lang.Object constraints)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager2
See Also:
LayoutManager2.addLayoutComponent(Component, Object)

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager
See Also:
LayoutManager.addLayoutComponent(String, Component)

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
See Also:
LayoutManager.removeLayoutComponent(Component)

layoutContainer

public void layoutContainer(java.awt.Container target)
Specified by:
layoutContainer in interface java.awt.LayoutManager
See Also:
LayoutManager.layoutContainer(Container)

calculateColumns

protected int calculateColumns(java.awt.Container target)
Calculate the number of columns


calculateRows

protected int calculateRows(java.awt.Container target)
Calculate the number of columns


calculate

protected void calculate(java.awt.Container target)
Do the calc


minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
See Also:
LayoutManager.minimumLayoutSize(Container)

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
See Also:
LayoutManager.preferredLayoutSize(Container)

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
Specified by:
maximumLayoutSize in interface java.awt.LayoutManager2
See Also:
LayoutManager2.maximumLayoutSize(Container)

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.