|
||||||||||
| 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.Scrollbar.Description
public static class Scrollbar.Description
This class is used to describe a (set of) Scrollbar Widget(s). You can pass it to the Scrollbar constructor. Modifications on the used instance after creating the Scrollbar Widget won't have any effect.
| Constructor Summary | |
|---|---|
Scrollbar.Description(Scrollbar.Description desc)
Clone-Constructor. |
|
Scrollbar.Description(Scrollbar.Direction direction,
java.lang.String backgroundTexture,
java.lang.String handleLTTexture,
java.lang.String handleRBTexture,
java.lang.String handleBodyTexture,
java.lang.String handleDecoTexture,
java.lang.String decTexture,
java.lang.String incTexture,
boolean smoothScrolling)
Creates a new Scrollbar.Description. |
|
Scrollbar.Description(Scrollbar.Direction direction,
Texture2D backgroundTexture,
Texture2D handleLTTexture,
Texture2D handleRBTexture,
Texture2D handleBodyTexture,
Texture2D handleDecoTexture,
Texture2D decTexture,
Texture2D incTexture,
boolean smoothScrolling)
Creates a new Scrollbar.Description. |
|
| Method Summary | |
|---|---|
Scrollbar.Description |
clone()
|
Texture2D |
getBackgroundTexture()
|
Texture2D |
getDecrementTexture()
|
Scrollbar.Direction |
getDirection()
|
Texture2D |
getHandleBodyTexture()
|
Texture2D |
getHandleDecoTexture()
|
Texture2D |
getHandleLeftTopTexture()
|
Texture2D |
getHandleRightBottomTexture()
|
Texture2D |
getIncrementTexture()
|
boolean |
getSmoothScrolling()
|
void |
set(Scrollbar.Description desc)
Clone-Constructor. |
void |
setBackgroundTexture(java.lang.String texture)
Sets the background texture to use. |
void |
setBackgroundTexture(Texture2D texture)
Sets the background texture to use. |
void |
setDecrementTexture(java.lang.String texture)
Sets the texture to use for the decrement button. |
void |
setDecrementTexture(Texture2D texture)
Sets the texture to use for the decrement button. |
void |
setDirection(Scrollbar.Direction direc)
Sets the direction in which the Scrollbar scrolls. |
void |
setHandleTextures(java.lang.String handleLTTexture,
java.lang.String handleRBTexture,
java.lang.String handleBodyTexture,
java.lang.String handleDecoTexture)
Sets the textures to use for the handle. |
void |
setHandleTextures(Texture2D handleLTTexture,
Texture2D handleRBTexture,
Texture2D handleBodyTexture,
Texture2D handleDecoTexture)
Sets the textures to use for the handle. |
void |
setIncrementTexture(java.lang.String texture)
Sets the texture to use for the increment button. |
void |
setIncrementTexture(Texture2D texture)
Sets the texture to use for the increment button. |
void |
setSmoothScrolling(boolean b)
If true, the handle doesn't snap to discrete positiones depending on the available scroll 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 Scrollbar.Description(Scrollbar.Description desc)
desc - the original to be duplicated
public Scrollbar.Description(Scrollbar.Direction direction,
Texture2D backgroundTexture,
Texture2D handleLTTexture,
Texture2D handleRBTexture,
Texture2D handleBodyTexture,
Texture2D handleDecoTexture,
Texture2D decTexture,
Texture2D incTexture,
boolean smoothScrolling)
direction - the direction in which the Scrollbar scrollsbackgroundTexture - the background texture to usehandleLTTexture - the handle texture to usehandleRBTexture - the handle texture to usehandleBodyTexture - the handle texture to usehandleDecoTexture - the handle texture to usedecTexture - the decrement button texture to useincTexture - the decrement button texture to usesmoothScrolling - use smooth scrolling?
public Scrollbar.Description(Scrollbar.Direction direction,
java.lang.String backgroundTexture,
java.lang.String handleLTTexture,
java.lang.String handleRBTexture,
java.lang.String handleBodyTexture,
java.lang.String handleDecoTexture,
java.lang.String decTexture,
java.lang.String incTexture,
boolean smoothScrolling)
direction - the direction in which the Scrollbar scrollsbackgroundTexture - the background texture to usehandleLTTexture - the handle texture to usehandleRBTexture - the handle texture to usehandleBodyTexture - the handle texture to usehandleDecoTexture - the handle texture to usedecTexture - the decrement button texture to useincTexture - the decrement button texture to usesmoothScrolling - use smooth scrolling?| Method Detail |
|---|
public void setDirection(Scrollbar.Direction direc)
public final Scrollbar.Direction getDirection()
public void setBackgroundTexture(Texture2D texture)
texture - the texturepublic final void setBackgroundTexture(java.lang.String texture)
texture - the texturepublic final Texture2D getBackgroundTexture()
public void setIncrementTexture(Texture2D texture)
texture - the texturepublic final void setIncrementTexture(java.lang.String texture)
texture - the texturepublic final Texture2D getIncrementTexture()
public void setDecrementTexture(Texture2D texture)
texture - the texturepublic final void setDecrementTexture(java.lang.String texture)
texture - the texturepublic final Texture2D getDecrementTexture()
public void setHandleTextures(Texture2D handleLTTexture,
Texture2D handleRBTexture,
Texture2D handleBodyTexture,
Texture2D handleDecoTexture)
handleLTTexture; - handleRBTexture; - handleBodyTexture; - handleDecoTexture; -
public final void setHandleTextures(java.lang.String handleLTTexture,
java.lang.String handleRBTexture,
java.lang.String handleBodyTexture,
java.lang.String handleDecoTexture)
handleLTTexture; - handleRBTexture; - handleBodyTexture; - handleDecoTexture; - public final Texture2D getHandleLeftTopTexture()
public final Texture2D getHandleRightBottomTexture()
public final Texture2D getHandleBodyTexture()
public final Texture2D getHandleDecoTexture()
public void setSmoothScrolling(boolean b)
b - enable/disablepublic final boolean getSmoothScrolling()
public void set(Scrollbar.Description desc)
desc - the original to be duplicatedpublic Scrollbar.Description clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||