Class RMMorphShape

All Implemented Interfaces:
Archivable, DeepChangeListener, RMPropertyChanger, RMTypes, PropertyChangeListener, Cloneable, EventListener

public class RMMorphShape extends RMShape
An RMShape subclass to support morphing from one shape to another.
  • Constructor Details

    • RMMorphShape

      public RMMorphShape()
  • Method Details

    • getMorphing

      public float getMorphing()
      Returns the morph factor.
    • setMorphing

      public void setMorphing(float aValue)
      Sets the morph factor.
    • getShapeCount

      public int getShapeCount()
      Returns the number of shapes to morph.
    • getShape

      public RMShape getShape(int anIndex)
      Returns the indivudal sahpe at given index.
    • addShape

      public void addShape(RMShape aShape)
      Adds a shape to shapes list.
    • getMorphingShape

      public RMMorphShape.Morphing2D getMorphingShape()
      Returns the current morphing.
    • getMorphingShapeIndex

      public int getMorphingShapeIndex()
      Returns the index of the morphing shape for the current morphing value.
    • getMorphingShape

      public RMMorphShape.Morphing2D getMorphingShape(int anIndex)
      Returns the morphing at the given index.
    • getPath

      public RMPath getPath()
      Returns the morph path for this shape.
      Overrides:
      getPath in class RMShape
    • toXML

      public RXElement toXML(RXArchiver anArchiver)
      XML archival.
      Specified by:
      toXML in interface Archivable
      Overrides:
      toXML in class RMShape
    • fromXML

      public Object fromXML(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.
      Specified by:
      fromXML in interface Archivable
      Overrides:
      fromXML in class RMShape