Package com.inductiveautomation.rm.shape
Class RMShapeLayout
- java.lang.Object
- 
- com.inductiveautomation.rm.shape.RMShapeLayout
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 - Direct Known Subclasses:
- RMSpringLayout
 
 public class RMShapeLayout extends java.lang.Object implements java.lang.CloneableHandles code for laying out shape children with springs and struts.
- 
- 
Constructor SummaryConstructors Constructor Description RMShapeLayout()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddLayoutChild(RMShape aChild)Called when a child is added to parent shape.RMShapeLayoutclone()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.RMParentShapegetParent()Returns the parent for this layout.protected voidlayoutChildren()Performs layout.protected voidremoveLayoutChild(RMShape aChild)Called when a child is removed from parent shape.voidsetParent(RMParentShape aParent)Sets the parent for this layout.
 
- 
- 
- 
Method Detail- 
getParentpublic RMParentShape getParent() Returns the parent for this layout.
 - 
setParentpublic void setParent(RMParentShape aParent) Sets 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.
 - 
addLayoutChildprotected void addLayoutChild(RMShape aChild) Called when a child is added to parent shape.
 - 
removeLayoutChildprotected void removeLayoutChild(RMShape aChild) Called when a child is removed from parent shape.
 - 
clonepublic RMShapeLayout clone() Standard clone implementation.- Overrides:
- clonein class- java.lang.Object
 
 
- 
 
-