Package com.reportmill.flash
Class RMFlashTextShape
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.flash.RMFlashShape
-
- com.reportmill.flash.RMFlashTextShape
-
- All Implemented Interfaces:
RMArchiver.Archiving
,java.lang.Cloneable
public class RMFlashTextShape extends RMFlashShape
This class writes an RMText shape to flash.
-
-
Constructor Summary
Constructors Constructor Description RMFlashTextShape(RMShape aShape)
Creates a new flash text shape from an RMText.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFrag(RMFlash aFlash, RMTextFrag aFrag, float x, float y, RMPoint lastPoint)
void
defineFlash(RMFlash flash)
Writes flash commands to the given flash object for the encapsulated RMText.static void
defineFonts(RMFlash flash)
RMColor
getColor()
Returns the text color of the RMText for the first char.RMColor
getColorNext()
Returns the text color of the RMText for the current time.RMColor
getColorZero()
Returns the text color of the RMText for the first char at time zero.RMRect
getFragBounds(RMTextFrag frag)
RMFlashShape
getFragShape(int anIndex)
Returns the specific frag shape at the given index.int
getFragShapeCount()
Returns the number of frag shapes.RMText
getText()
Returns the flash shape's RMShape as an RMText.void
removeFlash(RMFlash flash)
void
updateFlash(RMFlash flash)
Writes flash commands for the encapsulated RMText for the current time.static void
writeGlyphsForFontName(RMFlash flash, java.util.Vector glyphs, java.lang.String fontName)
-
Methods inherited from class com.reportmill.flash.RMFlashShape
defineFlashChildren, defineFlashFill, getActionScript, getChild, getChildCount, getDrawsFill, getDrawsStroke, getFill, getMorphRatio, getNextOpacity, getNextTransform, getShape, getStroke, needsTransformUpdate, newFlashShape, newFlashShapePrimitive, removeFlashChildren, setShapeId, updateFlashChildren
-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
Constructor Detail
-
RMFlashTextShape
public RMFlashTextShape(RMShape aShape)
Creates a new flash text shape from an RMText.
-
-
Method Detail
-
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 classRMFlashShape
-
getColorZero
public RMColor getColorZero()
Returns the text color of the RMText for the first char at time zero.- Overrides:
getColorZero
in classRMFlashShape
-
getColorNext
public RMColor getColorNext()
Returns the text color of the RMText for the current time.- Overrides:
getColorNext
in classRMFlashShape
-
defineFlash
public void defineFlash(RMFlash flash)
Writes flash commands to the given flash object for the encapsulated RMText.- Overrides:
defineFlash
in classRMFlashShape
-
updateFlash
public void updateFlash(RMFlash flash)
Writes flash commands for the encapsulated RMText for the current time.- Overrides:
updateFlash
in classRMFlashShape
-
removeFlash
public void removeFlash(RMFlash flash)
- Overrides:
removeFlash
in classRMFlashShape
-
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, java.util.Vector glyphs, java.lang.String fontName)
-
-