public class BoundsSite extends AbstractSite
| Constructor and Description |
|---|
BoundsSite(Figure figure,
int id,
int side,
double offset)
Create a new site on the given figure with the given ID
and at the location given by the side and the offset.
|
| 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 |
getNormal()
Get the normal of the site.
|
double |
getOffset()
Get the distance to be located along the side, in percent.
|
int |
getSide()
Get the side to be located on: NORTH, SOUTH, EAST, WEST.
|
double |
getX()
Get the x-coordinate of the site.
|
double |
getY()
Get the y-coordinate of the site.
|
String |
toString() |
getPoint, getPoint, getPoint, getPoint, getTransformContext, hasNormal, isNormal, setNormal, translatepublic BoundsSite(Figure figure, int id, int side, double offset)
public Figure getFigure()
getFigure in interface SitegetFigure in class AbstractSitepublic int getID()
getID in interface SitegetID in class AbstractSitepublic double getNormal()
getNormal in interface SitegetNormal in class AbstractSitepublic double getOffset()
public int getSide()
public double getX()
getX in interface SitegetX in class AbstractSitepublic double getY()
getY in interface SitegetY in class AbstractSiteCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.