fr.esrf.tangoatk.widget.util.jdraw
Class JDRoundRectangle

java.lang.Object
  extended by fr.esrf.tangoatk.widget.util.jdraw.JDObject
      extended by fr.esrf.tangoatk.widget.util.jdraw.JDRectangular
          extended by fr.esrf.tangoatk.widget.util.jdraw.JDRoundRectangle

public class JDRoundRectangle
extends JDRectangular

JDraw Rectangle graphic object.

Here is an example of few JDRoundRectangle:

JDRoundRectangle examples


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
JDRoundRectangle(java.lang.String objectName, int x, int y, int w, int h)
          Contructs a JDRoundRectangle.
 
Method Summary
 JDPolyline convertToPolyline()
          Convert this object to a JDPolyline
 JDObject copy(int x, int y)
          Returns a copy of this object at the specified location.
 int getCornerWidth()
          Returns the rouded corner width.
 int getStep()
          Returns the interpolation of rounded corner.
 boolean isInsideObject(int x, int y)
          Determines whether the specified point is inside this object.
 void setCornerWidth(int w)
          Sets the rounded corner width.
 void setStep(int s)
          Sets the interpolation step of the rounded corner.
 
Methods inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDRectangular
moveSummit, paint, rotate90
 
Methods 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, isFixedExtendedParam, isInteractive, isProgrammed, isVisible, moveSummitH, moveSummitV, preRefresh, refresh, removeExtension, removeMouseListener, removeValueListener, restoreTransform, saveTransform, scale, scaleTranslate, setAntiAlias, setBackground, setBackgroundMapper, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDRoundRectangle

public JDRoundRectangle(java.lang.String objectName,
                        int x,
                        int y,
                        int w,
                        int h)
Contructs a JDRoundRectangle.

Parameters:
objectName - Object name
x - Up left corner x coordinate
y - Up left corner y coordinate
w - Rectangle width
h - Rectangle height
Method Detail

copy

public JDObject copy(int x,
                     int y)
Description copied from class: JDObject
Returns a copy of this object at the specified location.

Specified by:
copy in class JDObject
Parameters:
x - Horizontal position of the copied object (pixel)
y - Vertical Position of the copied object (pixel)
Returns:
The copy of this object.

isInsideObject

public boolean isInsideObject(int x,
                              int y)
Description copied from class: JDObject
Determines whether the specified point is inside this object.

Overrides:
isInsideObject in class JDObject
Parameters:
x - X coordinate (pixel)
y - Y coordinate (pixel)

convertToPolyline

public JDPolyline convertToPolyline()
Convert this object to a JDPolyline


getStep

public int getStep()
Returns the interpolation of rounded corner.

See Also:
setStep(int)

setStep

public void setStep(int s)
Sets the interpolation step of the rounded corner.

Parameters:
s - Interpolation step

getCornerWidth

public int getCornerWidth()
Returns the rouded corner width.

See Also:
setCornerWidth(int)

setCornerWidth

public void setCornerWidth(int w)
Sets the rounded corner width.

Parameters:
w - Corner width