public class BoundsGeometry.BoundsSite extends AbstractSite
| Modifier and Type | Method and Description |
|---|---|
Figure |
getFigure()
Get the figure to which this site is attached, or null
if it is not attached to a figure.
|
int |
getID()
Get the ID of this site.
|
double |
getNormal()
Get the angle of the normal to this site, in radians
between zero and 2pi.
|
Point2D |
getPoint()
Get the point location of the site.
|
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.
|
boolean |
hasNormal()
Test if this site has a "normal" to it.
|
boolean |
isNormal(int direction)
Test if this site has a normal in the given direction.
|
void |
setPoint(Point2D point)
Set the point location of the site
|
void |
translate(double x,
double y)
Translate the site by the indicated distance,
where distances are in the local coordinates of the
containing pane.
|
getPoint, getPoint, getPoint, getTransformContext, setNormalpublic int getID()
getID in interface SitegetID in class AbstractSitepublic Figure getFigure()
getFigure in interface SitegetFigure in class AbstractSitepublic double getNormal()
getNormal in interface SitegetNormal in class AbstractSitepublic Point2D getPoint()
getPoint in interface SitegetPoint in class AbstractSitepublic double getX()
getX in interface SitegetX in class AbstractSitepublic double getY()
getY in interface SitegetY in class AbstractSitepublic boolean hasNormal()
hasNormal in interface SitehasNormal in class AbstractSitepublic boolean isNormal(int direction)
isNormal in interface SiteisNormal in class AbstractSitepublic void translate(double x,
double y)
translate in interface Sitetranslate in class AbstractSitepublic void setPoint(Point2D point)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.