Package com.inductiveautomation.rm.shape
Class RMSpringLayout
java.lang.Object
com.inductiveautomation.rm.shape.RMShapeLayout
com.inductiveautomation.rm.shape.RMSpringLayout
- All Implemented Interfaces:
- PropertyChangeListener,- Cloneable,- EventListener
- Direct Known Subclasses:
- RMTableRowLayout
Handles code for laying out shape children with springs and struts.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddLayoutChild(RMShape aChild) Override to start listening to property changes.clone()Standard clone implementation.protected doublecomputePrefHeight(double aWidth) Returns the preferred with of the parent.protected doublecomputePrefWidth(double aHeight) Override to send to SnapLayout.protected voidOverride to send to SnapLayout.voidpropertyChange(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
- 
Constructor Details- 
RMSpringLayoutpublic RMSpringLayout()
 
- 
- 
Method Details- 
setParentOverride 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
 
- 
cloneStandard clone implementation.- Overrides:
- clonein class- RMShapeLayout
 
- 
addLayoutChildOverride to start listening to property changes.- Overrides:
- addLayoutChildin class- RMShapeLayout
 
- 
removeLayoutChildOverride to stop listening to property changes.- Overrides:
- removeLayoutChildin class- RMShapeLayout
 
- 
resetpublic void reset()Update LayoutInfo for all children.
- 
propertyChangeCalled to revalidate when shape bounds change.- Specified by:
- propertyChangein interface- PropertyChangeListener
 
 
-