|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdiva.canvas.AbstractSite
diva.canvas.connector.StraightTerminal.ConnectSite
private class StraightTerminal.ConnectSite
The site at which a connector can connect to a straight terminal. Each StraightTerminal has exactly one ConnectSite, which has ID 0.
| Field Summary |
|---|
| Fields inherited from class diva.canvas.AbstractSite |
|---|
_hasNormal, _normal |
| Constructor Summary | |
|---|---|
private |
StraightTerminal.ConnectSite()
|
| 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 normal to this site, in radians between zero and 2pi. |
double |
getX()
Get the x-coordinate of the site. |
double |
getY()
Get the y-coordinate of the site. |
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 |
translate(double x,
double y)
Translate the site by the indicated distance. |
| Methods inherited from class diva.canvas.AbstractSite |
|---|
getPoint, getPoint, getPoint, getPoint, getTransformContext, setNormal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private StraightTerminal.ConnectSite()
| 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 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 AbstractSite
public void translate(double x,
double y)
translate in interface Sitetranslate in class AbstractSite
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||