Class JDRectangular
java.lang.Object
fr.esrf.tangoatk.widget.util.jdraw.JDObject
fr.esrf.tangoatk.widget.util.jdraw.JDRectangular
- Direct Known Subclasses:
JDAxis,JDBar,JDEllipse,JDGroup,JDImage,JDLabel,JDRectangle,JDRotatableLabel,JDRoundRectangle,JDSlider,JDSwingObject,JDTitledRect
JDraw Rectanglar graphic object (All object having a rectangular sizing behavior)
-
Field Summary
Fields 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 TypeMethodDescriptionintintintgetLeft()intgetRight()intgetTop()intgetWidth()voidmoveSummit(int id, double x, double y) Moves the specifed summit to the specified position.voidpaint(JDrawEditor parent, Graphics g) Paints this object.voidrotate90(double x, double y) Rotate the object by 90deg.voidsetBottom(int y) voidsetHeight(int h) voidsetLeft(int x) voidsetRight(int x) voidsetTop(int y) voidsetWidth(int w) Methods inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDObject
addExtension, addMouseListener, addValueListener, centerOrigin, clearMouseListener, clearValueListener, copy, 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, isInsideObject, 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
-
Constructor Details
-
JDRectangular
public JDRectangular()
-
-
Method Details
-
paint
Description copied from class:JDObjectPaints this object. -
setLeft
public void setLeft(int x) -
getLeft
public int getLeft() -
setTop
public void setTop(int y) -
getTop
public int getTop() -
setRight
public void setRight(int x) -
getRight
public int getRight() -
setBottom
public void setBottom(int y) -
getBottom
public int getBottom() -
setWidth
public void setWidth(int w) -
getWidth
public int getWidth() -
setHeight
public void setHeight(int h) -
getHeight
public int getHeight() -
moveSummit
public void moveSummit(int id, double x, double y) Description copied from class:JDObjectMoves the specifed summit to the specified position. When using moveSummit() to animate objects, A call to refresh() of this object may be needed.- Specified by:
moveSummitin classJDObject- Parameters:
id- Summit indexx- Absolute X positiony- Absolute Y position- See Also:
-
rotate90
public void rotate90(double x, double y) Description copied from class:JDObjectRotate the object by 90deg. A call to refresh() is needed after transformation.
-