Package com.reportmill.flash
Class RMFlashShape
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.flash.RMFlashShape
-
- All Implemented Interfaces:
RMArchiver.Archiving
,java.lang.Cloneable
- Direct Known Subclasses:
RMFlashButtonShape
,RMFlashImageShape
,RMFlashMorphShape
,RMFlashSoundShape
,RMFlashSpriteShape
,RMFlashTextShape
public class RMFlashShape extends RMObject
This class is responsible for writing simple RMShapes to a flash buffer.
-
-
Constructor Summary
Constructors Constructor Description RMFlashShape(RMShape aShape, int fillIndex)
Creates a new flash-shape from the given shape.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineFlash(RMFlash flash)
Defines the flash for this shape.void
defineFlashChildren(RMFlash flash)
void
defineFlashFill(RMFlash flash)
java.lang.String
getActionScript()
Returns the shape actionscript.RMFlashShape
getChild(int anIndex)
Returns the specific flash-shape child at the given index.int
getChildCount()
Returns the number of flash-shape children of this flash-shape.RMColor
getColor()
Returns the current shape text color.RMColor
getColorNext()
Returns the next shape text color.RMColor
getColorZero()
Returns the original shape text color.boolean
getDrawsFill()
Returns whether this flash shape draws a fill.boolean
getDrawsStroke()
Returns whether this flash shape draws a stroke.RMFill
getFill()
Returns the shape fill.float
getMorphRatio(RMFlash flash)
Returns the current morph ratio (valid for flash morph shape during frame generation.float
getNextOpacity()
Returns the next opacity for this shape.RMTransform
getNextTransform()
Returns the next transform for this shape.RMShape
getShape()
Returns the RMShape encapsulated by this flash-shape.RMStroke
getStroke()
Returns the shape fill as a stroke.boolean
needsTransformUpdate()
Returns whether shape needs explicit transform update (valid for flash morph shape during frame generation).static RMFlashShape
newFlashShape(RMShape aShape, RMFlash aFlash)
Creates a new flash-shape (or subclass) from the given shape and flash writer.static RMFlashShape
newFlashShapePrimitive(RMShape aShape)
Creates a new flash shape for rm shape's that really just draw (rect, polygon, image, text).void
removeFlash(RMFlash flash)
void
removeFlashChildren(RMFlash flash)
void
setShapeId(int aShapeId)
Sets the flash character id of this flash shape.void
updateFlash(RMFlash flash)
void
updateFlashChildren(RMFlash flash)
-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
Constructor Detail
-
RMFlashShape
public RMFlashShape(RMShape aShape, int fillIndex)
Creates a new flash-shape from the given shape.
-
-
Method Detail
-
newFlashShape
public static RMFlashShape newFlashShape(RMShape aShape, RMFlash aFlash)
Creates a new flash-shape (or subclass) from the given shape and flash writer.
-
newFlashShapePrimitive
public static RMFlashShape newFlashShapePrimitive(RMShape aShape)
Creates a new flash shape for rm shape's that really just draw (rect, polygon, image, text).
-
getShape
public RMShape getShape()
Returns the RMShape encapsulated by this flash-shape.
-
getChildCount
public int getChildCount()
Returns the number of flash-shape children of this flash-shape.
-
getChild
public RMFlashShape getChild(int anIndex)
Returns the specific flash-shape child at the given index. of this flash-shape.
-
getDrawsStroke
public boolean getDrawsStroke()
Returns whether this flash shape draws a stroke.
-
getDrawsFill
public boolean getDrawsFill()
Returns whether this flash shape draws a fill.
-
getFill
public RMFill getFill()
Returns the shape fill.
-
getStroke
public RMStroke getStroke()
Returns the shape fill as a stroke.
-
setShapeId
public void setShapeId(int aShapeId)
Sets the flash character id of this flash shape.
-
getNextTransform
public RMTransform getNextTransform()
Returns the next transform for this shape. Assumes that shape may have been altered and gets it's current transform. If transform is different than last time, it stores the new one away and convert this one to Flash type coords. If transform isn't different, just return null.
-
getNextOpacity
public float getNextOpacity()
Returns the next opacity for this shape.
-
defineFlash
public void defineFlash(RMFlash flash)
Defines the flash for this shape.
-
defineFlashFill
public void defineFlashFill(RMFlash flash)
-
updateFlash
public void updateFlash(RMFlash flash)
-
removeFlash
public void removeFlash(RMFlash flash)
-
defineFlashChildren
public void defineFlashChildren(RMFlash flash)
-
updateFlashChildren
public void updateFlashChildren(RMFlash flash)
-
removeFlashChildren
public void removeFlashChildren(RMFlash flash)
-
getMorphRatio
public float getMorphRatio(RMFlash flash)
Returns the current morph ratio (valid for flash morph shape during frame generation.
-
needsTransformUpdate
public boolean needsTransformUpdate()
Returns whether shape needs explicit transform update (valid for flash morph shape during frame generation).
-
getColor
public RMColor getColor()
Returns the current shape text color.
-
getColorZero
public RMColor getColorZero()
Returns the original shape text color.
-
getColorNext
public RMColor getColorNext()
Returns the next shape text color.
-
getActionScript
public java.lang.String getActionScript()
Returns the shape actionscript.
-
-