|
|||||||||
| 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.JDRectangular
fr.esrf.tangoatk.widget.util.jdraw.JDEllipse
public class JDEllipse
JDraw Ellipse graphic object.
Here is an example of few JDEllipse:
| Field Summary | |
|---|---|
static int |
ARC_CLOSED
Closed arc |
static int |
ARC_OPEN
Opened arc |
static int |
ARC_PIE
Pie arc |
| Constructor Summary | |
|---|---|
JDEllipse(java.lang.String objectName,
int x,
int y,
int w,
int h)
Construct a JDEllipse. |
|
| 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 |
getAngleExtent()
Returns the arc angle extent. |
int |
getAngleStart()
Returns the starting angle of the arc. |
int |
getArcType()
Returns the current arc type. |
int |
getStep()
Returns the interpolation step. |
boolean |
isInsideObject(int x,
int y)
Determines whether the specified point is inside this object. |
void |
paint(JDrawEditor parent,
java.awt.Graphics g)
Paints this object. |
void |
restoreTransform()
Restore original shape previously backuped by saveTransform |
void |
rotate90(double x,
double y)
Rotate the object by 90deg. |
void |
saveTransform()
Backup the shape. |
void |
setAngleExtent(int a)
Sets the arc angle extent. |
void |
setAngleStart(int a)
Sets the starting angle of the arc. |
void |
setArcType(int type)
Sets the arc type for this ellipse. |
void |
setStep(int s)
Sets the interpolation step of this ellispe. |
| Methods inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDRectangular |
|---|
moveSummit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ARC_OPEN
public static final int ARC_CLOSED
public static final int ARC_PIE
| Constructor Detail |
|---|
public JDEllipse(java.lang.String objectName,
int x,
int y,
int w,
int h)
objectName - x - Up left corner x coordinatey - Up left corner y coordinatew - Ellipse widthh - Ellipse height| 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 boolean isInsideObject(int x,
int y)
JDObject
isInsideObject in class JDObjectx - X coordinate (pixel)y - Y coordinate (pixel)public JDPolyline convertToPolyline()
public void rotate90(double x,
double y)
JDObject
rotate90 in class JDRectangularx - Rotation center horizontal posy - Rotation center vertical posJDObject.refresh()public void restoreTransform()
JDObject
restoreTransform in class JDObjectJDObject.saveTransform()public void saveTransform()
JDObject
saveTransform in class JDObjectJDObject.restoreTransform()public void setStep(int s)
s - Interpolation step (Default is 10)public int getStep()
setStep(int)public void setArcType(int type)
type - Arc typeARC_OPEN,
ARC_CLOSED,
ARC_PIEpublic int getArcType()
setArcType(int)public void setAngleStart(int a)
a - Angle in degrees.public int getAngleStart()
setAngleStart(int)public void setAngleExtent(int a)
a - Angle extent in degrees.public int getAngleExtent()
setAngleExtent(int)
public void paint(JDrawEditor parent,
java.awt.Graphics g)
JDObject
paint in class JDRectangularparent - JdrawEditor parent (Can be null except for JDSwingObject)g - the specified Graphics window
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||