|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--Texture.Texture
This class provides tools for creating textures.
TextureError| Field Summary | |
protected int[] |
arraytexture
The array in which is the texture (rgb mode) |
protected Color |
color
The color of the texture. |
protected int |
height
The height of the array texture. |
protected float |
heightGrayIncrement
The height increment for the texture. |
protected int |
mode
The mode of the texture. |
protected int |
width
The width of the array texture. |
protected float |
widthGrayIncrement
The width increment for the texture. |
| Constructor Summary | |
Texture(int color)
The first constructor. |
|
Texture(int width,
int height,
int mode)
The second constructor. |
|
| Method Summary | |
int[] |
arraytexture()
This method return the array of the texture. |
Color |
color()
This method returns the color of the texture. |
int |
height()
This method return the height of the texture. |
int |
mode()
This method returns the mode of the texture. |
int |
width()
This method return the width of the texture. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected int[] arraytexture
protected int width
protected int height
protected int mode
protected Color color
protected final float widthGrayIncrement
protected final float heightGrayIncrement
| Constructor Detail |
public Texture(int color)
color - The color of the texture.
public Texture(int width,
int height,
int mode)
width - The width of the texture.height - The height of the texture.mode - The texture's type.| Method Detail |
public int width()
throws TextureError
public int height()
throws TextureError
public int[] arraytexture()
throws TextureError
public int mode()
public Color color()
throws TextureError
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||