|
||||||||||
| 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)
Creates a new Scrollbar.Description. |
|
Scrollbar.Description(Scrollbar.Direction direction,
float size,
java.lang.String backgroundTexture,
java.lang.String handleTexture,
float handleSize,
int lower,
int upper,
boolean smoothScrolling)
Creates a new Scrollbar.Description. |
|
Scrollbar.Description(Scrollbar.Direction direction,
float size,
java.lang.String backgroundTexture,
java.lang.String handleTexture,
float handleSize,
java.lang.String decTexture,
float decButtonSize,
java.lang.String incTexture,
float incButtonSize,
int lower,
int upper,
boolean smoothScrolling)
Creates a new Scrollbar.Description. |
|
Scrollbar.Description(Scrollbar.Direction direction,
float size,
Texture backgroundTexture,
Texture handleTexture,
float handleSize,
int lower,
int upper,
boolean smoothScrolling)
Creates a new Scrollbar.Description. |
|
Scrollbar.Description(Scrollbar.Direction direction,
float size,
Texture backgroundTexture,
Texture handleTexture,
float handleSize,
Texture decTexture,
float decButtonSize,
Texture incTexture,
float incButtonSize,
int lower,
int upper,
boolean smoothScrolling)
Creates a new Scrollbar.Description. |
|
Scrollbar.Description(Scrollbar.Direction direction,
HUDUnitsMeasurement sizeMeasurement,
float size,
java.lang.String backgroundTexture,
java.lang.String handleTexture,
float handleSize,
int lower,
int upper,
boolean smoothScrolling)
Creates a new Scrollbar.Description. |
|
Scrollbar.Description(Scrollbar.Direction direction,
HUDUnitsMeasurement sizeMeasurement,
float size,
java.lang.String backgroundTexture,
java.lang.String handleTexture,
float handleSize,
java.lang.String decTexture,
float decButtonSize,
java.lang.String incTexture,
float incButtonSize,
int lower,
int upper,
boolean smoothScrolling)
Creates a new Scrollbar.Description. |
|
Scrollbar.Description(Scrollbar.Direction direction,
HUDUnitsMeasurement sizeMeasurement,
float size,
Texture backgroundTexture,
Texture handleTexture,
float handleSize,
int lower,
int upper,
boolean smoothScrolling)
Creates a new Scrollbar.Description. |
|
Scrollbar.Description(Scrollbar.Direction direction,
HUDUnitsMeasurement sizeMeasurement,
float size,
Texture backgroundTexture,
Texture handleTexture,
float handleSize,
Texture decTexture,
float decButtonSize,
Texture incTexture,
float incButtonSize,
int lower,
int upper,
boolean smoothScrolling)
Creates a new Scrollbar.Description. |
|
| Method Summary | |
|---|---|
Scrollbar.Description |
clone()
|
Texture |
getBackgroundTexture()
|
float |
getDecrementButtonSize()
|
Texture |
getDecrementTexture()
|
Scrollbar.Direction |
getDirection()
|
float |
getHandleButtonSize()
|
Texture |
getHandleTexture()
|
float |
getIncrementButtonSize()
|
Texture |
getIncrementTexture()
|
int |
getLower()
|
HUDUnitsMeasurement |
getMeasurement()
|
float |
getSize()
|
int |
getSmallIncrement()
|
int |
getUpper()
|
boolean |
isSmoothScrolling()
|
void |
set(Scrollbar.Description desc)
Clone-Constructor. |
void |
setBackgroundTexture(java.lang.String texture)
Sets the background texture to use. |
void |
setBackgroundTexture(Texture texture)
Sets the background texture to use. |
void |
setDecrementButtonSize(float size)
Sets the decrement button size (width or height). |
void |
setDecrementTexture(java.lang.String texture)
Sets the texture to use for the decrement button. |
void |
setDecrementTexture(Texture texture)
Sets the texture to use for the decrement button. |
void |
setDirection(Scrollbar.Direction direc)
Sets the direction in which the Scrollbar scrolls. |
void |
setHandleButtonSize(float size)
Sets the handle button size (width or height). |
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 |
setIncrementButtonSize(float size)
Sets the increment button size (width or height). |
void |
setIncrementTexture(java.lang.String texture)
Sets the texture to use for the increment button. |
void |
setIncrementTexture(Texture texture)
Sets the texture to use for the increment button. |
void |
setLower(int lower)
Sets the lower bound of scroll values. |
void |
setMeasurement(HUDUnitsMeasurement measure)
Sets the measurement for increment-, decrement- and handle buttons. |
void |
setSize(float size)
Sets the size (width or height). |
void |
setSmallIncrement(int value)
Sets the step to increment the Scrollbar's value by when the increment button is clicked. |
void |
setSmoothScrolling(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 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,
HUDUnitsMeasurement sizeMeasurement,
float size,
Texture backgroundTexture,
Texture handleTexture,
float handleSize,
Texture decTexture,
float decButtonSize,
Texture incTexture,
float incButtonSize,
int lower,
int upper,
boolean smoothScrolling)
direction - the direction in which the Scrollbar scrollssizeMeasurement - the measurement for increment-, decrement- and handle buttonssize - the width or height of the ScrollbarbackgroundTexture - the background texture to usehandleTexture - the handle texture to usehandleSize - the size (width of height) of the handledecTexture - the decrement button texture to usedecButtonSize - the size (width of height) of the decrement buttonincTexture - the decrement button texture to useincButtonSize - the size (width of height) of the increment buttonlower - the lower value limitupper - the upper value limitsmoothScrolling - use smooth scrolling?
public Scrollbar.Description(Scrollbar.Direction direction,
HUDUnitsMeasurement sizeMeasurement,
float size,
java.lang.String backgroundTexture,
java.lang.String handleTexture,
float handleSize,
java.lang.String decTexture,
float decButtonSize,
java.lang.String incTexture,
float incButtonSize,
int lower,
int upper,
boolean smoothScrolling)
direction - the direction in which the Scrollbar scrollssizeMeasurement - the measurement for increment-, decrement- and handle buttonssize - the width or height of the ScrollbarbackgroundTexture - the background texture to usehandleTexture - the handle texture to usehandleSize - the size (width of height) of the handledecTexture - the decrement button texture to usedecButtonSize - the size (width of height) of the decrement buttonincTexture - the decrement button texture to useincButtonSize - the size (width of height) of the increment buttonlower - the lower value limitupper - the upper value limitsmoothScrolling - use smooth scrolling?
public Scrollbar.Description(Scrollbar.Direction direction,
float size,
Texture backgroundTexture,
Texture handleTexture,
float handleSize,
Texture decTexture,
float decButtonSize,
Texture incTexture,
float incButtonSize,
int lower,
int upper,
boolean smoothScrolling)
direction - the direction in which the Scrollbar scrollssize - the width or height of the ScrollbarbackgroundTexture - the background texture to usehandleTexture - the handle texture to usehandleSize - the size (width of height) of the handledecTexture - the decrement button texture to usedecButtonSize - the size (width of height) of the decrement buttonincTexture - the decrement button texture to useincButtonSize - the size (width of height) of the increment buttonlower - the lower value limitupper - the upper value limitsmoothScrolling - use smooth scrolling?
public Scrollbar.Description(Scrollbar.Direction direction,
float size,
java.lang.String backgroundTexture,
java.lang.String handleTexture,
float handleSize,
java.lang.String decTexture,
float decButtonSize,
java.lang.String incTexture,
float incButtonSize,
int lower,
int upper,
boolean smoothScrolling)
direction - the direction in which the Scrollbar scrollssize - the width or height of the ScrollbarbackgroundTexture - the background texture to usehandleTexture - the handle texture to usehandleSize - the size (width of height) of the handledecTexture - the decrement button texture to usedecButtonSize - the size (width of height) of the decrement buttonincTexture - the decrement button texture to useincButtonSize - the size (width of height) of the increment buttonlower - the lower value limitupper - the upper value limitsmoothScrolling - use smooth scrolling?
public Scrollbar.Description(Scrollbar.Direction direction,
HUDUnitsMeasurement sizeMeasurement,
float size,
Texture backgroundTexture,
Texture handleTexture,
float handleSize,
int lower,
int upper,
boolean smoothScrolling)
direction - the direction in which the Scrollbar scrollssizeMeasurement - the measurement for increment-, decrement- and
handle buttonssize - the width or height of the ScrollbarbackgroundTexture - the background texture to usehandleTexture - the handle texture to usehandleSize - the size (width of height) of the handlelower - the lower value limitupper - the upper value limitsmoothScrolling - use smooth scrolling?
public Scrollbar.Description(Scrollbar.Direction direction,
HUDUnitsMeasurement sizeMeasurement,
float size,
java.lang.String backgroundTexture,
java.lang.String handleTexture,
float handleSize,
int lower,
int upper,
boolean smoothScrolling)
direction - the direction in which the Scrollbar scrollssizeMeasurement - the measurement for increment-, decrement- and handle buttonssize - the width or height of the ScrollbarbackgroundTexture - the background texture to usehandleTexture - the handle texture to usehandleSize - the size (width of height) of the handlelower - the lower value limitupper - the upper value limitsmoothScrolling - use smooth scrolling?
public Scrollbar.Description(Scrollbar.Direction direction,
float size,
Texture backgroundTexture,
Texture handleTexture,
float handleSize,
int lower,
int upper,
boolean smoothScrolling)
direction - the direction in which the Scrollbar scrollssize - the width or height of the ScrollbarbackgroundTexture - the background texture to usehandleTexture - the handle texture to usehandleSize - the size (width of height) of the handlelower - the lower value limitupper - the upper value limitsmoothScrolling - use smooth scrolling?
public Scrollbar.Description(Scrollbar.Direction direction,
float size,
java.lang.String backgroundTexture,
java.lang.String handleTexture,
float handleSize,
int lower,
int upper,
boolean smoothScrolling)
direction - the direction in which the Scrollbar scrollsbackgroundTexture - the background texture to usehandleTexture - the handle texture to usehandleSize - the size (width of height) of the handlelower - the lower value limitupper - the upper value limitsmoothScrolling - use smooth scrolling?public Scrollbar.Description(Scrollbar.Direction direction)
direction - the direction in which the Scrollbar scrolls| Method Detail |
|---|
public Scrollbar.Direction getDirection()
public void setDirection(Scrollbar.Direction direc)
public void setMeasurement(HUDUnitsMeasurement measure)
measure - the new measurementpublic HUDUnitsMeasurement getMeasurement()
public void setBackgroundTexture(Texture texture)
texture - the texturepublic void setBackgroundTexture(java.lang.String texture)
texture - the texturepublic Texture getBackgroundTexture()
public void setSize(float size)
size - the new sizepublic float getSize()
public void setIncrementTexture(Texture texture)
texture - the texturepublic void setIncrementTexture(java.lang.String texture)
texture - the texturepublic Texture getIncrementTexture()
public void setIncrementButtonSize(float size)
size - the new sizepublic float getIncrementButtonSize()
public void setDecrementTexture(Texture texture)
texture - the texturepublic void setDecrementTexture(java.lang.String texture)
texture - the texturepublic Texture getDecrementTexture()
public void setDecrementButtonSize(float size)
size - the new sizepublic float getDecrementButtonSize()
public void setHandleTexture(Texture texture)
texture - the texturepublic void setHandleTexture(java.lang.String texture)
texture - the texturepublic Texture getHandleTexture()
public void setHandleButtonSize(float size)
size - the new sizepublic float getHandleButtonSize()
public int getLower()
public void setLower(int lower)
public int getUpper()
public void setUpper(int upper)
public int getSmallIncrement()
public void setSmallIncrement(int value)
public void setSmoothScrolling(boolean b)
b - enable/disablepublic boolean isSmoothScrolling()
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 | |||||||||