Package com.reportmill.flash
Class RMFlashShape
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.flash.RMFlashShape
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
- Direct Known Subclasses:
- RMFlashButtonShape,- RMFlashImageShape,- RMFlashMorphShape,- RMFlashSoundShape,- RMFlashSpriteShape,- RMFlashTextShape
This class is responsible for writing simple RMShapes to a flash buffer.
- 
Constructor SummaryConstructorsConstructorDescriptionRMFlashShape(RMShape aShape, int fillIndex) Creates a new flash-shape from the given shape.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddefineFlash(RMFlash flash) Defines the flash for this shape.voiddefineFlashChildren(RMFlash flash) voiddefineFlashFill(RMFlash flash) Returns the shape actionscript.getChild(int anIndex) Returns the specific flash-shape child at the given index.intReturns the number of flash-shape children of this flash-shape.getColor()Returns the current shape text color.Returns the next shape text color.Returns the original shape text color.booleanReturns whether this flash shape draws a fill.booleanReturns whether this flash shape draws a stroke.getFill()Returns the shape fill.floatgetMorphRatio(RMFlash flash) Returns the current morph ratio (valid for flash morph shape during frame generation.floatReturns the next opacity for this shape.Returns the next transform for this shape.getShape()Returns the RMShape encapsulated by this flash-shape.Returns the shape fill as a stroke.booleanReturns whether shape needs explicit transform update (valid for flash morph shape during frame generation).static RMFlashShapenewFlashShape(RMShape aShape, RMFlash aFlash) Creates a new flash-shape (or subclass) from the given shape and flash writer.static RMFlashShapenewFlashShapePrimitive(RMShape aShape) Creates a new flash shape for rm shape's that really just draw (rect, polygon, image, text).voidremoveFlash(RMFlash flash) voidremoveFlashChildren(RMFlash flash) voidsetShapeId(int aShapeId) Sets the flash character id of this flash shape.voidupdateFlash(RMFlash flash) voidupdateFlashChildren(RMFlash flash) Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Constructor Details- 
RMFlashShapeCreates a new flash-shape from the given shape.
 
- 
- 
Method Details- 
newFlashShapeCreates a new flash-shape (or subclass) from the given shape and flash writer.
- 
newFlashShapePrimitiveCreates a new flash shape for rm shape's that really just draw (rect, polygon, image, text).
- 
getShapeReturns the RMShape encapsulated by this flash-shape.
- 
getChildCountpublic int getChildCount()Returns the number of flash-shape children of this flash-shape.
- 
getChildReturns the specific flash-shape child at the given index. of this flash-shape.
- 
getDrawsStrokepublic boolean getDrawsStroke()Returns whether this flash shape draws a stroke.
- 
getDrawsFillpublic boolean getDrawsFill()Returns whether this flash shape draws a fill.
- 
getFillReturns the shape fill.
- 
getStrokeReturns the shape fill as a stroke.
- 
setShapeIdpublic void setShapeId(int aShapeId) Sets the flash character id of this flash shape.
- 
getNextTransformReturns 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.
- 
getNextOpacitypublic float getNextOpacity()Returns the next opacity for this shape.
- 
defineFlashDefines the flash for this shape.
- 
defineFlashFill
- 
updateFlash
- 
removeFlash
- 
defineFlashChildren
- 
updateFlashChildren
- 
removeFlashChildren
- 
getMorphRatioReturns the current morph ratio (valid for flash morph shape during frame generation.
- 
needsTransformUpdatepublic boolean needsTransformUpdate()Returns whether shape needs explicit transform update (valid for flash morph shape during frame generation).
- 
getColorReturns the current shape text color.
- 
getColorZeroReturns the original shape text color.
- 
getColorNextReturns the next shape text color.
- 
getActionScriptReturns the shape actionscript.
 
-