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.Cloneable
Handles code for laying out shape children with springs and struts.
-
-
Constructor Summary
Constructors Constructor Description RMShapeLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addLayoutChild(RMShape aChild)
Called when a child is added to parent shape.RMShapeLayout
clone()
Standard clone implementation.protected double
computePrefHeight(double aWidth)
Returns the preferred with of the parent.protected double
computePrefWidth(double aHeight)
Returns the preferred with of the parent.RMParentShape
getParent()
Returns the parent for this layout.protected void
layoutChildren()
Performs layout.protected void
removeLayoutChild(RMShape aChild)
Called when a child is removed from parent shape.void
setParent(RMParentShape aParent)
Sets the parent for this layout.
-
-
-
Method Detail
-
getParent
public RMParentShape getParent()
Returns the parent for this layout.
-
setParent
public void setParent(RMParentShape aParent)
Sets the parent for this layout.
-
layoutChildren
protected void layoutChildren()
Performs layout.
-
computePrefWidth
protected double computePrefWidth(double aHeight)
Returns the preferred with of the parent.
-
computePrefHeight
protected double computePrefHeight(double aWidth)
Returns the preferred with of the parent.
-
addLayoutChild
protected void addLayoutChild(RMShape aChild)
Called when a child is added to parent shape.
-
removeLayoutChild
protected void removeLayoutChild(RMShape aChild)
Called when a child is removed from parent shape.
-
clone
public RMShapeLayout clone()
Standard clone implementation.- Overrides:
clone
in classjava.lang.Object
-
-