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

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

public static class ProgressBar.Description
extends BackgroundSettableWidget.BackgroundSettableDescriptionBase

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


Constructor Summary
ProgressBar.Description(int bottom, int right, int top, int left, org.openmali.vecmath2.Colorf backgroundColor, java.lang.String backgroundTexture, java.lang.String barTex, Border.Description borderDesc, Label.Description labelDesc)
           
ProgressBar.Description(int bottom, int right, int top, int left, org.openmali.vecmath2.Colorf backgroundColor, Texture2D backgroundTexture, Texture2D barTex, Border.Description borderDesc, Label.Description labelDesc)
           
 
Method Summary
 ProgressBar.Description clone()
          Returns a clone of this instance.
 Texture2D getBarTexture()
           
 Border.Description getBorderDescription()
           
 int getBottomHeight()
           
 Label.Description getLabelDescription()
           
 int getLeftWidth()
           
 int getRightWidth()
           
 int getTopHeight()
           
 void set(ProgressBar.Description desc)
          Clone-Constructor
 void setBarTexture(java.lang.String texture)
           
 void setBarTexture(Texture2D texture)
           
 void setBorderDescription(Border.Description borderDesc)
           
 void setBottomHeight(int bh)
           
 void setLabelDescription(Label.Description labelDesc)
           
 void setLeftWidth(int lw)
           
 void setRightWidth(int rw)
           
 void setTopHeight(int th)
           
 
Methods inherited from class org.xith3d.ui.hud.base.BackgroundSettableWidget.BackgroundSettableDescriptionBase
getBackgroundColor, getBackgroundTexture, setBackgroundColor, setBackgroundTexture, setBackgroundTexture, setBgSDB
 
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

ProgressBar.Description

public ProgressBar.Description(int bottom,
                               int right,
                               int top,
                               int left,
                               org.openmali.vecmath2.Colorf backgroundColor,
                               Texture2D backgroundTexture,
                               Texture2D barTex,
                               Border.Description borderDesc,
                               Label.Description labelDesc)

ProgressBar.Description

public ProgressBar.Description(int bottom,
                               int right,
                               int top,
                               int left,
                               org.openmali.vecmath2.Colorf backgroundColor,
                               java.lang.String backgroundTexture,
                               java.lang.String barTex,
                               Border.Description borderDesc,
                               Label.Description labelDesc)
Method Detail

setBottomHeight

public void setBottomHeight(int bh)

getBottomHeight

public final int getBottomHeight()

setRightWidth

public void setRightWidth(int rw)

getRightWidth

public final int getRightWidth()

setTopHeight

public void setTopHeight(int th)

getTopHeight

public final int getTopHeight()

setLeftWidth

public void setLeftWidth(int lw)

getLeftWidth

public final int getLeftWidth()

setBarTexture

public void setBarTexture(Texture2D texture)

setBarTexture

public void setBarTexture(java.lang.String texture)

getBarTexture

public final Texture2D getBarTexture()

setBorderDescription

public void setBorderDescription(Border.Description borderDesc)

getBorderDescription

public final Border.Description getBorderDescription()

setLabelDescription

public void setLabelDescription(Label.Description labelDesc)

getLabelDescription

public final Label.Description getLabelDescription()

set

public void set(ProgressBar.Description desc)
Clone-Constructor

Parameters:
desc - the original to be duplicated

clone

public ProgressBar.Description clone()
Description copied from class: BackgroundSettableWidget.BackgroundSettableDescriptionBase
Returns a clone of this instance.

Specified by:
clone in class BackgroundSettableWidget.BackgroundSettableDescriptionBase
Returns:
a clone of this ProgressBar.Description.