|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.Texture
The Texture class represents an image that can be used with a
PaintFormat to fill areas.
At the actual state of the graphics API the Texture
class supports only custom images. In future it will also provide some
default images.
| Field Summary | |
static int |
CUSTOM
constant that tells about a type of texture the Texture
class supports |
static int |
UNDEFINED
constant that tells about a type of texture the Texture
class supports |
| Constructor Summary | |
Texture(Raster raster)
Constructor that creates a Texture that makes use of the
Raster given by raster. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
|
int |
get(int x,
int y)
Returns the value of the textures raster at the position given by x and y. |
int |
getHeight()
Returns the height Raster instance the Texture
makes use of. |
int |
getType()
Returns the type of the texture. |
int |
getWidth()
Returns the width Raster instance the Texture
makes use of. |
boolean |
hasAlpha()
Returns a boolean that indicates weather this texture uses alpha values or not. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CUSTOM
Texture
class supports
public static final int UNDEFINED
Texture
class supports
| Constructor Detail |
public Texture(Raster raster)
Texture that makes use of the
Raster given by raster.
raster - the Raster instance the Texture
should use| Method Detail |
public int getType()
public int getWidth()
Raster instance the Texture
makes use of.
Rasterpublic int getHeight()
Raster instance the Texture
makes use of.
Raster
public int get(int x,
int y)
x and y.
x - component of the position to return the value fory - component of the position to return the value for
public boolean hasAlpha()
public int hashCode()
public boolean equals(java.lang.Object o)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||