|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Widget
org.xith3d.ui.hud.widgets.Image
public class Image
A widget representing an image.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.ui.hud.base.Widget |
|---|
Widget.DescriptionBase |
| Field Summary |
|---|
| Fields inherited from class org.xith3d.ui.hud.base.Widget |
|---|
transformHeight_Pixels2HUD, transformWidth_Pixels2HUD |
| Constructor Summary | |
|---|---|
Image(boolean isHeavyWeight,
float width,
float height,
org.openmali.vecmath2.Colorf color)
Creates a new Image with the given width and height. |
|
Image(boolean isHeavyWeight,
float width,
float height,
org.openmali.vecmath2.Colorf color,
Texture2D texture,
TileMode tileMode)
Creates a new Image with the given width and height. |
|
Image(boolean isHeavyWeight,
float width,
float height,
java.lang.String texture)
Creates a new Image with the given width and height. |
|
Image(boolean isHeavyWeight,
float width,
float height,
Texture2D texture)
Creates a new Image with the given width and height. |
|
Image(boolean isHeavyWeight,
float width,
float height,
Texture2D texture,
TileMode tileMode)
Creates a new Image with the given width and height. |
|
Image(float width,
float height,
org.openmali.vecmath2.Colorf color)
Creates a new lightweight Image with the given width and height. |
|
Image(float width,
float height,
org.openmali.vecmath2.Colorf color,
Texture2D texture)
Creates a new lightweight Image with the given width and height. |
|
Image(float width,
float height,
java.lang.String texture)
Creates a new lightweight Image with the given width and height. |
|
Image(float width,
float height,
Texture2D texture)
Creates a new lightweight Image with the given width and height. |
|
Image(float width,
float height,
Texture2D texture,
TileMode tileMode)
Creates a new lightweight Image with the given width and height. |
|
| Method Summary | |
|---|---|
protected void |
drawWidget(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height,
boolean drawsSelf)
|
org.openmali.vecmath2.Colorf |
getColor()
|
Texture2D |
getTexture()
|
TileMode |
getTileMode()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
void |
setColor(org.openmali.vecmath2.Colorf color)
|
void |
setTexture(java.lang.String texture)
|
void |
setTexture(Texture2D texture)
|
void |
setTileMode(TileMode mode)
|
void |
setTransparency(float transparency,
boolean childrenToo)
Sets the whole Widget's transparency. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Image(boolean isHeavyWeight,
float width,
float height,
org.openmali.vecmath2.Colorf color,
Texture2D texture,
TileMode tileMode)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this Widgetcolor - the color to use for the Imagetexture - the Texture to use for this Image
public Image(boolean isHeavyWeight,
float width,
float height,
org.openmali.vecmath2.Colorf color)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this Widgetcolor - the color to use for the Image
public Image(boolean isHeavyWeight,
float width,
float height,
Texture2D texture,
TileMode tileMode)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this Widgettexture - the Texture to use for this ImagetileMode -
public Image(boolean isHeavyWeight,
float width,
float height,
Texture2D texture)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this Widgettexture - the Texture to use for this Image
public Image(boolean isHeavyWeight,
float width,
float height,
java.lang.String texture)
isHeavyWeight - width - the new width of this Widgetheight - the new height of this Widgettexture - the Texture resource to use for this Image
public Image(float width,
float height,
org.openmali.vecmath2.Colorf color,
Texture2D texture)
width - the new width of this Widgetheight - the new height of this Widgetcolor - the color to use for the Imagetexture - the Texture to use for this 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(float width,
float height,
Texture2D texture,
TileMode tileMode)
width - the new width of this Widgetheight - the new height of this Widgettexture - the Texture to use for this ImagetileMode -
public Image(float width,
float height,
Texture2D texture)
width - the new width of this Widgetheight - the new height of this Widgettexture - the Texture 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| Method Detail |
|---|
public void setTransparency(float transparency,
boolean childrenToo)
setTransparency in class Widgetpublic void setTexture(Texture2D texture)
public final void setTexture(java.lang.String texture)
public final Texture2D getTexture()
public void setTileMode(TileMode mode)
public final TileMode getTileMode()
public void setColor(org.openmali.vecmath2.Colorf color)
public final org.openmali.vecmath2.Colorf getColor()
public java.lang.String toString()
toString in class Widget
protected void drawWidget(Texture2DCanvas texCanvas,
int offsetX,
int offsetY,
int width,
int height,
boolean drawsSelf)
drawWidget in class Widgetprotected void init()
init in class Widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||