Class Transform
java.lang.Object
nl.colorize.multimedialib.stage.Transform
- Direct Known Subclasses:
ImageTransform
Describes how 2D graphics should be displayed, using a number of
properties. The following properties are available:
| Property | Description | |-----------------|----------------------------------------------------------------------------| | Visible | When set to false, the graphic will not be displayed at all. | | Position | X/Y coordinates of where the graphic's center is displayed on the canvas. | | Alpha | Percentage, where 0% is fully transparent and 100% is fully opaque. |
This class contains the "base" properties that are available to all
graphics types. See ImageTransform for additional properties
that are available when displaying images.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPosition(float deltaX, float deltaY) Returns a newTransforminstance that is the result of combining this transform with the specified other transform.floatgetAlpha()floatgetX()floatgetY()booleanvoidvoidsetAlpha(float alpha) voidsetPosition(float x, float y) voidsetPosition(Point2D position) voidsetVisible(boolean visible) voidsetX(float x) voidsetY(float y)
-
Constructor Details
-
Transform
public Transform()
-
-
Method Details
-
setPosition
-
setPosition
public void setPosition(float x, float y) -
setX
public void setX(float x) -
setY
public void setY(float y) -
addPosition
public void addPosition(float deltaX, float deltaY) -
getX
public float getX() -
getY
public float getY() -
setAlpha
public void setAlpha(float alpha) -
set
-
combine
-
isVisible
public boolean isVisible() -
getPosition
-
getAlpha
public float getAlpha() -
setVisible
public void setVisible(boolean visible)
-