com.ibm.dse.desktop
Class ComponentInfo
java.lang.Object
|
+--com.ibm.dse.desktop.ComponentInfo
- public class ComponentInfo
- extends java.lang.Object
This class stores information about the original size of all the components of the Desktop.
When a resize is done the new size is modified depending on the original size stored by this class.
Constructor Summary |
ComponentInfo()
This constructor creates a ComponentInfo object. |
Method Summary |
java.awt.Point |
getLocation()
Returns the value of the location property. |
java.awt.Dimension |
getSize()
Returns the value of the size property. |
void |
setLocation(java.awt.Point newLocation)
Sets the value of the newLocation property. |
void |
setSize(java.awt.Dimension NewSize)
Sets the value of the newSize property. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ComponentInfo
public ComponentInfo()
- This constructor creates a ComponentInfo object.
getLocation
public java.awt.Point getLocation()
- Returns the value of the location property.
- Returns:
- java.awt.Point - The current value of location.
getSize
public java.awt.Dimension getSize()
- Returns the value of the size property.
- Returns:
- java.awt.Dimension - The current value of size.
setLocation
public void setLocation(java.awt.Point newLocation)
- Sets the value of the newLocation property.
- Parameters:
newLocation
- java.awt.Point The new value of the property.
setSize
public void setSize(java.awt.Dimension NewSize)
- Sets the value of the newSize property.
- Parameters:
newSize
- java.awt.Dimension The new value of the property.