|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.geom.Rectangle2D.Double
discovery.view.EndPointView
public class EndPointView
This class represents the view of an End Point. It implements the ComponentView interface, and the Shape interface. It extends the Rectangle2D class. This class doesn't actually deal with the drawing of an End Point shape, but it does store the bounds of the End Point.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D |
---|
java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float |
Field Summary |
---|
Fields inherited from class java.awt.geom.Rectangle2D.Double |
---|
height, width |
Fields inherited from class java.awt.geom.Rectangle2D |
---|
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP |
Constructor Summary | |
---|---|
EndPointView()
The empty constructor, creates an EndPointView object with no label. |
|
EndPointView(double xc,
double yc,
double wid,
double hei)
A constructor which specifies the bounds of the end point |
Method Summary | |
---|---|
int |
getID()
Accessor to get the end point's ID. |
java.lang.String |
getLabel()
Accessor to get the end point's label. |
java.lang.String |
getType()
Accessor method to get the end point's type. |
void |
setLabel(java.lang.String n)
Must have this method according to the ComponentView interface, but end points are not labelled, so label is always null. |
Methods inherited from class java.awt.geom.Rectangle2D.Double |
---|
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect, toString |
Methods inherited from class java.awt.geom.Rectangle2D |
---|
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union |
Methods inherited from class java.awt.geom.RectangularShape |
---|
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.Shape |
---|
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects |
Constructor Detail |
---|
public EndPointView()
public EndPointView(double xc, double yc, double wid, double hei)
xc
- the bounding box's x-coordinateyc
- the bounding box's y-coordinatewid
- the bounding box's widthhei
- the bounding box's heightMethod Detail |
---|
public int getID()
getID
in interface ComponentView
public java.lang.String getLabel()
getLabel
in interface ComponentView
public java.lang.String getType()
getType
in interface ComponentView
public void setLabel(java.lang.String n)
setLabel
in interface ComponentView
n
- a string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |