|
|||||||||
| Home >> All >> javatools >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javatools.swing
Class ResizeManager

java.lang.Objectjavatools.swing.ResizeManager
- public class ResizeManager
- extends java.lang.Object
It's a class to manage resizing in form in which the GridBagLayout
is used.
Preferably do not use it, but if you want improve it...
- Version:
- 0.0.1
| Field Summary | |
int |
BOTH
Both horizontal and vertical resizing will be performed. |
private java.util.LinkedList |
componentList
|
private java.awt.Dimension |
containerInitialDimension
|
private java.awt.Dimension |
containerMinDimension
|
int |
HORIZONTAL
Only horizontal resizing will be performed. |
private java.util.LinkedList |
initialDimensions
|
private java.awt.Container |
managedContainer
|
private java.util.LinkedList |
minDimensions
|
int |
NONE
No resizing will be performed. |
private java.util.LinkedList |
resizeChoiceList
|
int |
VERTICAL
Only vertical resizing will be performed. |
| Constructor Summary | |
ResizeManager()
Creates new ResizeManager |
|
| Method Summary | |
void |
addComponent(javax.swing.JComponent comp,
java.awt.Dimension dims,
int resizeOpt)
Adds a component to resize on resizing of the monitored container. |
javax.swing.JComponent |
getComponent(int numComponent)
Returns a referenced component. |
java.awt.Container |
getContainer()
Returns the monitored container. |
java.awt.Dimension |
getContainerInitialDimension()
Returns initial dimension of the monitored container. |
java.awt.Dimension |
getContainerMinDimension()
Returns minimum dimension of the monitored container. |
java.awt.Dimension |
getInitialDimension(int numComponent)
Returns initial dimension of a component. |
int |
getNumComponents()
Returns the number of managed components. |
int |
getResizeOption(int numComponent)
Returns the resize option for a component. |
void |
initSize()
Initializes the monitored object with initials sizes. |
void |
removeComponent(int numComponent)
Removes a component from the list. |
void |
resize()
Resizes the form by taking current dimension of the container. |
void |
setContainer(java.awt.Container cont,
java.awt.Dimension initialDims,
java.awt.Dimension minDims)
Sets the container whose dimension will be checked. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
NONE
public final int NONE
- No resizing will be performed.
- See Also:
- Constant Field Values
HORIZONTAL
public final int HORIZONTAL
- Only horizontal resizing will be performed.
- See Also:
- Constant Field Values
VERTICAL
public final int VERTICAL
- Only vertical resizing will be performed.
- See Also:
- Constant Field Values
BOTH
public final int BOTH
- Both horizontal and vertical resizing will be performed.
- See Also:
- Constant Field Values
managedContainer
private java.awt.Container managedContainer
containerInitialDimension
private java.awt.Dimension containerInitialDimension
containerMinDimension
private java.awt.Dimension containerMinDimension
componentList
private java.util.LinkedList componentList
initialDimensions
private java.util.LinkedList initialDimensions
minDimensions
private java.util.LinkedList minDimensions
resizeChoiceList
private java.util.LinkedList resizeChoiceList
| Constructor Detail |
ResizeManager
public ResizeManager()
- Creates new ResizeManager
| Method Detail |
setContainer
public void setContainer(java.awt.Container cont, java.awt.Dimension initialDims, java.awt.Dimension minDims)
- Sets the container whose dimension will be checked.
getContainer
public java.awt.Container getContainer()
- Returns the monitored container.
getContainerInitialDimension
public java.awt.Dimension getContainerInitialDimension()
- Returns initial dimension of the monitored container.
getContainerMinDimension
public java.awt.Dimension getContainerMinDimension()
- Returns minimum dimension of the monitored container.
addComponent
public void addComponent(javax.swing.JComponent comp, java.awt.Dimension dims, int resizeOpt)
- Adds a component to resize on resizing of the monitored container.
getNumComponents
public int getNumComponents()
- Returns the number of managed components.
getComponent
public javax.swing.JComponent getComponent(int numComponent) throws java.lang.IndexOutOfBoundsException
- Returns a referenced component.
removeComponent
public void removeComponent(int numComponent)
throws java.lang.IndexOutOfBoundsException
- Removes a component from the list.
getInitialDimension
public java.awt.Dimension getInitialDimension(int numComponent) throws java.lang.IndexOutOfBoundsException
- Returns initial dimension of a component.
getResizeOption
public int getResizeOption(int numComponent)
throws java.lang.IndexOutOfBoundsException
- Returns the resize option for a component.
resize
public void resize()
- Resizes the form by taking current dimension of the container.
initSize
public void initSize()
- Initializes the monitored object with initials sizes.
|
|||||||||
| Home >> All >> javatools >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javatools.swing.ResizeManager