public abstract class AbstractSite extends Object implements Site
Constructor and Description |
---|
AbstractSite() |
Modifier and Type | Method and Description |
---|---|
abstract Figure |
getFigure()
Get the figure to which this site is attached.
|
abstract 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, in the enclosing
transform context with the default normal.
|
Point2D |
getPoint(double normal)
Get the point location of the site, in the enclosing
transform context with the given normal.
|
Point2D |
getPoint(TransformContext tc)
Get the point location of the site, in the given
transform context with the default normal.
|
Point2D |
getPoint(TransformContext tc,
double normal)
Get the point location of the site, in the given
transform context with the given normal.
|
TransformContext |
getTransformContext()
Get the enclosing transform context of this site.
|
abstract double |
getX()
Get the x-coordinate of the site, in the enclosing
transform context.
|
abstract double |
getY()
Get the y-coordinate of the site, in the enclosing
transform context.
|
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 |
setNormal(double normal)
Set the normal "out" of the site.
|
void |
translate(double x,
double y)
Translate the site by the indicated distance.
|
public abstract Figure getFigure()
public double getNormal()
public Point2D getPoint()
public Point2D getPoint(TransformContext tc)
public Point2D getPoint(double normal)
public Point2D getPoint(TransformContext tc, double normal)
public TransformContext getTransformContext()
getTransformContext
in interface Site
public abstract double getX()
public abstract double getY()
public boolean hasNormal()
public boolean isNormal(int direction)
public void setNormal(double normal)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.