public class RMSpringLayout extends RMShapeLayout implements java.beans.PropertyChangeListener
| Constructor and Description |
|---|
RMSpringLayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutChild(RMShape aChild)
Override to start listening to property changes.
|
RMSpringLayout |
clone()
Standard clone implementation.
|
protected double |
computePrefHeight(double aWidth)
Returns the preferred with of the parent.
|
protected double |
computePrefWidth(double aHeight)
Override to send to SnapLayout.
|
protected void |
layoutChildren()
Override to send to SnapLayout.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Called to revalidate when shape bounds change.
|
void |
removeLayoutChild(RMShape aChild)
Override to stop listening to property changes.
|
void |
reset()
Update LayoutInfo for all children.
|
void |
setParent(RMParentShape aParent)
Override to send to SnapLayout.
|
getParentpublic void setParent(RMParentShape aParent)
setParent in class RMShapeLayoutprotected void layoutChildren()
layoutChildren in class RMShapeLayoutprotected double computePrefWidth(double aHeight)
computePrefWidth in class RMShapeLayoutprotected double computePrefHeight(double aWidth)
RMShapeLayoutcomputePrefHeight in class RMShapeLayoutpublic RMSpringLayout clone()
clone in class RMShapeLayoutpublic void addLayoutChild(RMShape aChild)
addLayoutChild in class RMShapeLayoutpublic void removeLayoutChild(RMShape aChild)
removeLayoutChild in class RMShapeLayoutpublic void reset()
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange in interface java.beans.PropertyChangeListener