| java.lang.Object org.openlaszlo.iv.flash.api.FlashItem org.openlaszlo.iv.flash.api.FlashObject
All known Subclasses: org.openlaszlo.iv.flash.api.sound.SoundStreamBlock, org.openlaszlo.iv.flash.api.sound.StartSound, org.openlaszlo.iv.flash.api.button.ButtonSound, org.openlaszlo.iv.flash.api.ExportAssets, org.openlaszlo.iv.flash.api.ImportAssets2, org.openlaszlo.iv.flash.parser.FixedTag, org.openlaszlo.iv.flash.api.action.InitClipAction, org.openlaszlo.iv.flash.api.Instance, org.openlaszlo.iv.flash.api.button.ButtonCXForm, org.openlaszlo.iv.flash.api.action.DoAction, org.openlaszlo.iv.flash.api.SetBackgroundColor, org.openlaszlo.iv.flash.commands.GenericCommand, org.openlaszlo.iv.flash.api.RemoveObject, org.openlaszlo.iv.flash.api.action.Program, org.openlaszlo.iv.flash.api.FreeCharacter, org.openlaszlo.iv.flash.api.ImportAssets, org.openlaszlo.iv.flash.api.FlashDef, org.openlaszlo.iv.flash.api.sound.SoundStreamHead, org.openlaszlo.iv.flash.parser.UnparsedTag,
FlashObject | abstract public class FlashObject extends FlashItem (Code) | | Abstract base class for flash objects which can be placed on Flash timeline (usually tags) and generated back
author: Dmitry Skavish See Also: FlashDef See Also: FlashItem |
_isConstant | protected boolean _isConstant()(Code) | | Returns true if this object is not subject to generator substitutions or commands
Override this method if you know the dynamic nature of content of your object and want
to avoid unneccesary copying or/and execution.
Constant objects are not duplicated and are not processed by generator.
true if object is constant See Also: FlashObject.isConstant |
apply | public void apply(Context context)(Code) | | Applies given context to this object
If this object is not constant (
FlashObject.isConstant )
then it may be altered by generator context if it has generator variables
somewhere inside.
Parameters: context - generator context to be applied to this object |
collectDeps | public void collectDeps(DepsCollector dc)(Code) | | Collects all dependencies this objects has in given
DepsCollector
For example object of
org.openlaszlo.iv.flash.api.button.Button Button class depends on objects of
FlashDef class, i.e. consists of flash definitions.
It means that all objects this object depends on have to be generated
before this object is generated.
Parameters: dc - collector of dependent objects |
collectFonts | public void collectFonts(FontsCollector fc)(Code) | | Collects all possible fonts this object uses (if any)
Parameters: fc - fonts collector |
generate | public void generate(FlashOutput fob, DepsCollector dc)(Code) | | Generates this object to FlashOutput, but first generates all dependencies
Usually you don't need to override this method
Method:
- collects all dependencies of this object
- writes these dependencies first to FlashOutput
- writes this object itself
Parameters: fob - buffer to write to Parameters: dc - dependencies collector See Also: FlashObject.write See Also: FlashObject.collectDeps |
isConstant | public boolean isConstant()(Code) | | Returns true if this object is not subject to generator substitutions or commands
You usually don't need to override this method, this method is merely a cache for
FlashObject._isConstant method.
true if object is constant See Also: FlashObject.isConstant |
isProcessed | public boolean isProcessed()(Code) | | Returns true of this object was processed
true of this object was processed |
process | public void process(FlashFile file, Context context) throws IVException(Code) | | Processes this flash object in specified context and flash file
Parameters: file - flash file Parameters: context - generator context exception: IVException - |
setConstant | protected void setConstant(boolean is_const)(Code) | | |
setProcessed | public void setProcessed()(Code) | | Sets this object as processed
|
|
|