Class RMFlashTextShape

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

public class RMFlashTextShape extends RMFlashShape
This class writes an RMText shape to flash.
  • Constructor Details

    • RMFlashTextShape

      public RMFlashTextShape(RMShape aShape)
      Creates a new flash text shape from an RMText.
  • Method Details

    • getText

      public RMText getText()
      Returns the flash shape's RMShape as an RMText.
    • getFragShapeCount

      public int getFragShapeCount()
      Returns the number of frag shapes.
    • getFragShape

      public RMFlashShape getFragShape(int anIndex)
      Returns the specific frag shape at the given index.
    • getColor

      public RMColor getColor()
      Returns the text color of the RMText for the first char.
      Overrides:
      getColor in class RMFlashShape
    • getColorZero

      public RMColor getColorZero()
      Returns the text color of the RMText for the first char at time zero.
      Overrides:
      getColorZero in class RMFlashShape
    • getColorNext

      public RMColor getColorNext()
      Returns the text color of the RMText for the current time.
      Overrides:
      getColorNext in class RMFlashShape
    • defineFlash

      public void defineFlash(RMFlash flash)
      Writes flash commands to the given flash object for the encapsulated RMText.
      Overrides:
      defineFlash in class RMFlashShape
    • updateFlash

      public void updateFlash(RMFlash flash)
      Writes flash commands for the encapsulated RMText for the current time.
      Overrides:
      updateFlash in class RMFlashShape
    • removeFlash

      public void removeFlash(RMFlash flash)
      Overrides:
      removeFlash in class RMFlashShape
    • addFrag

      public void addFrag(RMFlash aFlash, RMTextFrag aFrag, float x, float y, RMPoint lastPoint)
    • getFragBounds

      public RMRect getFragBounds(RMTextFrag frag)
    • defineFonts

      public static void defineFonts(RMFlash flash)
    • writeGlyphsForFontName

      public static void writeGlyphsForFontName(RMFlash flash, Vector glyphs, String fontName)