Class anim.ScaleParam
All Packages Class Hierarchy This Package Previous Next Index
Class anim.ScaleParam
java.lang.Object
|
+----anim.ScaleParam
- public class ScaleParam
- extends Object
A Scaling parameter for 2D scaling
Copyright (c) 1996-1997 Intel Corporation
-
xOrigin
- x coordinate of the origin about which to perform scaling.
-
xScale
- Amount of scaling in the x dimension.
-
yOrigin
- y coordinate of the origin about which to perform scaling.
-
yScale
- Amount of scaling in the y dimension.
-
ScaleParam()
- Default constructor.
-
ScaleParam(float)
- Constructor using passed in Scale.
-
ScaleParam(float, float)
- Constructor using passed in xScale,yScale
-
ScaleParam(float, float, int, int)
- Constructor using passed in xScale,yScale, xOrigin and yOrigin
-
ScaleParam(ScaleParam)
- Constructor using passed in Scale Param
-
equals(ScaleParam)
-
-
toString()
-
xScale
public float xScale
- Amount of scaling in the x dimension. Default is 1.0 which
is no scaling. Values below 0.0 are illegal. Values below
1.0 cause the object to shrink. Values above 1.0 cause
expansion.
yScale
public float yScale
- Amount of scaling in the y dimension. Default is 1.0 which
is no scaling. Values below 0.0 are illegal. Values below
1.0 cause the object to shrink. Values above 1.0 cause
expansion.
xOrigin
public int xOrigin
- x coordinate of the origin about which to perform scaling.
Deafult is 0 which sets the x coordinate of the origin
to be the left edge of the object.
yOrigin
public int yOrigin
- y coordinate of the origin about which to perform scaling.
Deafult is 0 which sets the y coordinate of the origin
to be the top of the object.
ScaleParam
public ScaleParam(float x,
float y)
- Constructor using passed in xScale,yScale
ScaleParam
public ScaleParam(float x,
float y,
int xOrigin,
int yOrigin)
- Constructor using passed in xScale,yScale, xOrigin and yOrigin
ScaleParam
public ScaleParam(float scale)
- Constructor using passed in Scale. Both dimensions are scaled equally
ScaleParam
public ScaleParam()
- Default constructor. Sets both dimensions to 1.0 and both origins to 0
ScaleParam
public ScaleParam(ScaleParam scale)
- Constructor using passed in Scale Param
equals
public boolean equals(ScaleParam test)
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index