|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.AbstractSite
diva.canvas.interactor.PathGeometry.Vertex
diva.canvas.interactor.PathGeometry.CloseSegment
public class PathGeometry.CloseSegment
CloseSegment is a special type of Vertex, that closes a sub-path. CloseSegments will be returned in the iterators over vertices, but clients must be aware of this, and not (for example) create grab-handles on them. The coordinates returned by a CloseSegment will be the coordinates of the first vertex in that subpath, but generally this should not be used as it is inefficient.
Field Summary |
---|
Fields inherited from class diva.canvas.AbstractSite |
---|
_hasNormal, _normal |
Constructor Summary | |
---|---|
PathGeometry.CloseSegment(int id)
Create a new close segment with the given ID |
Method Summary | |
---|---|
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 |
void |
translate(double x,
double y)
Translate the site by the indicated distance. |
Methods inherited from class diva.canvas.interactor.PathGeometry.Vertex |
---|
getControlPoint, getFigure, getID, toString |
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 |
Constructor Detail |
---|
PathGeometry.CloseSegment(int id)
Method Detail |
---|
public double getX()
getX
in interface Site
getX
in class PathGeometry.Vertex
public double getY()
getY
in interface Site
getY
in class PathGeometry.Vertex
public void setPoint(java.awt.geom.Point2D point)
setPoint
in class PathGeometry.Vertex
public void translate(double x, double y)
translate
in interface Site
translate
in class PathGeometry.Vertex
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |