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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addLayoutChild
(RMShape aChild) Called when a child is added to parent shape.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.Returns the parent for this layout.protected void
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.
-
Constructor Details
-
RMShapeLayout
public RMShapeLayout()
-
-
Method Details
-
getParent
Returns the parent for this layout. -
setParent
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
Called when a child is added to parent shape. -
removeLayoutChild
Called when a child is removed from parent shape. -
clone
Standard clone implementation.
-