|
||||||||||
| 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.ProgressBar
public class ProgressBar
| Nested Class Summary | |
|---|---|
static class |
ProgressBar.Description
This class is used to describe a ProgressBar 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 | |
|---|---|
ProgressBar(float width,
float height)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int zIndex)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int zIndex,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int zIndex,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int minValue,
int maxValue)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int zIndex,
int minValue,
int maxValue)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int zIndex,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int zIndex,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int zIndex,
int minValue,
int maxValue,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int minValue,
int maxValue,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
int zIndex,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(float width,
float height,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int minValue,
int maxValue)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
int minValue,
int maxValue)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
int minValue,
int maxValue,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int minValue,
int maxValue,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
ProgressBar(org.openmali.types.twodee.Sized2fRO size,
ProgressBar.Description desc)
Creates a new ProgressBar. |
|
| Method Summary | |
|---|---|
java.awt.Font |
getFont()
|
org.openmali.vecmath2.Colorf |
getFontColor()
|
int |
getMaxValue()
|
int |
getMinValue()
|
float |
getTransparency()
|
int |
getValue()
|
protected void |
init()
This method is called when the WidgetContainer is set. |
void |
setFont(java.awt.Font font)
Sets the Font to use for the percent value in the center of the ProgressBar. |
void |
setFont(java.awt.Font font,
org.openmali.vecmath2.Colorf color)
Sets the Font to use for the percent value in the center of the ProgressBar. |
void |
setFontColor(org.openmali.vecmath2.Colorf color)
Sets the Font color to use for the percent value in the center of the ProgressBar. |
void |
setMaxValue(int maxValue)
Sets the maximum value this ProgressBar can take. |
void |
setMinValue(int minValue)
Sets the minimum value this ProgressBar can take. |
void |
setValue(int value)
Sets the current value of this ProgressBar. |
void |
updateBar()
Sets the current value of this ProgressBar. |
protected void |
updateText(java.lang.String text)
|
| 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 |
| Constructor Detail |
|---|
public ProgressBar(float width,
float height,
int zIndex,
int minValue,
int maxValue,
ProgressBar.Description desc)
width - the desired widthheight - the desired heightzIndex - the desired z-indexminValue - the initial minimum valuemaxValue - the initial maximum valuedesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
size - the desired sizezIndex - the desired z-indexminValue - the initial minimum valuemaxValue - the initial maximum valuefont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBardesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(float width,
float height,
int zIndex,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
width - the desired widthheight - the desired heightzIndex - the desired z-indexminValue - the initial minimum valuemaxValue - the initial maximum valuefont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBardesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
size - the desired sizezIndex - the desired z-indexminValue - the initial minimum valuemaxValue - the initial maximum valuefont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBar
public ProgressBar(float width,
float height,
int zIndex,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
width - the desired widthheight - the desired heightzIndex - the desired z-indexminValue - the initial minimum valuemaxValue - the initial maximum valuefont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
int minValue,
int maxValue,
ProgressBar.Description desc)
size - the desired sizezIndex - the desired z-indexminValue - the initial minimum valuemaxValue - the initial maximum valuedesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
int minValue,
int maxValue)
size - the desired sizezIndex - the desired z-indexminValue - the initial minimum valuemaxValue - the initial maximum value
public ProgressBar(float width,
float height,
int zIndex,
int minValue,
int maxValue)
width - the desired widthheight - the desired heightzIndex - the desired z-indexminValue - the initial minimum valuemaxValue - the initial maximum value
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
size - the desired sizezIndex - the desired z-indexfont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBardesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(float width,
float height,
int zIndex,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
width - the desired widthheight - the desired heightzIndex - the desired z-indexfont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBardesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
size - the desired sizezIndex - the desired z-indexfont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBar
public ProgressBar(float width,
float height,
int zIndex,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
width - the desired widthheight - the desired heightzIndex - the desired z-indexfont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex,
ProgressBar.Description desc)
size - the desired sizezIndex - the desired z-indexdesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(float width,
float height,
int zIndex,
ProgressBar.Description desc)
width - the desired widthheight - the desired heightzIndex - the desired z-indexdesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int zIndex)
size - the desired sizezIndex - the desired z-index
public ProgressBar(float width,
float height,
int zIndex)
width - the desired widthheight - the desired heightzIndex - the desired z-index
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
size - the desired sizefont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBardesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(float width,
float height,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
width - the desired widthheight - the desired heightfont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBardesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
size - the desired sizefont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBar
public ProgressBar(float width,
float height,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
width - the desired widthheight - the desired heightfont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
ProgressBar.Description desc)
size - the desired sizedesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(float width,
float height,
ProgressBar.Description desc)
width - the desired widthheight - the desired heightdesc - the ProgressBar.Description to describe this ProgressBarpublic ProgressBar(org.openmali.types.twodee.Sized2fRO size)
size - the desired size
public ProgressBar(float width,
float height)
width - the desired widthheight - the desired height
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
size - the desired sizeminValue - the initial minimum valuemaxValue - the initial maximum valuefont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBardesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(float width,
float height,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color,
ProgressBar.Description desc)
width - the desired widthheight - the desired heightminValue - the initial minimum valuemaxValue - the initial maximum valuefont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBardesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
size - the desired sizeminValue - the initial minimum valuemaxValue - the initial maximum valuefont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBar
public ProgressBar(float width,
float height,
int minValue,
int maxValue,
java.awt.Font font,
org.openmali.vecmath2.Colorf color)
width - the desired widthheight - the desired heightminValue - the initial minimum valuemaxValue - the initial maximum valuefont - the Font to use for the percent value in the center of the ProgressBarcolor - the color to use for the percent value in the center of the ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int minValue,
int maxValue,
ProgressBar.Description desc)
size - the desired sizeminValue - the initial minimum valuemaxValue - the initial maximum valuedesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(float width,
float height,
int minValue,
int maxValue,
ProgressBar.Description desc)
width - the desired widthheight - the desired heightminValue - the initial minimum valuemaxValue - the initial maximum valuedesc - the ProgressBar.Description to describe this ProgressBar
public ProgressBar(org.openmali.types.twodee.Sized2fRO size,
int minValue,
int maxValue)
size - the desired sizeminValue - the initial minimum valuemaxValue - the initial maximum value
public ProgressBar(float width,
float height,
int minValue,
int maxValue)
width - the desired widthheight - the desired heightminValue - the initial minimum valuemaxValue - the initial maximum value| Method Detail |
|---|
public float getTransparency()
public void setFont(java.awt.Font font)
font - the Fontpublic java.awt.Font getFont()
public void setFontColor(org.openmali.vecmath2.Colorf color)
color - the Colorpublic org.openmali.vecmath2.Colorf getFontColor()
public void setFont(java.awt.Font font,
org.openmali.vecmath2.Colorf color)
font - the Fontcolor - the font-colorpublic void setMinValue(int minValue)
minValue - the new minimum valuepublic int getMinValue()
public void setMaxValue(int maxValue)
maxValue - the new minimum valuepublic int getMaxValue()
protected void updateText(java.lang.String text)
public void updateBar()
public void setValue(int value)
value - the new valuepublic int getValue()
protected void init()
init in class WidgetBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||