fr.esrf.tangoatk.widget.util.jdraw
Class JDSpline
java.lang.Object
fr.esrf.tangoatk.widget.util.jdraw.JDObject
fr.esrf.tangoatk.widget.util.jdraw.JDPolyline
fr.esrf.tangoatk.widget.util.jdraw.JDSpline
- All Implemented Interfaces:
- JDRotatable
public class JDSpline
- extends JDPolyline
JDraw Spline graphic object.
Here is an example of few JDSpline:
| 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 |
JDSpline(java.lang.String objectName,
java.awt.Point[] p)
Contruct a splie |
|
Method Summary |
void |
connect(JDPolyline pline)
Connects this spline to an other spline. |
JDPolyline |
convertToPolyline()
Convert this object to a JDPolyline |
JDObject |
copy(int x,
int y)
Returns a copy of this object at the specified location. |
void |
moveSummit(int id,
double x,
double y)
Moves the specifed summit to the specified position. |
void |
setStep(int s)
Sets the polyline interpolation step. |
| 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, rotate90, 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 |
JDSpline
public JDSpline(java.lang.String objectName,
java.awt.Point[] p)
- Contruct a splie
- Parameters:
objectName - spline namep - Array of control points
copy
public JDObject copy(int x,
int y)
- Description copied from class:
JDObject
- Returns a copy of this object at the specified location.
- Overrides:
copy in class JDPolyline
- Parameters:
x - Horizontal position of the copied object (pixel)y - Vertical Position of the copied object (pixel)
- Returns:
- The copy of this object.
setStep
public void setStep(int s)
- Description copied from class:
JDPolyline
- Sets the polyline interpolation step.
- Overrides:
setStep in class JDPolyline
- Parameters:
s - Interpolation step (must be >=1).
convertToPolyline
public JDPolyline convertToPolyline()
- Convert this object to a JDPolyline
moveSummit
public void moveSummit(int id,
double x,
double y)
- Description copied from class:
JDObject
- Moves the specifed summit to the specified position. When using
moveSummit() to animate objects, A call to refresh() of this
object may be needed.
- Overrides:
moveSummit in class JDPolyline
- Parameters:
id - Summit indexx - Absolute X positiony - Absolute Y position- See Also:
JDObject.refresh()
connect
public void connect(JDPolyline pline)
- Connects this spline to an other spline. Points
are added to the end of this spline. if pline
if not a JDSpline, nothing happens.
- Overrides:
connect in class JDPolyline
- Parameters:
pline - Polyline to be concatened.