Class 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 Detail

      • RMShapeLayout

        public RMShapeLayout()
    • 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 class java.lang.Object