|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanalyzer.Analyzer
Defines an analyzer for any technique. Each analyzer should extend this class and overide methods as needed.
Field Summary | |
protected int |
canvasHeight
|
protected int |
canvasWidth
|
protected double |
maxValue
|
protected java.util.LinkedList |
pointList
|
protected boolean |
relativeSupportLines
|
protected RequirementList |
rList
|
protected GraphPoint |
selectedPoint
|
Constructor Summary | |
Analyzer(RequirementList rList,
int canvasWidth,
int canvasHeight)
Constructs an analyzer |
Method Summary | |
java.util.LinkedList |
createPoints()
Creates and assigns the positions of all the requirements to be drawn in the GraphWindow. |
void |
drawRelativeSupportLines(java.awt.Graphics g,
int canvasWidth,
int canvasHeight)
Draws relative support lines in the GraphWindow. |
void |
drawSupportLines(java.awt.Graphics g,
int canvasWidth,
int canvasHeight)
Draws support lines in the GraphWindow. |
java.util.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 r)
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. |
private void |
setMaxValue()
Calculates the highest values among the requirements |
protected void |
setReleaseNbrs()
Examines how many different releases that are included and assigns each release an index. |
void |
toggleRelativeSupportLines()
Changes the viewing style, i.e. whether squared boxes should be drawn or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int canvasWidth
protected int canvasHeight
protected double maxValue
protected java.util.LinkedList pointList
protected RequirementList rList
protected GraphPoint selectedPoint
protected boolean relativeSupportLines
Constructor Detail |
public Analyzer(RequirementList rList, int canvasWidth, int canvasHeight)
rList
- list of Requirements to be analyzedcanvasWidth
- the width of the drawing areacanvasHeight
- the height of the drawing areaMethod Detail |
private void setMaxValue()
public java.util.LinkedList createPoints()
protected void setReleaseNbrs()
public void highlightPoint(Requirement r)
r
- the requirement to be highlightedpublic Requirement selectPoint(int x, int y)
x
- the x coordinatey
- the y coordinate
public Requirement getSelectedPointsRequirement()
public java.util.LinkedList getAllPointsAt(int x, int y)
x
- the x coordinatey
- the y coordinate
public void toggleRelativeSupportLines()
public void drawSupportLines(java.awt.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 drawRelativeSupportLines(java.awt.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 |