Class JDBar
java.lang.Object
fr.esrf.tangoatk.widget.util.jdraw.JDObject
fr.esrf.tangoatk.widget.util.jdraw.JDRectangular
fr.esrf.tangoatk.widget.util.jdraw.JDBar
JDraw Bar 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.doubledoubledoubleintbooleanisInsideObject(int x, int y) booleanvoidpaint(JDrawEditor parent, Graphics g) Paints this object.voidsetBarValue(double v) Sets the bar value.voidsetMaximum(double m) Sets the progress bar's maximum value .voidsetMinimum(double m) Sets the progress bar's minimum value .voidsetOrientation(int o) Sets the bar orientation.voidsetOutLineVisible(boolean visible) Displays or hides the outline of the bar.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
-
BAR_HORIZONTAL_LEFT
public static final int BAR_HORIZONTAL_LEFTHorizontal bar , min at feft- See Also:
-
BAR_HORIZONTAL_RIGHT
public static final int BAR_HORIZONTAL_RIGHTHorizontal bar , min at right- See Also:
-
BAR_VERTICAL_TOP
public static final int BAR_VERTICAL_TOPVertical bar , min at top- See Also:
-
BAR_VERTICAL_BOTTOM
public static final int BAR_VERTICAL_BOTTOMVertical bar , min at bottom- See Also:
-
-
Constructor Details
-
JDBar
Contructs a JDBar.- 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 progress bar's maximum value . It is used to handle the bar position calculation.- Parameters:
m- Maximum value
-
getMaximum
public double getMaximum()- Returns:
- the progress bar's maximum value.
- See Also:
-
setMinimum
public void setMinimum(double m) Sets the progress bar's minimum value . It is used to handle the bar position calculation.- Parameters:
m- Miniimum value
-
getMinimum
public double getMinimum()- Returns:
- the progress bar's maximum value.
- See Also:
-
setBarValue
public void setBarValue(double v) Sets the bar value.- Parameters:
v- Bar value.
-
getBarValue
public double getBarValue()- Returns:
- the current bar value.
-
setOutLineVisible
public void setOutLineVisible(boolean visible) Displays or hides the outline of the bar.- Parameters:
visible- True to display the outline false otherwize.
-
isOutLineVisible
public boolean isOutLineVisible()- Returns:
- whether the outline is visible.
-
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:
-