public class ParametricSite extends AbstractSite
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ParametricSite(Figure figure, int id, double xt, double yt)
public Figure getFigure()
getFigure
in interface Site
getFigure
in class AbstractSite
public int getID()
getID
in interface Site
getID
in class AbstractSite
public double getX()
getX
in interface Site
getX
in class AbstractSite
public double getY()
getY
in interface Site
getY
in class AbstractSite
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.