|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQSlider
Slider Component.
Field Summary | |
static int |
NO_TICKS
Ticks position no thicks (the value is 0). |
static int |
TICKS_ABOVE
Ticks position thicks above (the value is 1). |
static int |
TICKS_BELOW
Ticks position thicks below (the value is 2). |
static int |
TICKS_BOTH_LEFT
Ticks position thicks left (the value is 1). |
static int |
TICKS_BOTH_RIGHT
Ticks position thicks right (the value is 2). |
static int |
TICKS_BOTH_SIDES
Ticks position thicks both sides (the value is 3). |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.QSwingConstants |
BOTTOM, CENTER, HORIZONTAL, LEADING, LEFT, RIGHT, TOP, TRAILING, VERTICAL |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQSliderProperties |
PROPERTY_MODEL, PROPERTY_ORIENTATION, PROPERTY_PAINT_TICKS, PROPERTY_TICK_POSITION, PROPERTY_TICK_SPACING |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Constructor Summary | |
JQSlider()
Constructs new JQSlider object. |
|
JQSlider(BoundedRangeModel model)
Constructs new JQSlider object. |
|
JQSlider(int orientation)
Constructs new JQSlider object. |
|
JQSlider(int minimum,
int maximum)
Constructs new JQSlider object. |
|
JQSlider(int minimum,
int maximum,
int value)
Constructs new JQSlider object. |
|
JQSlider(int orientation,
int minimum,
int maximum,
int value)
Constructs new JQSlider object. |
Method Summary | |
void |
addChangeListener(ChangeListener listener)
Adds change listener. |
protected void |
fireStateChanged()
Fires state changed event. |
ChangeListener[] |
getChangeListeners()
Returns change listeners. |
int |
getMaximum()
Returns maximum slider value. |
int |
getMinimum()
Returns minimum slider value. |
BoundedRangeModel |
getModel()
Returns data model of the slider. |
int |
getOrientation()
Returns orientation of the slider. |
boolean |
getPaintTicks()
Returns true if slider ticks are painted. |
int |
getTickPosition()
Returns tick position of the slider. |
int |
getTickSpacing()
Returns tick spacing of the slider. |
int |
getValue()
Returns current value of the slider. |
boolean |
getValueIsAdjusting()
Returns true if the slider knob is being dragged. |
protected java.lang.String |
paramString()
Returns parameters string. |
void |
removeChangeListener(ChangeListener listener)
Removes change listener. |
void |
setMaximum(int maximum)
Sets maximum slider value. |
void |
setMinimum(int minimum)
Sets minimum slider value. |
void |
setModel(BoundedRangeModel model)
Sets data model of the slider. |
void |
setOrientation(int orientation)
Sets orientation. |
void |
setPaintTicks(boolean paintTicks)
Sets whether of not slider ticks are painted. |
void |
setTickPosition(int tickPosition)
Sets tick position. |
void |
setTickSpacing(int tickSpacing)
Sets tick spacing. |
void |
setValue(int value)
Sets current value of the slider. |
void |
setValueIsAdjusting(boolean adjusting)
Sets the value of the valueIsAdjusting property. |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NO_TICKS
public static final int TICKS_ABOVE
public static final int TICKS_BELOW
public static final int TICKS_BOTH_SIDES
public static final int TICKS_BOTH_LEFT
public static final int TICKS_BOTH_RIGHT
Constructor Detail |
public JQSlider()
public JQSlider(int orientation)
orientation
- the orientation of the sliderpublic JQSlider(int minimum, int maximum)
minimum
- the minimum value of the slidermaximum
- the maximum value of the sliderpublic JQSlider(int minimum, int maximum, int value)
minimum
- the minimum value of the slidermaximum
- the maximum value of the slidervalue
- the current value of the sliderpublic JQSlider(int orientation, int minimum, int maximum, int value)
orientation
- the orientation of the sliderminimum
- the minimum value of the slidermaximum
- the maximum value of the slidervalue
- the current value of the sliderpublic JQSlider(BoundedRangeModel model)
model
- the modelMethod Detail |
public BoundedRangeModel getModel()
public void setModel(BoundedRangeModel model)
model
- the data modelpublic int getValue()
public void setValue(int value)
value
- the current value of the sliderpublic int getMinimum()
public void setMinimum(int minimum)
minimum
- the maximum slider valuepublic int getMaximum()
public void setMaximum(int maximum)
maximum
- the maximum slider valuepublic boolean getValueIsAdjusting()
public void setValueIsAdjusting(boolean adjusting)
adjusting
- the value of the valueIsAdjusting propertypublic int getOrientation()
public void setOrientation(int orientation)
orientation
- the orientationpublic int getTickPosition()
public void setTickPosition(int tickPosition)
tickPosition
- the tick positionpublic boolean getPaintTicks()
public void setPaintTicks(boolean paintTicks)
paintTicks
- true if paintedpublic int getTickSpacing()
public void setTickSpacing(int tickSpacing)
tickSpacing
- the tick spacingpublic void addChangeListener(ChangeListener listener)
listener
- the change listenerpublic void removeChangeListener(ChangeListener listener)
listener
- the component listenerpublic ChangeListener[] getChangeListeners()
protected void fireStateChanged()
protected java.lang.String paramString()
paramString
in class JQComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |