|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.AbstractSite
diva.canvas.connector.BoundsSite
public class BoundsSite
A site that locates itself on the bounds of a figure's shape. It has two fields that govern its position on the bounds.
Field Summary | |
---|---|
private int |
_id
The id |
private double |
_offset
The distance to be located along that side, in percent |
private Figure |
_parentFigure
The parent figure |
private int |
_side
The side to be located on: NORTH, SOUTH, EAST, WEST |
Fields inherited from class diva.canvas.AbstractSite |
---|
_hasNormal, _normal |
Constructor Summary | |
---|---|
BoundsSite(Figure figure,
int id,
int side,
double offset)
Create a new site on the given figure with the given ID and at the location given by the side and the offset. |
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 of the site. |
double |
getOffset()
Get the distance to be located along the side, in percent. |
int |
getSide()
Get the side to be located on: NORTH, SOUTH, EAST, WEST. |
double |
getX()
Get the x-coordinate of the site. |
double |
getY()
Get the y-coordinate of the site. |
java.lang.String |
toString()
|
Methods inherited from class diva.canvas.AbstractSite |
---|
getPoint, getPoint, getPoint, getPoint, getTransformContext, hasNormal, isNormal, setNormal, translate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int _id
private int _side
private double _offset
private Figure _parentFigure
Constructor Detail |
---|
public BoundsSite(Figure figure, int id, int side, double offset)
Method Detail |
---|
public Figure getFigure()
getFigure
in interface Site
getFigure
in class AbstractSite
public int getID()
getID
in interface Site
getID
in class AbstractSite
public double getNormal()
getNormal
in interface Site
getNormal
in class AbstractSite
public double getOffset()
public int getSide()
public double getX()
getX
in interface Site
getX
in class AbstractSite
public double getY()
getY
in interface Site
getY
in class AbstractSite
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |