edu.stanford.smi.protege.util
Class ResizingLayout
java.lang.Object
edu.stanford.smi.protege.util.ResizingLayout
- All Implemented Interfaces:
- LayoutManager, LayoutManager2
public class ResizingLayout
- extends Object
- implements LayoutManager2
Layout manager that simply scales the existing components by default. A component
can also be designated to take up all of either the extra horizontal or vertical space.
- Author:
- Ray Fergerson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HORIZONTAL_STRETCHER
public static final String HORIZONTAL_STRETCHER
- See Also:
- Constant Field Values
VERTICAL_STRETCHER
public static final String VERTICAL_STRETCHER
- See Also:
- Constant Field Values
FILLING_VERTICALLY
public static final String FILLING_VERTICALLY
- See Also:
- Constant Field Values
FILLING_HORIZONTALLY
public static final String FILLING_HORIZONTALLY
- See Also:
- Constant Field Values
VERTICAL_FILL_DEFAULT
public static final boolean VERTICAL_FILL_DEFAULT
- See Also:
- Constant Field Values
HORIZONTAL_FILL_DEFAULT
public static final boolean HORIZONTAL_FILL_DEFAULT
- See Also:
- Constant Field Values
ResizingLayout
public ResizingLayout()
addLayoutComponent
public void addLayoutComponent(Component c,
Object constraint)
- Specified by:
addLayoutComponent
in interface LayoutManager2
addLayoutComponent
public void addLayoutComponent(String s,
Component c)
- Specified by:
addLayoutComponent
in interface LayoutManager
setResizeVertically
public void setResizeVertically(boolean b)
getLayoutAlignmentX
public float getLayoutAlignmentX(Container c)
- Specified by:
getLayoutAlignmentX
in interface LayoutManager2
getLayoutAlignmentY
public float getLayoutAlignmentY(Container c)
- Specified by:
getLayoutAlignmentY
in interface LayoutManager2
getSize
public static Dimension getSize(Container container)
invalidateLayout
public void invalidateLayout(Container c)
- Specified by:
invalidateLayout
in interface LayoutManager2
layoutContainer
public void layoutContainer(Container container)
- Specified by:
layoutContainer
in interface LayoutManager
maximumLayoutSize
public Dimension maximumLayoutSize(Container c)
- Specified by:
maximumLayoutSize
in interface LayoutManager2
minimumLayoutSize
public Dimension minimumLayoutSize(Container c)
- Specified by:
minimumLayoutSize
in interface LayoutManager
preferredLayoutSize
public Dimension preferredLayoutSize(Container container)
- Specified by:
preferredLayoutSize
in interface LayoutManager
removeLayoutComponent
public void removeLayoutComponent(Component c)
- Specified by:
removeLayoutComponent
in interface LayoutManager
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2007 Stanford University.