Package com.reportmill.flash
Class RMFlashMorphShape
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.flash.RMFlashShape
- 
- com.reportmill.flash.RMFlashMorphShape
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class RMFlashMorphShape extends RMFlashShape This flash shape subclass is for shapes that change size or color.
- 
- 
Constructor SummaryConstructors Constructor Description RMFlashMorphShape(RMShape aShape, java.util.Map morphMap, int fillIndex)Create flash morph shape.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineFlash(RMFlash flash)Defines the flash for this shape.static java.lang.NumbergetMorphFrameAfterTime(RMShape aShape, float aTime, int fillIndex)Returns the next time (after a given time) that a given shape has a "Morph" change (width, height, color, line-width, stroke-color).static java.util.MapgetMorphMap(RMShape aShape, float aTime, int fillIndex)floatgetMorphRatio(RMFlash aFlash)Return the current morph ratio (valid during frame generation).booleanneedsTransformUpdate()Returns whether shape needs explicit transform update (valid for flash morph shape during frame generation).- 
Methods inherited from class com.reportmill.flash.RMFlashShapedefineFlashChildren, defineFlashFill, getActionScript, getChild, getChildCount, getColor, getColorNext, getColorZero, getDrawsFill, getDrawsStroke, getFill, getNextOpacity, getNextTransform, getShape, getStroke, newFlashShape, newFlashShapePrimitive, removeFlash, removeFlashChildren, setShapeId, updateFlash, updateFlashChildren
 - 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Constructor Detail- 
RMFlashMorphShapepublic RMFlashMorphShape(RMShape aShape, java.util.Map morphMap, int fillIndex) Create flash morph shape.
 
- 
 - 
Method Detail- 
getMorphRatiopublic float getMorphRatio(RMFlash aFlash) Return the current morph ratio (valid during frame generation).- Overrides:
- getMorphRatioin class- RMFlashShape
 
 - 
needsTransformUpdatepublic boolean needsTransformUpdate() Description copied from class:RMFlashShapeReturns whether shape needs explicit transform update (valid for flash morph shape during frame generation).- Overrides:
- needsTransformUpdatein class- RMFlashShape
 
 - 
defineFlashpublic void defineFlash(RMFlash flash) Description copied from class:RMFlashShapeDefines the flash for this shape.- Overrides:
- defineFlashin class- RMFlashShape
 
 - 
getMorphMappublic static java.util.Map getMorphMap(RMShape aShape, float aTime, int fillIndex) 
 - 
getMorphFrameAfterTimepublic static java.lang.Number getMorphFrameAfterTime(RMShape aShape, float aTime, int fillIndex) Returns the next time (after a given time) that a given shape has a "Morph" change (width, height, color, line-width, stroke-color). The problem with this is that even ranges before or between actual morphs get morphed (from and to the same state). Not the end of the world, but it needs to be fixed.
 
- 
 
-