|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Site
A site represents a point on a figure. Sites are used by manipulators so that they know where to attach grab-handles. Application-specific figures may also provide sites that allows clients to find attachment points and other key points on the figure.
Red |
Method Summary | |
---|---|
Figure |
getFigure()
Get the figure to which this site is attached. |
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. |
java.awt.geom.Point2D |
getPoint()
Get the point location of the site, in the enclosing transform context with default normal. |
java.awt.geom.Point2D |
getPoint(double normal)
Get the point location of the site, in the enclosing transform context with the given normal. |
java.awt.geom.Point2D |
getPoint(TransformContext tc)
Get the point location of the site, in the given transform context with the default normal. |
java.awt.geom.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. |
double |
getX()
Get the x-coordinate of the site, in the enclosing transform context. |
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, where distances are in the local coordinates of the containing pane. |
Method Detail |
---|
Figure getFigure()
int getID()
double getNormal()
java.awt.geom.Point2D getPoint()
java.awt.geom.Point2D getPoint(TransformContext tc)
java.awt.geom.Point2D getPoint(double normal)
java.awt.geom.Point2D getPoint(TransformContext tc, double normal)
TransformContext getTransformContext()
double getX()
double getY()
boolean hasNormal()
boolean isNormal(int direction)
void setNormal(double normal)
void translate(double x, double y)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |