|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.canvas.AbstractSite
diva.canvas.interactor.PathGeometry.Vertex
Vertex is the site that represents vertexes of the path. Any object that has a reference to a Vertex is obliged to lose it if the Vertex's id becomes larger than the number of vertexes in the path. (If they don't, then accessing the site may result in a out-of-bounds exception.) Clients must also be aware that the type of the vertex may also change if the shape changes, so they should use the getType() method to get the type of the vertex if necessary.
| Method Summary | |
int |
getControlPoint()
Get the control point of this site. |
Figure |
getFigure()
Get the figure to which this site is attached, or null if it is not attached to a figure. |
int |
getID()
Get the ID of this site. |
double |
getX()
Get the x-coordinate of the site, in the local coordinates of the containing pane. |
double |
getY()
Get the y-coordinate of the site, in the local coordinates of the containing pane. |
void |
setPoint(java.awt.geom.Point2D point)
Set the point location of the site |
java.lang.String |
toString()
Describe this site |
void |
translate(double x,
double y)
Translate the site by the indicated distance. |
| Methods inherited from class diva.canvas.AbstractSite |
getNormal, getPoint, getPoint, getPoint, getPoint, getTransformContext, hasNormal, isNormal, setNormal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public int getID()
getID in interface SitegetID in class AbstractSitepublic int getControlPoint()
public Figure getFigure()
getFigure in interface SitegetFigure in class AbstractSitepublic double getX()
getX in interface SitegetX in class AbstractSitepublic double getY()
getY in interface SitegetY in class AbstractSitepublic void setPoint(java.awt.geom.Point2D point)
public void translate(double x,
double y)
translate in interface Sitetranslate in class AbstractSitepublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||