Class RMSpringLayout

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.lang.Cloneable, java.util.EventListener
    Direct Known Subclasses:
    RMTableRowLayout

    public class RMSpringLayout
    extends RMShapeLayout
    implements java.beans.PropertyChangeListener
    Handles code for laying out shape children with springs and struts.
    • Constructor Detail

      • RMSpringLayout

        public RMSpringLayout()
    • Method Detail

      • computePrefWidth

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

        protected double computePrefHeight​(double aWidth)
        Description copied from class: RMShapeLayout
        Returns the preferred with of the parent.
        Overrides:
        computePrefHeight in class RMShapeLayout
      • reset

        public void reset()
        Update LayoutInfo for all children.
      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent anEvent)
        Called to revalidate when shape bounds change.
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener