Class RMFlashMorphShape

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class RMFlashMorphShape extends RMFlashShape
This flash shape subclass is for shapes that change size or color.
  • Constructor Details

    • RMFlashMorphShape

      public RMFlashMorphShape(RMShape aShape, Map morphMap, int fillIndex)
      Create flash morph shape.
  • Method Details

    • getMorphRatio

      public float getMorphRatio(RMFlash aFlash)
      Return the current morph ratio (valid during frame generation).
      Overrides:
      getMorphRatio in class RMFlashShape
    • needsTransformUpdate

      public boolean needsTransformUpdate()
      Description copied from class: RMFlashShape
      Returns whether shape needs explicit transform update (valid for flash morph shape during frame generation).
      Overrides:
      needsTransformUpdate in class RMFlashShape
    • defineFlash

      public void defineFlash(RMFlash flash)
      Description copied from class: RMFlashShape
      Defines the flash for this shape.
      Overrides:
      defineFlash in class RMFlashShape
    • getMorphMap

      public static Map getMorphMap(RMShape aShape, float aTime, int fillIndex)
    • getMorphFrameAfterTime

      public static Number getMorphFrameAfterTime(RMShape aShape, float aTime, int fillIndex)
      Returns the next time (after a given time) that a given shape has a "Morph" change (width, height, color, line-width, stroke-color). The problem with this is that even ranges before or between actual morphs get morphed (from and to the same state). Not the end of the world, but it needs to be fixed.