org.xith3d.ui.hud.widgets
Class Image.Description

java.lang.Object
  extended by org.xith3d.ui.hud.base.Widget.DescriptionBase
      extended by org.xith3d.ui.hud.widgets.Image.Description
Enclosing class:
Image

public static class Image.Description
extends Widget.DescriptionBase

This class is used to describe an Image Widget. You can pass it to the Image constructor. Modifications on the used instance after creating the Image Widget won't have any effect.


Constructor Summary
Image.Description()
          Creates a new Image.Description
Image.Description(org.openmali.vecmath2.Colorf color)
          Creates a new Image.Description
Image.Description(Image.Description template)
          Clone-Constructor.
Image.Description(java.lang.String texture)
          Creates a new Image.Description
Image.Description(Texture texture)
          Creates a new Image.Description
Image.Description(Texture texture, org.openmali.vecmath2.Colorf color)
          Creates a new Image.Description
 
Method Summary
protected  void check()
           
 Image.Description clone()
          Clones this instance and returns the clone.
 org.openmali.vecmath2.Colorf getColor()
           
 Texture getTexture()
           
 void setColor(org.openmali.vecmath2.Colorf color)
           
 void setTexture(java.lang.String texture)
           
 void setTexture(Texture texture)
           
 
Methods inherited from class org.xith3d.ui.hud.base.Widget.DescriptionBase
toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image.Description

public Image.Description(Image.Description template)
Clone-Constructor.

Parameters:
template - the template Description to copy the values from

Image.Description

public Image.Description(Texture texture,
                         org.openmali.vecmath2.Colorf color)
Creates a new Image.Description

Parameters:
texture - the texture resource to use as background image for this FPSCounter
Make suse this texture supports alpha channel (e.g. PNG).
color - the color to fill the image with

Image.Description

public Image.Description(Texture texture)
Creates a new Image.Description

Parameters:
texture - the texture resource to use as background image for this FPSCounter
Make suse this texture supports alpha channel (e.g. PNG).

Image.Description

public Image.Description(java.lang.String texture)
Creates a new Image.Description

Parameters:
texture - the texture resource to use as background image for this FPSCounter
Make suse this texture supports alpha channel (e.g. PNG).

Image.Description

public Image.Description(org.openmali.vecmath2.Colorf color)
Creates a new Image.Description

Parameters:
color - the color to fill the image with

Image.Description

public Image.Description()
Creates a new Image.Description

Method Detail

setTexture

public void setTexture(Texture texture)

setTexture

public void setTexture(java.lang.String texture)

getTexture

public Texture getTexture()

setColor

public void setColor(org.openmali.vecmath2.Colorf color)

getColor

public org.openmali.vecmath2.Colorf getColor()

check

protected void check()

clone

public Image.Description clone()
Clones this instance and returns the clone.

Overrides:
clone in class java.lang.Object