Package com.inductiveautomation.rm.shape
Class RMSpringLayout
- java.lang.Object
- 
- com.inductiveautomation.rm.shape.RMShapeLayout
- 
- com.inductiveautomation.rm.shape.RMSpringLayout
 
 
- 
- All Implemented Interfaces:
- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 - Direct Known Subclasses:
- RMTableRowLayout
 
 public class RMSpringLayout extends RMShapeLayout implements java.beans.PropertyChangeListener Handles code for laying out shape children with springs and struts.
- 
- 
Constructor SummaryConstructors Constructor Description RMSpringLayout()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutChild(RMShape aChild)Override to start listening to property changes.RMSpringLayoutclone()Standard clone implementation.protected doublecomputePrefHeight(double aWidth)Returns the preferred with of the parent.protected doublecomputePrefWidth(double aHeight)Override to send to SnapLayout.protected voidlayoutChildren()Override to send to SnapLayout.voidpropertyChange(java.beans.PropertyChangeEvent anEvent)Called to revalidate when shape bounds change.voidremoveLayoutChild(RMShape aChild)Override to stop listening to property changes.voidreset()Update LayoutInfo for all children.voidsetParent(RMParentShape aParent)Override to send to SnapLayout.- 
Methods inherited from class com.inductiveautomation.rm.shape.RMShapeLayoutgetParent
 
- 
 
- 
- 
- 
Method Detail- 
setParentpublic void setParent(RMParentShape aParent) Override to send to SnapLayout.- Overrides:
- setParentin class- RMShapeLayout
 
 - 
layoutChildrenprotected void layoutChildren() Override to send to SnapLayout.- Overrides:
- layoutChildrenin class- RMShapeLayout
 
 - 
computePrefWidthprotected double computePrefWidth(double aHeight) Override to send to SnapLayout.- Overrides:
- computePrefWidthin class- RMShapeLayout
 
 - 
computePrefHeightprotected double computePrefHeight(double aWidth) Description copied from class:RMShapeLayoutReturns the preferred with of the parent.- Overrides:
- computePrefHeightin class- RMShapeLayout
 
 - 
clonepublic RMSpringLayout clone() Standard clone implementation.- Overrides:
- clonein class- RMShapeLayout
 
 - 
addLayoutChildpublic void addLayoutChild(RMShape aChild) Override to start listening to property changes.- Overrides:
- addLayoutChildin class- RMShapeLayout
 
 - 
removeLayoutChildpublic void removeLayoutChild(RMShape aChild) Override to stop listening to property changes.- Overrides:
- removeLayoutChildin class- RMShapeLayout
 
 - 
resetpublic void reset() Update LayoutInfo for all children.
 - 
propertyChangepublic void propertyChange(java.beans.PropertyChangeEvent anEvent) Called to revalidate when shape bounds change.- Specified by:
- propertyChangein interface- java.beans.PropertyChangeListener
 
 
- 
 
-