|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.canvas.AbstractSite
diva.canvas.connector.ParametricSite
A site that locates itself in a figure at a location in X and Y that is some percentage of the bounding box of the figure. So as the figure grows, the site relocates itself proportionally.
| Constructor Summary | |
ParametricSite(Figure figure,
int id,
double xt,
double yt)
Create a new site on the given figure with the given id, located at (xt, yt) percentage of the given figure's bounding box, with (0,0) being the upper left-hand corner and (1,1) being the lower right. |
|
| Method Summary | |
Figure |
getFigure()
Get the figure to which this site is attached. |
int |
getID()
Get the ID of this site. |
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, 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 ParametricSite(Figure figure,
int id,
double xt,
double yt)
| Method Detail |
public Figure getFigure()
getFigure in interface SitegetFigure in class AbstractSitepublic int getID()
getID in interface SitegetID 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 | |||||||||