Class JDSlider
java.lang.Object
fr.esrf.tangoatk.widget.util.jdraw.JDObject
fr.esrf.tangoatk.widget.util.jdraw.JDRectangular
fr.esrf.tangoatk.widget.util.jdraw.JDSlider
JDraw Slider graphic object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHorizontal bar , min at feftstatic final intHorizontal bar , min at rightstatic final intVertical bar , min at bottomstatic final intVertical bar , min at topFields inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDObject
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy(int x, int y) Returns a copy of this object at the specified location.doubledoubleintdoublebooleanisInsideObject(int x, int y) voidpaint(JDrawEditor parent, Graphics g) Paints this object.voidSets the cursor object.voidsetMaximum(double m) Sets the slider's maximum value .voidsetMinimum(double m) Sets the slider's minimum value .voidsetOrientation(int o) Sets the bar orientation.voidsetSliderValue(double v) Sets the slider value.Methods inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDRectangular
getBottom, getHeight, getLeft, getRight, getTop, getWidth, moveSummit, rotate90, setBottom, setHeight, setLeft, setRight, setTop, setWidthMethods inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDObject
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
-
Field Details
-
SLIDER_HORIZONTAL_LEFT
public static final int SLIDER_HORIZONTAL_LEFTHorizontal bar , min at feft- See Also:
-
SLIDER_HORIZONTAL_RIGHT
public static final int SLIDER_HORIZONTAL_RIGHTHorizontal bar , min at right- See Also:
-
SLIDER_VERTICAL_TOP
public static final int SLIDER_VERTICAL_TOPVertical bar , min at top- See Also:
-
SLIDER_VERTICAL_BOTTOM
public static final int SLIDER_VERTICAL_BOTTOMVertical bar , min at bottom- See Also:
-
-
Constructor Details
-
JDSlider
Contructs a JDSlider.- Parameters:
objectName- Object namex- Up left corner x coordinatey- Up left corner y coordinatew- Rectangle widthh- Rectangle height
-
-
Method Details
-
copy
Description copied from class:JDObjectReturns a copy of this object at the specified location. -
isInsideObject
public boolean isInsideObject(int x, int y) - Overrides:
isInsideObjectin classJDObject- Parameters:
x- X coordinate (pixel)y- Y coordinate (pixel)- Returns:
- whether the specified point is inside this object.
-
paint
Description copied from class:JDObjectPaints this object.- Overrides:
paintin classJDRectangular- Parameters:
parent- JdrawEditor parent (Can be null except for JDSwingObject)g- the specified Graphics window
-
setMaximum
public void setMaximum(double m) Sets the slider's maximum value . It is used to handle the bar position calculation.- Parameters:
m- Maximum value
-
getMaximum
public double getMaximum()- Returns:
- the slider's maximum value.
- See Also:
-
setMinimum
public void setMinimum(double m) Sets the slider's minimum value . It is used to handle the slider position calculation.- Parameters:
m- Miniimum value
-
getMinimum
public double getMinimum()- Returns:
- the slider's maximum value.
- See Also:
-
setSliderValue
public void setSliderValue(double v) Sets the slider value.- Parameters:
v- slider value.
-
getSliderValue
public double getSliderValue()- Returns:
- the current slider value.
-
setOrientation
public void setOrientation(int o) Sets the bar orientation.- Parameters:
o- Orientation value- See Also:
-
getOrientation
public int getOrientation()- Returns:
- the current bar orientation.
- See Also:
-
getCursor
- Returns:
- the current cursor object.
- See Also:
-
setCursor
Sets the cursor object.- Parameters:
nCursor- Cursor object
-