dsto.dfc.swing.controls
Class NumericSpinner.LayoutManager

java.lang.Object
  extended by dsto.dfc.swing.controls.NumericSpinner.LayoutManager
All Implemented Interfaces:
LayoutManager, Serializable
Enclosing class:
NumericSpinner

protected class NumericSpinner.LayoutManager
extends Object
implements LayoutManager, Serializable

Custom layout manager for NumericSpinner. Auto-sizes buttons and text field for best effect based on desired height of text field.

See Also:
Serialized Form

Field Summary
protected  int currentArrowHeight
           
protected  Dimension smallestButtonSize
           
 
Constructor Summary
NumericSpinner.LayoutManager()
           
 
Method Summary
 void addLayoutComponent(String name, Component component)
           
 void layoutContainer(Container parent)
           
 Dimension minimumLayoutSize(Container parent)
           
 Dimension preferredLayoutSize(Container parent)
           
 void removeLayoutComponent(Component component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

smallestButtonSize

protected Dimension smallestButtonSize

currentArrowHeight

protected int currentArrowHeight
Constructor Detail

NumericSpinner.LayoutManager

public NumericSpinner.LayoutManager()
Method Detail

addLayoutComponent

public void addLayoutComponent(String name,
                               Component component)
Specified by:
addLayoutComponent in interface LayoutManager

removeLayoutComponent

public void removeLayoutComponent(Component component)
Specified by:
removeLayoutComponent in interface LayoutManager

minimumLayoutSize

public Dimension minimumLayoutSize(Container parent)
Specified by:
minimumLayoutSize in interface LayoutManager

preferredLayoutSize

public Dimension preferredLayoutSize(Container parent)
Specified by:
preferredLayoutSize in interface LayoutManager

layoutContainer

public void layoutContainer(Container parent)
Specified by:
layoutContainer in interface LayoutManager


Copyright © 2008 Commonwealth of Australia