Scrollbar
when accessing NiftyControls.@Deprecated public class ScrollbarControl extends AbstractController implements Scrollbar
Constructor and Description |
---|
ScrollbarControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(Nifty nifty,
Screen screen,
Element element,
Properties parameter,
Attributes controlDefinitionAttributes)
Deprecated.
|
void |
click(int mouseX,
int mouseY)
Deprecated.
|
boolean |
consumeRelease()
Deprecated.
|
void |
downClick()
Deprecated.
|
float |
getButtonStepSize()
Deprecated.
Get the current button step size.
|
float |
getPageStepSize()
Deprecated.
Get the current page size.
|
float |
getValue()
Deprecated.
Get the current value of the scrollbar.
|
float |
getWorldMax()
Deprecated.
Get the current maximum of the scrollbar.
|
float |
getWorldPageSize()
Deprecated.
Get the current page size
|
boolean |
inputEvent(NiftyInputEvent inputEvent)
Deprecated.
|
void |
layoutCallback()
Deprecated.
|
void |
mouseMove(int mouseX,
int mouseY)
Deprecated.
|
void |
mouseMoveStart(int mouseX,
int mouseY)
Deprecated.
|
boolean |
mouseWheel(Element element,
NiftyMouseInputEvent inputEvent)
Deprecated.
|
void |
onStartScreen()
Deprecated.
|
void |
setButtonStepSize(float stepSize)
Deprecated.
Set the button step size to a new value.
|
void |
setPageStepSize(float stepSize)
Deprecated.
Set a new page size for page up/down and clicks on the background.
|
void |
setup(float value,
float worldMax,
float worldPageSize,
float buttonStepSize,
float pageStepSize)
Deprecated.
Setup all parameters of this Scrollbar.
|
void |
setValue(float value)
Deprecated.
Change the value of the scrollbar.
|
void |
setWorldMax(float worldMax)
Deprecated.
Set the new maximum of the scrollbar.
|
void |
setWorldPageSize(float worldPageSize)
Deprecated.
Set the new page size
|
void |
upClick()
Deprecated.
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
public void bind(Nifty nifty, Screen screen, Element element, Properties parameter, Attributes controlDefinitionAttributes)
bind
in interface Controller
public void onStartScreen()
onStartScreen
in interface Controller
public void layoutCallback()
layoutCallback
in interface NiftyControl
layoutCallback
in class AbstractController
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent
in interface Controller
public void upClick()
public void downClick()
public void click(int mouseX, int mouseY)
public void mouseMoveStart(int mouseX, int mouseY)
public void mouseMove(int mouseX, int mouseY)
public boolean consumeRelease()
public boolean mouseWheel(Element element, NiftyMouseInputEvent inputEvent)
public void setup(float value, float worldMax, float worldPageSize, float buttonStepSize, float pageStepSize)
Scrollbar
public void setValue(float value)
Scrollbar
public float getValue()
Scrollbar
public void setWorldMax(float worldMax)
Scrollbar
setWorldMax
in interface Scrollbar
worldMax
- new maximumpublic float getWorldMax()
Scrollbar
getWorldMax
in interface Scrollbar
public void setWorldPageSize(float worldPageSize)
Scrollbar
setWorldPageSize
in interface Scrollbar
worldPageSize
- new page sizepublic float getWorldPageSize()
Scrollbar
getWorldPageSize
in interface Scrollbar
public void setButtonStepSize(float stepSize)
Scrollbar
setButtonStepSize
in interface Scrollbar
stepSize
- step sizepublic float getButtonStepSize()
Scrollbar
getButtonStepSize
in interface Scrollbar
public void setPageStepSize(float stepSize)
Scrollbar
setPageStepSize
in interface Scrollbar
stepSize
- new step sizepublic float getPageStepSize()
Scrollbar
getPageStepSize
in interface Scrollbar
Copyright © 2013. All Rights Reserved.