|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.WidgetBase
org.xith3d.ui.hud.base.RectangularWidget
org.xith3d.ui.hud.widgets.Image
public class Image
A widget representing an image. Implemented with textures
| Nested Class Summary | |
|---|---|
static class |
Image.Description
This class is used to describe an Image Widget. |
| Nested classes/interfaces inherited from interface org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.WidgetBase |
|---|
containerListeners, transformGroup, translation, Z_INDEX_UNIT, Z_INDEX_UNIT_ASSEMBLER |
| Constructor Summary | |
|---|---|
Image(float width,
float height,
org.openmali.vecmath2.Colorf color)
Creates a new Image with the given width and height. |
|
Image(float width,
float height,
Image.Description imgDesc)
Creates a new Image with the given width and height. |
|
Image(float width,
float height,
int zIndex,
org.openmali.vecmath2.Colorf color)
Creates a new Image with the given width and height. |
|
Image(float width,
float height,
int zIndex,
Image.Description imgDesc)
Creates a new Image with the given width and height. |
|
Image(float width,
float height,
int zIndex,
java.lang.String texture)
Creates a new Image with the given width and height. |
|
Image(float width,
float height,
int zIndex,
Texture texture)
Creates a new Image with the given width and height. |
|
Image(float width,
float height,
java.lang.String texture)
Creates a new Image with the given width and height. |
|
Image(float width,
float height,
Texture texture)
Creates a new Image with the given width and height. |
|
Image(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Colorf color)
Creates a new Image with the given width and height. |
|
Image(org.openmali.types.twodee.Sized2fRO size,
Image.Description imgDesc)
Creates a new Image with the given width and height. |
|
Image(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
org.openmali.vecmath2.Colorf color)
Creates a new Image with the given width and height. |
|
Image(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
Image.Description imgDesc)
Creates a new Image with the given width and height. |
|
Image(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String texture)
Creates a new Image with the given width and height. |
|
Image(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
Texture texture)
Creates a new Image with the given width and height. |
|
Image(org.openmali.types.twodee.Sized2fRO size,
java.lang.String texture)
Creates a new Image with the given width and height. |
|
Image(org.openmali.types.twodee.Sized2fRO size,
Texture texture)
Creates a new Image with the given width and height. |
|
| Method Summary | |
|---|---|
org.openmali.vecmath2.Colorf |
getColor()
|
Rectangle |
getRectangle()
Directly returns the Quad (Shape3d). |
Texture |
getTexture()
|
float |
getTileHeight()
|
org.openmali.types.twodee.Sized2fRO |
getTileSize()
|
float |
getTileWidth()
|
float |
getTransparency()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
void |
setColor(org.openmali.vecmath2.Colorf color)
Sets this Image's color. |
boolean |
setSize(float width,
float height,
boolean forced)
|
void |
setTexture(java.lang.String texture)
Sets the Texture resource used as the Image's texture |
void |
setTexture(Texture texture)
Sets the Texture resource used as the Image's texture |
void |
setTileSize(float tileWidth,
float tileHeight)
Sets the tile size. |
void |
setTileSize(org.openmali.types.twodee.Sized2fRO tileSize)
Sets the tile size. |
void |
setTransparency(float transparency)
Sets the whole Widget's Transparency. |
| Methods inherited from class org.xith3d.ui.hud.base.RectangularWidget |
|---|
getPickHeight, getPickSGZPosition, getPickWidth, pick |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openmali.types.twodee.Sized2f |
|---|
setHeight, setWidth |
| Constructor Detail |
|---|
public Image(float width,
float height,
int zIndex,
Image.Description imgDesc)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this WidgetimgDesc - the ImageDescription instance, which holds all texturing information for this Image
public Image(float width,
float height,
Image.Description imgDesc)
width - the new width of this Widgetheight - the new height of this WidgetimgDesc - the ImageDescription instance, which holds all texturing information for this Image
public Image(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
Image.Description imgDesc)
size - the new size of this WidgetzIndex - the new z-index of this WidgetimgDesc - the ImageDescription instance, which holds all texturing information for this Image
public Image(org.openmali.types.twodee.Sized2fRO size,
Image.Description imgDesc)
size - the new size of this WidgetimgDesc - the ImageDescription instance, which holds all texturing information for this Image
public Image(float width,
float height,
int zIndex,
java.lang.String texture)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this Widgettexture - the Texture resource to use for this Image
public Image(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.lang.String texture)
size - the new size of this WidgetzIndex - the new z-index of this Widgettexture - the Texture resource to use for this Image
public Image(float width,
float height,
java.lang.String texture)
width - the new width of this Widgetheight - the new height of this Widgettexture - the Texture resource to use for this Image
public Image(org.openmali.types.twodee.Sized2fRO size,
java.lang.String texture)
size - the new size of this Widgettexture - the texture resource to use as background image for this FPSCounter
public Image(float width,
float height,
int zIndex,
Texture texture)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this Widgettexture - the Texture to use for this Image
public Image(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
Texture texture)
size - the new size of this WidgetzIndex - the new z-index of this Widgettexture - the Texture to use for this Image
public Image(float width,
float height,
Texture texture)
width - the new width of this Widgetheight - the new height of this Widgettexture - the Texture to use for this Image
public Image(org.openmali.types.twodee.Sized2fRO size,
Texture texture)
size - the new size of this Widgettexture - the Texture to use for this Image
public Image(float width,
float height,
int zIndex,
org.openmali.vecmath2.Colorf color)
width - the new width of this Widgetheight - the new height of this WidgetzIndex - the new z-index of this Widgetcolor - the color to use for the Image
public Image(float width,
float height,
org.openmali.vecmath2.Colorf color)
width - the new width of this Widgetheight - the new height of this Widgetcolor - the color to use for the Image
public Image(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
org.openmali.vecmath2.Colorf color)
size - the new size of this WidgetzIndex - the new z-index of this Widgetcolor - the color to use for the Image
public Image(org.openmali.types.twodee.Sized2fRO size,
org.openmali.vecmath2.Colorf color)
size - the new size of this Widgetcolor - the color to use for the Image| Method Detail |
|---|
public void setTransparency(float transparency)
setTransparency in interface WidgetsetTransparency in class WidgetBasepublic float getTransparency()
getTransparency in interface Widgetpublic Rectangle getRectangle()
public void setTileSize(float tileWidth,
float tileHeight)
setTileSize in interface AbstractImagetileWidth - the tile width (or negative for no tiling of width)tileHeight - the tile height (or negative for no tiling of height)public void setTileSize(org.openmali.types.twodee.Sized2fRO tileSize)
setTileSize in interface AbstractImagetileSize - the tile size (or null for no tiling)public org.openmali.types.twodee.Sized2fRO getTileSize()
getTileSize in interface AbstractImagepublic float getTileWidth()
getTileWidth in interface AbstractImagepublic float getTileHeight()
getTileHeight in interface AbstractImagepublic Texture getTexture()
getTexture in interface AbstractImagepublic void setTexture(Texture texture)
setTexture in interface AbstractImagepublic void setTexture(java.lang.String texture)
setTexture in interface AbstractImagepublic void setColor(org.openmali.vecmath2.Colorf color)
setColor in interface AbstractImagecolor - the new colorpublic org.openmali.vecmath2.Colorf getColor()
getColor in interface AbstractImage
public boolean setSize(float width,
float height,
boolean forced)
setSize in class WidgetBaseprotected void init()
init in class WidgetBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||