public class JDSlider extends JDRectangular
Modifier and Type | Field and Description |
---|---|
static int |
SLIDER_HORIZONTAL_LEFT
Horizontal bar , min at feft
|
static int |
SLIDER_HORIZONTAL_RIGHT
Horizontal bar , min at right
|
static int |
SLIDER_VERTICAL_BOTTOM
Vertical bar , min at bottom
|
static int |
SLIDER_VERTICAL_TOP
Vertical bar , min at top
|
FILL_STYLE_DOT_PATTERN_1, FILL_STYLE_DOT_PATTERN_2, FILL_STYLE_DOT_PATTERN_3, FILL_STYLE_GRADIENT, FILL_STYLE_LARGE_CROSS_HATCH, FILL_STYLE_LARGE_LEFT_HATCH, FILL_STYLE_LARGE_RIGHT_HATCH, FILL_STYLE_NONE, FILL_STYLE_SMALL_CROSS_HATCH, FILL_STYLE_SMALL_LEFT_HATCH, FILL_STYLE_SMALL_RIGHT_HATCH, FILL_STYLE_SOLID, LINE_STYLE_DASH, LINE_STYLE_DASH_DOT, LINE_STYLE_DOT, LINE_STYLE_LONG_DASH, LINE_STYLE_SOLID, VALUE_CHANGE_ON_XDRAG_LEFT, VALUE_CHANGE_ON_XDRAG_RIGHT, VALUE_CHANGE_ON_YDRAG_BOTTOM, VALUE_CHANGE_ON_YDRAG_TOP, VALUE_INC_ON_CLICK, VALUE_INC_ON_PRESSRELEASE
Constructor and Description |
---|
JDSlider(java.lang.String objectName,
int x,
int y,
int w,
int h)
Contructs a JDSlider.
|
Modifier and Type | Method and Description |
---|---|
JDObject |
copy(int x,
int y)
Returns a copy of this object at the specified location.
|
JDObject |
getCursor()
Returns the current cursor object.
|
double |
getMaximum()
Returns the slider's maximum value.
|
double |
getMinimum()
Returns the slider's maximum value.
|
int |
getOrientation()
Returns the current bar orientation.
|
double |
getSliderValue()
Returns the current slider value.
|
boolean |
isInsideObject(int x,
int y)
Determines whether the specified point is inside this object.
|
void |
paint(JDrawEditor parent,
java.awt.Graphics g)
Paints this object.
|
void |
setCursor(JDObject nCursor)
Sets the cursor object.
|
void |
setMaximum(double m)
Sets the slider's maximum value .
|
void |
setMinimum(double m)
Sets the slider's minimum value .
|
void |
setOrientation(int o)
Sets the bar orientation.
|
void |
setSliderValue(double v)
Sets the slider value.
|
moveSummit, rotate90
addExtension, addMouseListener, addValueListener, centerOrigin, clearMouseListener, clearValueListener, getBackground, getBackgroundMapper, getBoundRect, getExtendedParam, getExtendedParam, getExtendedParamDesc, getExtendedParamIndex, getExtendedParamName, getExtendedParamNumber, getFillStyle, getForeground, getForegroundMapper, getHTranslationMapper, getInitValue, getInvertShadowMapper, getLineStyle, getLineWidth, getMaxValue, getMinValue, getName, getObjectsByName, getOrigin, getShadowWidth, getSummit, getSummitNumber, getValue, getValueChangeMode, getVisibilityMapper, getVTranslationMapper, hasBackgroundMapper, hasExtendedParam, hasForegroundMapper, hasHTranslationMapper, hasInverseShadow, hasInvertShadowMapper, hasShadow, hasVisibilityMapper, hasVTranslationMapper, isAntiAliased, isDisabled, isFixedExtendedParam, isInteractive, isProgrammed, isVisible, moveSummitH, moveSummitV, preRefresh, refresh, removeExtension, removeMouseListener, removeValueListener, restoreTransform, saveTransform, scale, scaleTranslate, setAntiAlias, setBackground, setBackgroundMapper, setDisabled, setExtendedParam, setExtendedParam, setExtensionList, setFillStyle, setForeground, setForegroundMapper, setGradientFillParam, setHTranslationMapper, setInitValue, setInteractive, setInverseShadow, setInvertShadowMapper, setLineStyle, setLineWidth, setMaxValue, setMinValue, setName, setOrigin, setShadow, setShadowWidth, setValue, setValueChangeMode, setVisibilityMapper, setVisible, setVTranslationMapper, toString, translate
public static final int SLIDER_HORIZONTAL_LEFT
public static final int SLIDER_HORIZONTAL_RIGHT
public static final int SLIDER_VERTICAL_TOP
public static final int SLIDER_VERTICAL_BOTTOM
public JDSlider(java.lang.String objectName, int x, int y, int w, int h)
objectName
- Object namex
- Up left corner x coordinatey
- Up left corner y coordinatew
- Rectangle widthh
- Rectangle heightpublic JDObject copy(int x, int y)
JDObject
public boolean isInsideObject(int x, int y)
JDObject
isInsideObject
in class JDObject
x
- X coordinate (pixel)y
- Y coordinate (pixel)public void paint(JDrawEditor parent, java.awt.Graphics g)
JDObject
paint
in class JDRectangular
parent
- JdrawEditor parent (Can be null except for JDSwingObject)g
- the specified Graphics windowpublic void setMaximum(double m)
m
- Maximum valuepublic double getMaximum()
setMaximum(double)
public void setMinimum(double m)
m
- Miniimum valuepublic double getMinimum()
setMinimum(double)
public void setSliderValue(double v)
v
- slider value.public double getSliderValue()
public void setOrientation(int o)
o
- Orientation valueSLIDER_HORIZONTAL_LEFT
,
SLIDER_HORIZONTAL_RIGHT
,
SLIDER_VERTICAL_TOP
,
SLIDER_VERTICAL_BOTTOM
public int getOrientation()
setOrientation(int)
public JDObject getCursor()
public void setCursor(JDObject nCursor)
nCursor
- Cursor object