Package com.inductiveautomation.rm.shape
Class RMShapeLayout
java.lang.Object
com.inductiveautomation.rm.shape.RMShapeLayout
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- RMSpringLayout
Handles code for laying out shape children with springs and struts.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddLayoutChild(RMShape aChild) Called when a child is added to parent shape.clone()Standard clone implementation.protected doublecomputePrefHeight(double aWidth) Returns the preferred with of the parent.protected doublecomputePrefWidth(double aHeight) Returns the preferred with of the parent.Returns the parent for this layout.protected voidPerforms layout.protected voidremoveLayoutChild(RMShape aChild) Called when a child is removed from parent shape.voidsetParent(RMParentShape aParent) Sets the parent for this layout.
- 
Constructor Details- 
RMShapeLayoutpublic RMShapeLayout()
 
- 
- 
Method Details- 
getParentReturns the parent for this layout.
- 
setParentSets the parent for this layout.
- 
layoutChildrenprotected void layoutChildren()Performs layout.
- 
computePrefWidthprotected double computePrefWidth(double aHeight) Returns the preferred with of the parent.
- 
computePrefHeightprotected double computePrefHeight(double aWidth) Returns the preferred with of the parent.
- 
addLayoutChildCalled when a child is added to parent shape.
- 
removeLayoutChildCalled when a child is removed from parent shape.
- 
cloneStandard clone implementation.
 
-