analyzer
Class PairwiseAnalyzer

java.lang.Object
  extended byanalyzer.Analyzer
      extended byanalyzer.PairwiseAnalyzer

public class PairwiseAnalyzer
extends Analyzer

Defines the analyzer for the Pair-Wise Comparision technique

Author:
Mikael Jönsson & Per Klingnäs

Field Summary
 
Fields inherited from class analyzer.Analyzer
canvasHeight, canvasWidth, maxValue, pointList, relativeSupportLines, rList, selectedPoint
 
Constructor Summary
PairwiseAnalyzer(RequirementList rList, int canvasWidth, int canvasHeight)
          Constructs a Pair-Wise Comparision analyzer
 
Method Summary
 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.
 
Methods inherited from class analyzer.Analyzer
createPoints, getAllPointsAt, getSelectedPointsRequirement, highlightPoint, selectPoint, setCanvasSize, setReleaseNbrs, toggleRelativeSupportLines
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairwiseAnalyzer

public PairwiseAnalyzer(RequirementList rList,
                        int canvasWidth,
                        int canvasHeight)
Constructs a Pair-Wise Comparision analyzer

Parameters:
rList - list of Requirements to be analyzed
canvasWidth - the width of the drawing area
canvasHeight - the height of the drawing area
Method Detail

drawSupportLines

public void drawSupportLines(java.awt.Graphics g,
                             int canvasWidth,
                             int canvasHeight)
Draws support lines in the GraphWindow.

Overrides:
drawSupportLines in class Analyzer
Parameters:
g - the Graphics that will be drawn
canvasWidth - the width of the drawing area
canvasHeight - the height of the drawing area

drawRelativeSupportLines

public void drawRelativeSupportLines(java.awt.Graphics g,
                                     int canvasWidth,
                                     int canvasHeight)
Draws relative support lines in the GraphWindow.

Overrides:
drawRelativeSupportLines in class Analyzer
Parameters:
g - the Graphics that will be drawn
canvasWidth - the width of the drawing area
canvasHeight - the height of the drawing area