|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.canvas.AbstractSite
diva.canvas.connector.PerimeterSite
A site that locates itself on the perimeter of a figure. It implements the setNormal() method to change its position so that a line drawn through the site at the given normal will appear to originate from the center of the figure. Currently, perimeter sites are able to locate themselves on the perimeter of ellipses, rectangles, and arbitrary polygons. For any other shape, the site locates itself on the perimeter of the bounding box for the shape.
| Constructor Summary | |
PerimeterSite(Figure figure,
int id)
Create a new site on the given figure with the given ID. |
|
| Method Summary | |
Figure |
getFigure()
Get the figure to which this site is attached. |
int |
getID()
Get the ID of this site. |
java.awt.geom.Point2D |
getPoint(double normal)
Get the point location of the site, in the enclosing transform context. |
double |
getX()
Get the x-coordinate of the site. |
double |
getY()
Get the y-coordinate of the site. |
| Methods inherited from class diva.canvas.AbstractSite |
getNormal, getPoint, getPoint, getPoint, getTransformContext, hasNormal, isNormal, setNormal, translate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PerimeterSite(Figure figure,
int id)
| Method Detail |
public Figure getFigure()
getFigure in interface SitegetFigure in class AbstractSitepublic int getID()
getID in interface SitegetID in class AbstractSitepublic java.awt.geom.Point2D getPoint(double normal)
getPoint in interface SitegetPoint in class AbstractSitepublic double getX()
getX in interface SitegetX in class AbstractSitepublic double getY()
getY in interface SitegetY in class AbstractSite
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||