Class RMShapeLayout

java.lang.Object
com.inductiveautomation.rm.shape.RMShapeLayout
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
RMSpringLayout

public class RMShapeLayout extends Object implements Cloneable
Handles code for laying out shape children with springs and struts.
  • Constructor Details

    • RMShapeLayout

      public RMShapeLayout()
  • Method Details

    • 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 class Object