|
||||||||||
| 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(int height,
java.lang.String leftTexture,
java.lang.String rightTexture,
java.lang.String bodyTexture,
java.lang.String valueMarkTexture,
java.lang.String handleTexture,
int handleYOffset,
boolean smoothSliding)
Creates a new Slider.Description. |
|
Slider.Description(int height,
Texture2D leftTexture,
Texture2D rightTexture,
Texture2D bodyTexture,
Texture2D valueMarkTexture,
Texture2D handleTexture,
int handleYOffset,
boolean smoothSliding)
Creates a new Slider.Description. |
|
| Method Summary | |
|---|---|
Slider.Description |
clone()
|
Texture2D |
getBodyTexture()
|
int |
getHandleButtonYOffset()
|
Texture2D |
getHandleTexture()
|
int |
getHeight()
|
Texture2D |
getLeftTexture()
|
Texture2D |
getRightTexture()
|
boolean |
getSmoothSliding()
|
Texture2D |
getValueMarkTexture()
|
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. |
void |
setBodyTexture(Texture2D texture)
Sets the texture to use for the body. |
void |
setHandleButtonYOffset(int yOffset)
Sets the handle button's y-offset. |
void |
setHandleTexture(java.lang.String texture)
Sets the texture to use for the handle. |
void |
setHandleTexture(Texture2D texture)
Sets the texture to use for the handle. |
void |
setHeight(int height)
Sets the height. |
void |
setLeftTexture(java.lang.String texture)
Sets the texture to use for the left end. |
void |
setLeftTexture(Texture2D texture)
Sets the texture to use for the left end. |
void |
setRightTexture(java.lang.String texture)
Sets the texture to use for the right end. |
void |
setRightTexture(Texture2D texture)
Sets the texture to use for the right end. |
void |
setSmoothSliding(boolean b)
If true, the handle doesn't snap to discrete positiones depending on the available scroll values. |
void |
setValueMarkTexture(java.lang.String texture)
Sets the texture to use for the value mark. |
void |
setValueMarkTexture(Texture2D texture)
Sets the texture to use for the value mark. |
| 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(int height,
Texture2D leftTexture,
Texture2D rightTexture,
Texture2D bodyTexture,
Texture2D valueMarkTexture,
Texture2D handleTexture,
int handleYOffset,
boolean smoothSliding)
height - the heightleftTexture - the texture to use for the left endrightTexture - the texture to use for the right endbodyTexture - the texture to use for the body (tiled)valueMarkTexture - the texture to use for the value mark (repeated)handleTexture - the handle texture to usehandleYOffset - the y-offset for the handle buttonsmoothSliding - use smooth sliding?
public Slider.Description(int height,
java.lang.String leftTexture,
java.lang.String rightTexture,
java.lang.String bodyTexture,
java.lang.String valueMarkTexture,
java.lang.String handleTexture,
int handleYOffset,
boolean smoothSliding)
height - the heightleftTexture - the texture to use for the left endrightTexture - the texture to use for the right endbodyTexture - the texture to use for the body (tiled)valueMarkTexture - the texture to use for the value mark (repeated)handleTexture - the handle texture to usehandleYOffset - the y-offset for the handle buttonsmoothSliding - use smooth sliding?| Method Detail |
|---|
public void setHeight(int height)
height - the new heightpublic final int getHeight()
public void setLeftTexture(Texture2D texture)
texture - the texturepublic void setLeftTexture(java.lang.String texture)
texture - the texturepublic final Texture2D getLeftTexture()
public void setRightTexture(Texture2D texture)
texture - the texturepublic void setRightTexture(java.lang.String texture)
texture - the texturepublic final Texture2D getRightTexture()
public void setBodyTexture(Texture2D texture)
texture - the texturepublic void setBodyTexture(java.lang.String texture)
texture - the texturepublic final Texture2D getBodyTexture()
public void setValueMarkTexture(Texture2D texture)
texture - the texturepublic void setValueMarkTexture(java.lang.String texture)
texture - the texturepublic final Texture2D getValueMarkTexture()
public void setHandleTexture(Texture2D texture)
texture - the texturepublic void setHandleTexture(java.lang.String texture)
texture - the texturepublic final Texture2D getHandleTexture()
public void setHandleButtonYOffset(int yOffset)
yOffset - the y-offset of the handle buttonpublic final int getHandleButtonYOffset()
public void setSmoothSliding(boolean b)
b - enable/disablepublic final boolean getSmoothSliding()
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 | |||||||||