|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the interface for a requirements analyzer.
Method Summary | |
LinkedList |
createPoints()
Creates and assigns the positions of all the requirements to be drawn in the GraphWindow. |
void |
drawSupportLines(Graphics g,
int canvasWidth,
int canvasHeight)
Draws support lines in the GraphWindow. |
LinkedList |
getAllPointsAt(int x,
int y)
Returns a list with all the points at the given position. |
Requirement |
getSelectedPointsRequirement()
Returns the selected point's Requirement. |
void |
highlightPoint(Requirement requirement)
Selects and highlights the point associated with the given Requirement. |
Requirement |
selectPoint(int x,
int y)
Selects, highlights and returns the first Requirement at the given position. |
void |
setCanvasSize(int canvasWidth,
int canvasHeight)
Sets the size of the drawing area. |
Method Detail |
public LinkedList createPoints()
public void highlightPoint(Requirement requirement)
requirement
- the requirement to be highlightedpublic Requirement selectPoint(int x, int y)
x
- the x coordinatey
- the y coordinate
public Requirement getSelectedPointsRequirement()
public LinkedList getAllPointsAt(int x, int y)
x
- the x coordinatey
- the y coordinate
public void drawSupportLines(Graphics g, int canvasWidth, int canvasHeight)
g
- the Graphics that will be drawncanvasWidth
- the width of the drawing areacanvasHeight
- the height of the drawing areapublic void setCanvasSize(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 |