|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.base.Widget.DescriptionBase
org.xith3d.ui.hud.widgets.Slider.Description
public static class Slider.Description
This class is used to describe a (set of) Slider Widget(s). You can pass it to the Slider constructor. Modifications on the used instance after creating the Slider Widget won't have any effect.
| Constructor Summary | |
|---|---|
Slider.Description()
Creates a new Slider.Description. |
|
Slider.Description(float height,
java.lang.String leftTexture,
float leftWidth,
java.lang.String rightTexture,
float rightWidth,
java.lang.String bodyTexture,
java.lang.String handleTexture,
float handleWidth,
float handleYOffset,
int lower,
int upper,
boolean smoothSliding)
Creates a new Slider.Description. |
|
Slider.Description(float height,
Texture leftTexture,
float leftWidth,
Texture rightTexture,
float rightWidth,
Texture bodyTexture,
Texture handleTexture,
float handleWidth,
float handleYOffset,
int lower,
int upper,
boolean smoothSliding)
Creates a new Slider.Description. |
|
Slider.Description(HUDUnitsMeasurement sizeMeasurement,
float height,
java.lang.String leftTexture,
float leftWidth,
java.lang.String rightTexture,
float rightWidth,
java.lang.String bodyTexture,
java.lang.String handleTexture,
float handleWidth,
float handleYOffset,
int lower,
int upper,
boolean smoothSliding)
Creates a new Slider.Description. |
|
Slider.Description(HUDUnitsMeasurement sizeMeasurement,
float height,
Texture leftTexture,
float leftWidth,
Texture rightTexture,
float rightWidth,
Texture bodyTexture,
Texture handleTexture,
float handleWidth,
float handleYOffset,
int lower,
int upper,
boolean smoothSliding)
Creates a new Slider.Description. |
|
Slider.Description(Slider.Description desc)
Clone-Constructor. |
|
| Method Summary | |
|---|---|
Slider.Description |
clone()
|
Texture |
getBodyTexture()
|
float |
getHandleButtonWidth()
|
float |
getHandleButtonYOffset()
|
Texture |
getHandleTexture()
|
float |
getHeight()
|
Texture |
getLeftTexture()
|
float |
getLeftWidth()
|
int |
getLower()
|
HUDUnitsMeasurement |
getMeasurement()
|
Texture |
getRightTexture()
|
float |
getRightWidth()
|
int |
getUpper()
|
boolean |
isSmoothSliding()
|
void |
set(Slider.Description desc)
Sets all values of this Description to the values of the given Description. |
void |
setBodyTexture(java.lang.String texture)
Sets the texture to use for the body end. |
void |
setBodyTexture(Texture texture)
Sets the texture to use for the body end. |
void |
setHandleButtonWidth(float width)
Sets the handle button width. |
void |
setHandleButtonYOffset(float yOffset)
Sets the handle button's y-offset. |
void |
setHandleTexture(java.lang.String texture)
Sets the texture to use for the handle. |
void |
setHandleTexture(Texture texture)
Sets the texture to use for the handle. |
void |
setHeight(float height)
Sets the height. |
void |
setLeftTexture(java.lang.String texture)
Sets the texture to use for the left end. |
void |
setLeftTexture(Texture texture)
Sets the texture to use for the left end. |
void |
setLeftWidth(float width)
Sets the width of the left end. |
void |
setLower(int lower)
Sets the lower bound of values. |
void |
setMeasurement(HUDUnitsMeasurement measure)
Sets the measurement for increment-, decrement- and handle buttons. |
void |
setRightTexture(java.lang.String texture)
Sets the texture to use for the right end. |
void |
setRightTexture(Texture texture)
Sets the texture to use for the right end. |
void |
setRightWidth(float width)
Sets the width of the right end. |
void |
setSmoothSliding(boolean b)
If true, the handle doesn't snap to discrete positiones depending on the available scroll values. |
void |
setUpper(int upper)
Sets the upper bound of values. |
| 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 |
|---|
public Slider.Description(Slider.Description desc)
desc - the original to be duplicated
public Slider.Description(HUDUnitsMeasurement sizeMeasurement,
float height,
Texture leftTexture,
float leftWidth,
Texture rightTexture,
float rightWidth,
Texture bodyTexture,
Texture handleTexture,
float handleWidth,
float handleYOffset,
int lower,
int upper,
boolean smoothSliding)
sizeMeasurement - the measurement for increment-, decrement- and handle buttonsheight - the heightleftTexture - the texture to use for the left endleftWidth - the width of the left endrightTexture - the texture to use for the right endrightWidth - the width of the right endbodyTexture - the texture to use for the body (tiled)handleTexture - the handle texture to usehandleWidth - the size (width of height) of the handlehandleYOffset - the y-offset for the handle buttonlower - the lower value limitupper - the upper value limitsmoothSliding - use smooth sliding?
public Slider.Description(HUDUnitsMeasurement sizeMeasurement,
float height,
java.lang.String leftTexture,
float leftWidth,
java.lang.String rightTexture,
float rightWidth,
java.lang.String bodyTexture,
java.lang.String handleTexture,
float handleWidth,
float handleYOffset,
int lower,
int upper,
boolean smoothSliding)
sizeMeasurement - the measurement for increment-, decrement- and handle buttonsheight - the heightleftTexture - the texture to use for the left endleftWidth - the width of the left endrightTexture - the texture to use for the right endrightWidth - the width of the right endbodyTexture - the texture to use for the body (tiled)handleTexture - the handle texture to usehandleWidth - the size (width of height) of the handlehandleYOffset - the y-offset for the handle buttonlower - the lower value limitupper - the upper value limitsmoothSliding - use smooth sliding?
public Slider.Description(float height,
Texture leftTexture,
float leftWidth,
Texture rightTexture,
float rightWidth,
Texture bodyTexture,
Texture handleTexture,
float handleWidth,
float handleYOffset,
int lower,
int upper,
boolean smoothSliding)
height - the heightleftTexture - the texture to use for the left endleftWidth - the width of the left endrightTexture - the texture to use for the right endrightWidth - the width of the right endbodyTexture - the texture to use for the body (tiled)handleTexture - the handle texture to usehandleWidth - the size (width of height) of the handlehandleYOffset - the y-offset for the handle buttonlower - the lower value limitupper - the upper value limitsmoothSliding - use smooth sliding?
public Slider.Description(float height,
java.lang.String leftTexture,
float leftWidth,
java.lang.String rightTexture,
float rightWidth,
java.lang.String bodyTexture,
java.lang.String handleTexture,
float handleWidth,
float handleYOffset,
int lower,
int upper,
boolean smoothSliding)
height - the heightleftTexture - the texture to use for the left endleftWidth - the width of the left endrightTexture - the texture to use for the right endrightWidth - the width of the right endbodyTexture - the texture to use for the body (tiled)handleTexture - the handle texture to usehandleWidth - the size (width of height) of the handlehandleYOffset - the y-offset for the handle buttonlower - the lower value limitupper - the upper value limitsmoothSliding - use smooth sliding?public Slider.Description()
| Method Detail |
|---|
public void setMeasurement(HUDUnitsMeasurement measure)
measure - the new measurementpublic HUDUnitsMeasurement getMeasurement()
public void setHeight(float height)
height - the new heightpublic float getHeight()
public void setLeftTexture(Texture texture)
texture - the texturepublic void setLeftTexture(java.lang.String texture)
texture - the texturepublic Texture getLeftTexture()
public void setLeftWidth(float width)
width - the new widthpublic float getLeftWidth()
public void setRightTexture(Texture texture)
texture - the texturepublic void setRightTexture(java.lang.String texture)
texture - the texturepublic Texture getRightTexture()
public void setRightWidth(float width)
width - the new widthpublic float getRightWidth()
public void setBodyTexture(Texture texture)
texture - the texturepublic void setBodyTexture(java.lang.String texture)
texture - the texturepublic Texture getBodyTexture()
public void setHandleTexture(Texture texture)
texture - the texturepublic void setHandleTexture(java.lang.String texture)
texture - the texturepublic Texture getHandleTexture()
public void setHandleButtonWidth(float width)
width - the new widthpublic float getHandleButtonWidth()
public void setHandleButtonYOffset(float yOffset)
yOffset - the y-offset of the handle buttonpublic float getHandleButtonYOffset()
public int getLower()
public void setLower(int lower)
public int getUpper()
public void setUpper(int upper)
public void setSmoothSliding(boolean b)
b - enable/disablepublic boolean isSmoothSliding()
public void set(Slider.Description desc)
desc - the original to be duplicatedpublic Slider.Description clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||