public abstract class AbstractSlider extends BoundedRange
EMPTY_ELEMENT_ARRAY
Constructor and Description |
---|
AbstractSlider(BoundedRangeModel model)
Creates a slider with the given model.
|
AbstractSlider(int min,
int max,
int initialValue)
Creates a slider with a default bounded range model.
|
Modifier and Type | Method and Description |
---|---|
protected abstract float |
computePercentComplete(int pointerX,
int pointerY)
Computes the percent complete according to the pointer coordinates.
|
boolean |
handleEvent(int event) |
addOnValueChangeListener, getMaximum, getMinimum, getPercentComplete, getValue, removeOnValueChangeListener, reset, setMaximum, setMinimum, setModel, setValue
addClassSelector, contains, gainFocus, getAttribute, getChild, getChildrenCount, getChildrenElements, getContentBounds, getParentElement, getStyle, hasClassSelector, isInState, isTransparent, lostFocus, mergeStyle, removeAllClassSelectors, removeClassSelector, removeInstanceStyle, render, setClassSelectors, setEnabled, updateStyle, updateStyleOnly, validate
getAbsoluteX, getAbsoluteX, getAbsoluteY, getAbsoluteY, getEventHandler, getHeight, getPanel, getParent, getPreferredHeight, getPreferredWidth, getRelativeX, getRelativeY, getWidgetAt, getWidth, getX, getY, hasFocus, hideNotify, invalidate, isEnabled, isShown, isValid, isVisible, repaint, repaint, requestFocus, requestFocus, revalidate, revalidateSubTree, setBounds, setEventHandler, setLocation, setPreferredSize, setSize, setVisible, showNotify
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
renderContent, validateContent
public AbstractSlider(BoundedRangeModel model)
model
- the model to use.public AbstractSlider(int min, int max, int initialValue)
min
- the minimum value of the slider.max
- the maximum value of the slider.initialValue
- the initial value of the slider.DefaultBoundedRangeModel
public boolean handleEvent(int event)
handleEvent
in interface ej.mwt.Renderable
handleEvent
in class ej.mwt.Widget
protected abstract float computePercentComplete(int pointerX, int pointerY)
pointerX
- the x coordinate of the pointer.pointerY
- the y coordinate of the pointer.