org.concord.flash.player
Class FComponent

java.lang.Object
  |
  +--org.concord.flash.player.FScriptObject
        |
        +--org.concord.flash.player.FComponent
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
FButton, FEditField, FFrame, FMorphShape, FMovieClip, FShape, FText

public abstract class FComponent
extends FScriptObject
implements java.lang.Comparable

Models a placeable object.


Field Summary
protected  FMovie movie
           
protected  com.anotherbigidea.flash.movie.Symbol symbol
           
 
Fields inherited from class org.concord.flash.player.FScriptObject
members, name, parent
 
Method Summary
 int compareTo(java.lang.Object o2)
          Used to sort a collection of component by its depth.
 double get_alpha()
           
 java.lang.String get_name()
           
 double get_rotation()
           
 boolean get_visible()
           
 double get_x()
           
 double get_xscale()
           
 double get_y()
           
 double get_yscale()
           
 java.awt.Rectangle getBounds()
           
 java.awt.geom.Rectangle2D getBounds2D()
           
 int getClipDepth()
           
 com.anotherbigidea.flash.structs.AlphaTransform getColorTransform()
           
 int getDepth()
           
 FMovieClip getParentClip()
           
 java.lang.String getToolTipText()
          Gets the tool tip text set on this component
 java.awt.geom.AffineTransform getTransform()
           
protected  java.awt.geom.AffineTransform getTransformed(java.awt.geom.AffineTransform t)
          Apply the component's transform to the "world transform" that is passed in if there is no transform on the component then return the passed in transform
 boolean isModified()
           
 boolean isTransformed()
          Detects whether this component has been transformed, that is one of set_x, set_y, set_xscale, set_yscale, set_rotate, has been called which changes the original placement.
 void paint(java.awt.image.BufferedImage canvas, java.awt.geom.AffineTransform t, com.anotherbigidea.flash.structs.ColorTransform cxform)
           
 void set_alpha(double alpha)
           
 void set_alpha(float alpha)
           
 void set_name(java.lang.String n)
           
 void set_rotation(double rotate)
           
 void set_rotation(float rotate)
           
 void set_rotation(int rotate)
           
 void set_visible(boolean visible)
           
 void set_x(double x)
           
 void set_x(float x)
           
 void set_x(int x)
           
 void set_xscale(double xscale)
           
 void set_xscale(float xscale)
           
 void set_xscale(int xscale)
           
 void set_y(double y)
           
 void set_y(float y)
           
 void set_y(int y)
           
 void set_yscale(double yscale)
           
 void set_yscale(float yscale)
           
 void set_yscale(int yscale)
           
 void setClipDepth(int depth)
           
 void setColorTransform(com.anotherbigidea.flash.structs.AlphaTransform cxform)
           
 void setDepth(int depth)
           
 void setToolTipText(java.lang.String str)
          Sets the tool tip text on this component.
 void setTransform(java.awt.geom.AffineTransform t)
           
 void setTranslation(double dx, double dy)
           
 void setTranslation(float dx, float dy)
           
 void translate(double dx, double dy)
           
 void translate(float dx, float dy)
           
 
Methods inherited from class org.concord.flash.player.FScriptObject
callMethod, clone, getAllMembers, getMember, getName, getObjectType, getParent, removeMember, setMember, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

movie

protected FMovie movie

symbol

protected com.anotherbigidea.flash.movie.Symbol symbol
Method Detail

isModified

public boolean isModified()

getClipDepth

public int getClipDepth()

setClipDepth

public void setClipDepth(int depth)

isTransformed

public boolean isTransformed()
Detects whether this component has been transformed, that is one of set_x, set_y, set_xscale, set_yscale, set_rotate, has been called which changes the original placement.
Returns:
true if this component has been transformed

getTransform

public java.awt.geom.AffineTransform getTransform()

setTransform

public void setTransform(java.awt.geom.AffineTransform t)

getColorTransform

public com.anotherbigidea.flash.structs.AlphaTransform getColorTransform()

setColorTransform

public void setColorTransform(com.anotherbigidea.flash.structs.AlphaTransform cxform)

setDepth

public void setDepth(int depth)

getDepth

public int getDepth()

getBounds

public java.awt.Rectangle getBounds()

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D()

getTransformed

protected java.awt.geom.AffineTransform getTransformed(java.awt.geom.AffineTransform t)
Apply the component's transform to the "world transform" that is passed in if there is no transform on the component then return the passed in transform
Parameters:
t - The world transform

paint

public void paint(java.awt.image.BufferedImage canvas,
                  java.awt.geom.AffineTransform t,
                  com.anotherbigidea.flash.structs.ColorTransform cxform)

get_rotation

public double get_rotation()

set_rotation

public void set_rotation(int rotate)

set_rotation

public void set_rotation(float rotate)

set_rotation

public void set_rotation(double rotate)

setTranslation

public void setTranslation(float dx,
                           float dy)

setTranslation

public void setTranslation(double dx,
                           double dy)

translate

public void translate(float dx,
                      float dy)

translate

public void translate(double dx,
                      double dy)

get_x

public double get_x()

set_x

public void set_x(int x)

set_x

public void set_x(float x)

set_x

public void set_x(double x)

get_y

public double get_y()

set_y

public void set_y(int y)

set_y

public void set_y(float y)

set_y

public void set_y(double y)

get_xscale

public double get_xscale()

set_xscale

public void set_xscale(int xscale)

set_xscale

public void set_xscale(float xscale)

set_xscale

public void set_xscale(double xscale)

get_yscale

public double get_yscale()

set_yscale

public void set_yscale(int yscale)

set_yscale

public void set_yscale(float yscale)

set_yscale

public void set_yscale(double yscale)

get_alpha

public double get_alpha()

set_alpha

public void set_alpha(float alpha)

set_alpha

public void set_alpha(double alpha)

get_visible

public boolean get_visible()

set_visible

public void set_visible(boolean visible)

get_name

public java.lang.String get_name()

set_name

public void set_name(java.lang.String n)

setToolTipText

public void setToolTipText(java.lang.String str)
Sets the tool tip text on this component. If the tool tip text is null then tool tip doesn't show.
Parameters:
str - tool tip text

getToolTipText

public java.lang.String getToolTipText()
Gets the tool tip text set on this component
Returns:
The tool tip text

compareTo

public int compareTo(java.lang.Object o2)
Used to sort a collection of component by its depth.
Specified by:
compareTo in interface java.lang.Comparable

getParentClip

public FMovieClip getParentClip()