mseries.utils
Class MSpinnerLayout
java.lang.Object
mseries.utils.MSpinnerLayout
- All Implemented Interfaces:
- LayoutManager
public class MSpinnerLayout
- extends Object
- implements LayoutManager
Layout manager for a spinner type display.
Divides the space into three, add the textfield first, then the top right component
then the bottom right. The image shows buttons on the right hand side which is the
most likely usage but any component could be added.
The right hand components get resized to be twice as wide as the are high, and they will always
occupy the full height of the component as assigned by the parent layout manager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MSpinnerLayout
public MSpinnerLayout()
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
- Specified by:
addLayoutComponent in interface LayoutManager
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Specified by:
removeLayoutComponent in interface LayoutManager
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Specified by:
preferredLayoutSize in interface LayoutManager
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Specified by:
minimumLayoutSize in interface LayoutManager
layoutContainer
public void layoutContainer(Container parent)
- Specified by:
layoutContainer in interface LayoutManager
rectangleForCurrentValue
protected Rectangle rectangleForCurrentValue()
- Returns the area that is reserved for drawing the currently selected item.
Copyright © 2001-2007 M Newstead. All Rights Reserved.