Class RMFlowShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener
Direct Known Subclasses:
RMGraphLegend

public class RMFlowShape extends RMParentShape
A shape to layout children with flow.
  • Constructor Details

    • RMFlowShape

      public RMFlowShape()
  • Method Details

    • getSpacingX

      public double getSpacingX()
      Returns the horizontal spacing between children.
    • setSpacingX

      public void setSpacingX(double aSpacing)
      Sets the horizontal spacing between children.
    • getSpacingY

      public double getSpacingY()
      Returns the vertical spacing between children.
    • setSpacingY

      public void setSpacingY(double aSpacing)
      Sets the vertical spacing between children.
    • getWraps

      public boolean getWraps()
      Returns whether to wrap children to bounds of parent.
    • setWraps

      public void setWraps(boolean aValue)
      Sets whether to wrap children to bounds of parent.
    • computePrefWidth

      protected double computePrefWidth(double aHeight)
      Override to send to SnapLayout.
      Overrides:
      computePrefWidth in class RMParentShape
    • computePrefHeight

      protected double computePrefHeight(double aWidth)
      Override to send to SnapLayout.
      Overrides:
      computePrefHeight in class RMParentShape
    • layoutChildren

      protected void layoutChildren()
      Override to send to SnapLayout.
      Overrides:
      layoutChildren in class RMParentShape
    • addLayoutChild

      public void addLayoutChild(RMShape aChild)
      Override to set child MinWidth/MinHeight.
      Overrides:
      addLayoutChild in class RMParentShape
    • propertyChange

      public void propertyChange(PropertyChangeEvent anEvent)
      Catch child size changes (when not doing layout) to set minimum size.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class RMShape
    • paintShape

      public void paintShape(RMShapePainter aPntr)
      Override to paint dashed box around bounds.
      Overrides:
      paintShape in class RMShape
    • toXMLShape

      public RXElement toXMLShape(RXArchiver anArchiver)
      XML Archival.
      Overrides:
      toXMLShape in class RMParentShape
    • fromXMLShape

      public void fromXMLShape(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Overrides:
      fromXMLShape in class RMParentShape
    • clone

      public RMParentShape clone()
      Standard clone implementation.
      Overrides:
      clone in class RMParentShape