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 SummaryConstructors Constructor Description RMFlashShape(RMShape aShape, int fillIndex)Creates a new flash-shape from the given shape.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineFlash(RMFlash flash)Defines the flash for this shape.voiddefineFlashChildren(RMFlash flash)voiddefineFlashFill(RMFlash flash)java.lang.StringgetActionScript()Returns the shape actionscript.RMFlashShapegetChild(int anIndex)Returns the specific flash-shape child at the given index.intgetChildCount()Returns the number of flash-shape children of this flash-shape.RMColorgetColor()Returns the current shape text color.RMColorgetColorNext()Returns the next shape text color.RMColorgetColorZero()Returns the original shape text color.booleangetDrawsFill()Returns whether this flash shape draws a fill.booleangetDrawsStroke()Returns whether this flash shape draws a stroke.RMFillgetFill()Returns the shape fill.floatgetMorphRatio(RMFlash flash)Returns the current morph ratio (valid for flash morph shape during frame generation.floatgetNextOpacity()Returns the next opacity for this shape.RMTransformgetNextTransform()Returns the next transform for this shape.RMShapegetShape()Returns the RMShape encapsulated by this flash-shape.RMStrokegetStroke()Returns the shape fill as a stroke.booleanneedsTransformUpdate()Returns 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 Detail- 
RMFlashShapepublic RMFlashShape(RMShape aShape, int fillIndex) Creates a new flash-shape from the given shape.
 
- 
 - 
Method Detail- 
newFlashShapepublic static RMFlashShape newFlashShape(RMShape aShape, RMFlash aFlash) Creates a new flash-shape (or subclass) from the given shape and flash writer.
 - 
newFlashShapePrimitivepublic static RMFlashShape newFlashShapePrimitive(RMShape aShape) Creates a new flash shape for rm shape's that really just draw (rect, polygon, image, text).
 - 
getShapepublic RMShape getShape() Returns the RMShape encapsulated by this flash-shape.
 - 
getChildCountpublic int getChildCount() Returns the number of flash-shape children of this flash-shape.
 - 
getChildpublic RMFlashShape getChild(int anIndex) Returns 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.
 - 
getFillpublic RMFill getFill() Returns the shape fill.
 - 
getStrokepublic RMStroke getStroke() Returns the shape fill as a stroke.
 - 
setShapeIdpublic void setShapeId(int aShapeId) Sets the flash character id of this flash shape.
 - 
getNextTransformpublic 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.
 - 
getNextOpacitypublic float getNextOpacity() Returns the next opacity for this shape.
 - 
defineFlashpublic void defineFlash(RMFlash flash) Defines the flash for this shape.
 - 
defineFlashFillpublic void defineFlashFill(RMFlash flash) 
 - 
updateFlashpublic void updateFlash(RMFlash flash) 
 - 
removeFlashpublic void removeFlash(RMFlash flash) 
 - 
defineFlashChildrenpublic void defineFlashChildren(RMFlash flash) 
 - 
updateFlashChildrenpublic void updateFlashChildren(RMFlash flash) 
 - 
removeFlashChildrenpublic void removeFlashChildren(RMFlash flash) 
 - 
getMorphRatiopublic float getMorphRatio(RMFlash flash) Returns 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).
 - 
getColorpublic RMColor getColor() Returns the current shape text color.
 - 
getColorZeropublic RMColor getColorZero() Returns the original shape text color.
 - 
getColorNextpublic RMColor getColorNext() Returns the next shape text color.
 - 
getActionScriptpublic java.lang.String getActionScript() Returns the shape actionscript.
 
- 
 
-