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.
|
getParent
public void setParent(RMParentShape aParent)
setParent
in class RMShapeLayout
protected void layoutChildren()
layoutChildren
in class RMShapeLayout
protected double computePrefWidth(double aHeight)
computePrefWidth
in class RMShapeLayout
protected double computePrefHeight(double aWidth)
RMShapeLayout
computePrefHeight
in class RMShapeLayout
public RMSpringLayout clone()
clone
in class RMShapeLayout
public void addLayoutChild(RMShape aChild)
addLayoutChild
in class RMShapeLayout
public void removeLayoutChild(RMShape aChild)
removeLayoutChild
in class RMShapeLayout
public void reset()
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener