|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.esrf.tangoatk.widget.util.jdraw.JDObject
fr.esrf.tangoatk.widget.util.jdraw.JDPolyline
public class JDPolyline
JDraw Polyline graphic object.
Here is an example of few JDPolyline:
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
JDPolyline(java.lang.String objectName,
java.awt.Point[] p)
Contructs a polyline. |
|
| Method Summary | |
|---|---|
void |
connect(JDPolyline pline)
Connects this polyline to an other polyline. |
JDObject |
copy(int x,
int y)
Returns a copy of this object at the specified location. |
int |
getStep()
Returns the polyline interpolation step. |
void |
invertSummitOrder()
Invert control point order. |
boolean |
isClosed()
Determines whether this polyline is closed. |
boolean |
isInsideObject(int x,
int y)
Determines whether the specified point is inside this object. |
void |
moveSummit(int id,
double x,
double y)
Moves the specifed summit to the specified position. |
void |
paint(JDrawEditor parent,
java.awt.Graphics g)
Paints this object. |
void |
rotate(double angle,
double xCenter,
double yCenter)
Rotates this object. |
void |
setClosed(boolean b)
Close or Open the polyline. |
void |
setStartingPoint(int idx)
Rotate control points to make idx as stating point (index 0). |
void |
setStep(int s)
Sets the polyline interpolation step. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDPolyline(java.lang.String objectName,
java.awt.Point[] p)
objectName - Polyline namep - Array of control point.| Method Detail |
|---|
public JDObject copy(int x,
int y)
JDObject
copy in class JDObjectx - Horizontal position of the copied object (pixel)y - Vertical Position of the copied object (pixel)
public void paint(JDrawEditor parent,
java.awt.Graphics g)
JDObject
paint in class JDObjectparent - JdrawEditor parent (Can be null except for JDSwingObject)g - the specified Graphics window
public void moveSummit(int id,
double x,
double y)
JDObject
moveSummit in class JDObjectid - Summit indexx - Absolute X positiony - Absolute Y positionJDObject.refresh()
public boolean isInsideObject(int x,
int y)
JDObject
isInsideObject in class JDObjectx - X coordinate (pixel)y - Y coordinate (pixel)
public void rotate(double angle,
double xCenter,
double yCenter)
JDRotatable
rotate in interface JDRotatableangle - Angle valuexCenter - Rotation center vertical posyCenter - Rotation center horizontal pospublic boolean isClosed()
setClosed(boolean)public void setClosed(boolean b)
b - True to close, false otherwise.public int getStep()
setStep(int)public void setStep(int s)
s - Interpolation step (must be >=1).public void setStartingPoint(int idx)
idx - Point index to be moved to the starting point.public void connect(JDPolyline pline)
pline - Polyline to be concatened.public void invertSummitOrder()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||