cst.loggingTool.presentationLayer.reports
Class ProgressGraph

java.lang.Object
  extended by cst.loggingTool.presentationLayer.reports.ProgressGraph

public class ProgressGraph
extends java.lang.Object

Draws a bar chart featuring coloured progress bars that represents one or more activity steps the user has selected in the ActivityStepReportsViewer dialog. Each bar is associated with a number that shows the number of subject records which matched the filtering criteria for that step. The chart also includes a legend for matching the bar colours with activity names and an information area that displays filter information, the time stamp and the author of the report.

ProgressGraph delegates drawing tasks to the following helper classes:


 Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software 
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License. 
 

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
ProgressGraph()
           
 
Method Summary
 void addInformationLine(java.lang.String informationLine)
           
 void addProgressGraphItem(ProgressGraphItem progressGraphItem)
           
 void calculateDimensions()
           
 void draw(java.awt.Graphics graphics)
           
 float getHeight()
           
 float getWidth()
           
 void setBackgroundColour(java.awt.Color backgroundColour)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressGraph

public ProgressGraph()
Method Detail

calculateDimensions

public void calculateDimensions()

setBackgroundColour

public void setBackgroundColour(java.awt.Color backgroundColour)

setTitle

public void setTitle(java.lang.String title)

getWidth

public float getWidth()

getHeight

public float getHeight()

addInformationLine

public void addInformationLine(java.lang.String informationLine)

addProgressGraphItem

public void addProgressGraphItem(ProgressGraphItem progressGraphItem)

draw

public void draw(java.awt.Graphics graphics)