org.concord.flash.player
Class FUtil
java.lang.Object
|
+--org.concord.flash.player.FUtil
- public class FUtil
- extends java.lang.Object
Set of useful utility functions
Constructor Summary |
FUtil()
|
Method Summary |
static java.awt.geom.AffineTransform |
convertTransform(com.anotherbigidea.flash.movie.Transform t)
Creates a java transform from a Flash transform. |
static java.awt.geom.AffineTransform |
convertTransform(com.anotherbigidea.flash.movie.Transform t,
double x,
double y)
Creates a java transform from a Flash transform. |
static java.awt.geom.AffineTransform |
convertTransform2(com.anotherbigidea.flash.movie.Transform t)
Creates a java transform from a Flash transform. |
static java.awt.geom.AffineTransform |
convertTransform3(com.anotherbigidea.flash.movie.Transform t)
Creates a java transform from a Flash transform. |
static com.anotherbigidea.flash.movie.Transform |
fixTransform(com.anotherbigidea.flash.movie.Transform oldT)
|
static int |
getARGBColor(com.anotherbigidea.flash.structs.Color color,
com.anotherbigidea.flash.structs.ColorTransform cxform)
|
static java.awt.Color |
getAwtColor(com.anotherbigidea.flash.structs.Color color,
com.anotherbigidea.flash.structs.ColorTransform cxform)
|
static java.awt.Font |
getAwtFont(com.anotherbigidea.flash.movie.Font font)
|
static java.lang.String |
getElementText(com.anotherbigidea.flash.movie.Shape.Element element)
|
static java.lang.String |
getLosslessFormatString(int format)
|
static java.awt.image.RescaleOp |
getRescaleOp(com.anotherbigidea.flash.structs.ColorTransform cxform)
|
static boolean |
hasAlpha(com.anotherbigidea.flash.structs.ColorTransform cxform)
|
static boolean |
isIdentity(com.anotherbigidea.flash.structs.ColorTransform cxform)
|
static boolean |
isTranslatedTransforms(java.awt.geom.AffineTransform t1,
java.awt.geom.AffineTransform t2)
|
static com.anotherbigidea.flash.structs.ColorTransform |
mixColorTransform(com.anotherbigidea.flash.structs.ColorTransform ct1,
com.anotherbigidea.flash.structs.ColorTransform ct2)
|
static java.lang.String |
toString(double d,
int place)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FUtil
public FUtil()
convertTransform
public static java.awt.geom.AffineTransform convertTransform(com.anotherbigidea.flash.movie.Transform t,
double x,
double y)
- Creates a java transform from a Flash transform.
- Parameters:
t
- source transform from Flash filex
- source translation x (applies transform to source)y
- source translation y (applies transform to source)
convertTransform
public static java.awt.geom.AffineTransform convertTransform(com.anotherbigidea.flash.movie.Transform t)
- Creates a java transform from a Flash transform.
- Parameters:
t
- source transform from Flash filex
- source translation x (applies transform to source)y
- source translation y (applies transform to source)
convertTransform2
public static java.awt.geom.AffineTransform convertTransform2(com.anotherbigidea.flash.movie.Transform t)
- Creates a java transform from a Flash transform.
- Parameters:
t
- source transform from Flash filex
- source translation x (applies transform to source)y
- source translation y (applies transform to source)
convertTransform3
public static java.awt.geom.AffineTransform convertTransform3(com.anotherbigidea.flash.movie.Transform t)
- Creates a java transform from a Flash transform.
- Parameters:
t
- source transform from Flash filex
- source translation x (applies transform to source)y
- source translation y (applies transform to source)
getAwtColor
public static java.awt.Color getAwtColor(com.anotherbigidea.flash.structs.Color color,
com.anotherbigidea.flash.structs.ColorTransform cxform)
getARGBColor
public static int getARGBColor(com.anotherbigidea.flash.structs.Color color,
com.anotherbigidea.flash.structs.ColorTransform cxform)
getRescaleOp
public static java.awt.image.RescaleOp getRescaleOp(com.anotherbigidea.flash.structs.ColorTransform cxform)
fixTransform
public static com.anotherbigidea.flash.movie.Transform fixTransform(com.anotherbigidea.flash.movie.Transform oldT)
getAwtFont
public static java.awt.Font getAwtFont(com.anotherbigidea.flash.movie.Font font)
getLosslessFormatString
public static java.lang.String getLosslessFormatString(int format)
getElementText
public static java.lang.String getElementText(com.anotherbigidea.flash.movie.Shape.Element element)
toString
public static java.lang.String toString(double d,
int place)
mixColorTransform
public static com.anotherbigidea.flash.structs.ColorTransform mixColorTransform(com.anotherbigidea.flash.structs.ColorTransform ct1,
com.anotherbigidea.flash.structs.ColorTransform ct2)
hasAlpha
public static boolean hasAlpha(com.anotherbigidea.flash.structs.ColorTransform cxform)
isIdentity
public static boolean isIdentity(com.anotherbigidea.flash.structs.ColorTransform cxform)
isTranslatedTransforms
public static boolean isTranslatedTransforms(java.awt.geom.AffineTransform t1,
java.awt.geom.AffineTransform t2)