Visual
Class Histogram

java.lang.Object
  extended by Visual.Histogram

abstract class Histogram
extends java.lang.Object


Field Summary
(package private)  Curve curve
          The Curve used for the current GradeBook.
(package private)  java.util.Collection<Grade> grades
          Collection of grades that make up the Histogram.
(package private)  boolean isSpecific
          Boolean value whether or not speicific Histogram is displayer (ie.
(package private)  java.util.Collection<HistoSegment> segments
          The HistoSegments that make up the histogram.
 
Constructor Summary
Histogram()
           
 
Method Summary
(package private) abstract  void createHistogram()
          createHistogram creates the Histogram with the proper cutoff and the proper values for each bar in the histogram.
(package private) abstract  void moveCutoff(HistoSegment seg, int newVal)
          moveCutoff moves a cutoff when the user drags the bar representing the cutoff.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isSpecific

boolean isSpecific
Boolean value whether or not speicific Histogram is displayer (ie. whether or not all grades are shown or just one (A, A-, A+)).


curve

Curve curve
The Curve used for the current GradeBook.


segments

java.util.Collection<HistoSegment> segments
The HistoSegments that make up the histogram.


grades

java.util.Collection<Grade> grades
Collection of grades that make up the Histogram.

Constructor Detail

Histogram

Histogram()
Method Detail

createHistogram

abstract void createHistogram()
createHistogram creates the Histogram with the proper cutoff and the proper values for each bar in the histogram. /* ensures // // Column height equals number of grades in the range // (\forall HistoSegment seg : segments; (\forall HistoRow row : seg.rows; row.num == \sum( 1 ; grades.grade <= row.maxVal && grades.grade > row.minVal ) ); );


moveCutoff

abstract void moveCutoff(HistoSegment seg,
                         int newVal)
moveCutoff moves a cutoff when the user drags the bar representing the cutoff. /* ensures // // Cutoff is moved to it's proper value // (seg.cutoff == newVal) && // // Any cutoffs smaller than the current cutoff stay smaller than it // (\forall HistoSegment otherSeg ; otherSeg.cutoff < \old(seg.cutoff) ; otherSeg.cutoff <= seg.cutoff ) && // // Any cutoffs larger than the current cutoff stay larger than it // (\forall HistoSegment otherSeg ; otherSeg.cutoff > \old(seg.cutoff) ; (otherSeg.cutoff >= seg.cutoff) );