ist.palcom.visualization.engines.swing.widgets.custom
Class PalWindow.LeaseLayouter
java.lang.Object
ist.palcom.visualization.engines.swing.widgets.custom.PalWindow.LeaseLayouter
- Enclosing class:
- PalWindow
protected class PalWindow.LeaseLayouter
- extends java.lang.Object
|
Method Summary |
java.awt.Point |
getLease(java.lang.Object object)
Gets a new lease for an object. |
void |
remove(java.lang.Object component)
Removes the lease for the component if it
exists and creates an available lease in
its place. |
void |
reset()
Resets the lease layout. |
void |
setHeight(int height)
|
void |
setWidth(int width)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PalWindow.LeaseLayouter
public PalWindow.LeaseLayouter(int normHeight,
int normWidth)
remove
public void remove(java.lang.Object component)
- Removes the lease for the component if it
exists and creates an available lease in
its place.
- Parameters:
component - The component to remove the lease for.
getLease
public java.awt.Point getLease(java.lang.Object object)
- Gets a new lease for an object. Tries first to look up released leases
- Parameters:
object - The object to get a lease for - used as key
- Returns:
- a lease (as a point)
reset
public void reset()
- Resets the lease layout. Removes all layout'ed
components and all free leases.
setHeight
public void setHeight(int height)
setWidth
public void setWidth(int width)