|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanalyzer.GraphPoint
In the graph a GraphPoint is the graphical representation of a Requirement.
Field Summary | |
private java.awt.Color |
color
|
private boolean |
hiddenText
|
private boolean |
highlighted
|
private int |
release
|
private Requirement |
requirement
|
private int |
x
|
private int |
y
|
Constructor Summary | |
GraphPoint(Requirement requirement)
Constructs a GraphPoint for the passed Requirement. |
Method Summary | |
private void |
circle(int cx,
int cy,
int radius,
java.awt.Graphics g)
Each GraphPoint is represented by one or more circles, this method draws those circles. |
void |
draw(java.awt.Graphics g)
Draws the GraphPoint and Requirement text. |
Requirement |
getRequirement()
Returns the Requirement for this GraphPoint. |
int |
getX()
Returns the x coordinate of the GraphPoint. |
int |
getY()
Returns the y coordinate of the GraphPoint. |
void |
hideText(boolean hiddenText)
Sets whether or not the requirement text sould be hidden in the GraphWindow. |
void |
highlight()
Highlights the GraphPoint |
void |
invertPoint(int canvasWidth,
int canvasHeight)
Inverts a point in the graph by switching the x-axis with the y-axis. |
boolean |
isHighLighted()
Checks whether or not the GraphPoint is highlighted. |
boolean |
selectedBy(int xPos,
int yPos)
Returns true if (xPos, yPos) is within the GraphPoint's outer circle. |
void |
setRelease(int release)
Sets internal release number. |
void |
setX(int x)
Sets the x coordinate for the GraphPoint. |
void |
setY(int y)
Sets the y coordinate for the GraphPoint. |
void |
unhighlight()
Unhighlights the GraphPoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Requirement requirement
private int x
private int y
private boolean highlighted
private java.awt.Color color
private int release
private boolean hiddenText
Constructor Detail |
public GraphPoint(Requirement requirement)
requirement
- the requirement for which the GraphPoint will be
createdMethod Detail |
public int getX()
public void setX(int x)
x
- the x coordinatepublic int getY()
public void setY(int y)
y
- the y coordinatepublic void setRelease(int release)
release
- the internal release numberpublic void hideText(boolean hiddenText)
hiddenText
- set to true to hide the textpublic Requirement getRequirement()
public void draw(java.awt.Graphics g)
g
- the Graphics to draw uponprivate void circle(int cx, int cy, int radius, java.awt.Graphics g)
cx
- the circle's x coordinatecy
- the circle's y coordinateradius
- the circle's radiusg
- the Graphics to draw uponpublic boolean selectedBy(int xPos, int yPos)
xPos
- x coordinateyPos
- y coordinate
public void highlight()
public void unhighlight()
public boolean isHighLighted()
public void invertPoint(int canvasWidth, int canvasHeight)
canvasWidth
- the width of the drawing areacanvasHeight
- the height of the drawing area
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |