public class ScreenObject
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ScreenObject.BoundingBox |
Constructor and Description |
---|
ScreenObject() |
Modifier and Type | Method and Description |
---|---|
void |
addPoly(SimplePoly poly) |
void |
addScreenObject(ScreenObject screenObject)
Add the contents of the given screen object to this screen object.
|
void |
addString(StringWrapper string)
Add a string to the screen object
|
void |
addTexture(MaplyTexture tex,
float[] color,
float width,
float height)
Add a rectangle of the given size and stretch the given texture over it.
|
void |
addTextureNative(long texID,
float red,
float green,
float blue,
float alpha,
float width,
float height) |
void |
finalize() |
ScreenObject.BoundingBox |
getSize()
Calculate and return the current bounding box of the screen object.
|
void |
getSizeNative(Point2d ll,
Point2d ur) |
void |
scale(double x,
double y) |
void |
transform(Matrix3d mat)
Apply the given 2D transform to the screen object.
|
void |
translateX(double x,
double y)
Apply a translation to all the pieces of the screen object.
|
public void finalize()
finalize
in class java.lang.Object
public void addPoly(SimplePoly poly)
public void addString(StringWrapper string)
string
- the string to addpublic void addTexture(MaplyTexture tex, float[] color, float width, float height)
tex
- Texture to use on the rectangle.color
- Color to make the resulting rectangle.width
- Width of the rectangle to create.height
- Height of the rectangle to create.public void addTextureNative(long texID, float red, float green, float blue, float alpha, float width, float height)
public void addScreenObject(ScreenObject screenObject)
screenObject
- public ScreenObject.BoundingBox getSize()
public void scale(double x, double y)
public void translateX(double x, double y)
x
- y
- public void transform(Matrix3d mat)
mat
- Matrix to use for transform.