|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdiva.canvas.AbstractSite
diva.canvas.interactor.CircleGeometry.CircleSite
public class CircleGeometry.CircleSite
CircleSite is the local class that implements an editable site of Rectangle objects.
| Field Summary | |
|---|---|
private int |
_id
|
private double |
_normal
|
private double |
_offX
|
private double |
_offY
|
| Fields inherited from class diva.canvas.AbstractSite |
|---|
_hasNormal |
| Constructor Summary | |
|---|---|
CircleGeometry.CircleSite(int id)
Create a new site with the given ID |
|
| Method Summary | |
|---|---|
private double |
getAngle(int direction)
|
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. |
java.awt.geom.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(java.awt.geom.Point2D point)
Set the point location of the site |
void |
translate(double dx,
double dy)
Translate the site by the indicated distance, where distances are in the local coordinates of the containing pane. |
| Methods inherited from class diva.canvas.AbstractSite |
|---|
getPoint, getPoint, getPoint, getTransformContext, setNormal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int _id
private double _normal
private double _offX
private double _offY
| Constructor Detail |
|---|
CircleGeometry.CircleSite(int id)
| Method Detail |
|---|
public 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 java.awt.geom.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 AbstractSiteprivate final double getAngle(int direction)
public boolean isNormal(int direction)
isNormal in interface SiteisNormal in class AbstractSite
public void translate(double dx,
double dy)
translate in interface Sitetranslate in class AbstractSitepublic void setPoint(java.awt.geom.Point2D point)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||