gov.lanl.Web
Class DateGraphGenerator

java.lang.Object
  |
  +--gov.lanl.Web.DateGraphGenerator
Direct Known Subclasses:
BaselineGraphGenerator, ObservationGraphGenerator, UCLGraphGenerator

public abstract class DateGraphGenerator
extends java.lang.Object

Describes a source that generates counts by date

Version:
$Id: DateGraphGenerator.java,v 1.6 2003/01/08 19:33:49 dwokoun Exp $
Author:
$Author: dwokoun $

Field Summary
static int INTERVAL_DAY
           
static int INTERVAL_MONTH
           
static int INTERVAL_WEEK
           
 
Constructor Summary
DateGraphGenerator()
           
 
Method Summary
abstract  double getCounts(java.util.Calendar date)
          Get the value of the generator for the given date.
 double getCounts(java.util.Calendar date, int interval)
          Get the value of the generator for the given interval.
abstract  java.util.Calendar getEndDate()
          Get the end date of this generator's date range.
 java.awt.Paint getLineColor()
          Get the line color for the data.
 java.awt.Stroke getLineStyle()
          Get the line style for the data.
abstract  java.lang.String getName()
          Get the name of the generator.
abstract  java.util.Calendar getStartDate()
          Get the start date of this generator's date range.
 boolean isControlGenerator()
          Indicates if this generator produces control chart information, and therefore doesn't affect the graph title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERVAL_DAY

public static final int INTERVAL_DAY
See Also:
Constant Field Values

INTERVAL_WEEK

public static final int INTERVAL_WEEK
See Also:
Constant Field Values

INTERVAL_MONTH

public static final int INTERVAL_MONTH
See Also:
Constant Field Values
Constructor Detail

DateGraphGenerator

public DateGraphGenerator()
Method Detail

getName

public abstract java.lang.String getName()
Get the name of the generator.


isControlGenerator

public boolean isControlGenerator()
Indicates if this generator produces control chart information, and therefore doesn't affect the graph title.

Returns:

getLineStyle

public java.awt.Stroke getLineStyle()
Get the line style for the data.


getLineColor

public java.awt.Paint getLineColor()
Get the line color for the data.


getCounts

public abstract double getCounts(java.util.Calendar date)
Get the value of the generator for the given date.


getCounts

public double getCounts(java.util.Calendar date,
                        int interval)
Get the value of the generator for the given interval.


getStartDate

public abstract java.util.Calendar getStartDate()
Get the start date of this generator's date range.

Returns:
Date, or null if the generator has no bounds.

getEndDate

public abstract java.util.Calendar getEndDate()
Get the end date of this generator's date range.

Returns:
Date, or null if the generator has no bounds.


Copyright © 2000 University of California. All Rights Reserved.