gov.lanl.Web
Class JClassHistoryChart

java.lang.Object
  |
  +--gov.lanl.Web.JClassHistoryChart

public class JClassHistoryChart
extends java.lang.Object

configure JClassServerChart to plot CSV table where independent variable is date takes as input the JavaChart, the file to be read, and the properties file It can handle multiple column charts with a single independent variable


Constructor Summary
JClassHistoryChart()
           
JClassHistoryChart(ServerChart chart, java.lang.String props)
          Constructor without filename
JClassHistoryChart(ServerChart chart, java.lang.String file, java.lang.String props)
          Constructor
JClassHistoryChart(java.lang.String props)
          Constructor with only Properties.
 
Method Summary
 void draw(java.lang.String file)
          return graph name and trigger drawing
 java.lang.String getPlot()
          get the plot file name without the suffix "Plot.png"
static void main(java.lang.String[] argv)
          Main test program
 void plot()
          plot
 java.lang.String plot(java.lang.String filename)
          plot with fileName;
 void setBarWidth(int width)
          set the width of the bar cluster (0-100)
 void setChart(ServerChart chart)
          replace Chart
 void setDirectory(java.lang.String directory)
          set the directory for writing the plot image
 void setFileName(java.lang.String file)
          set the CSV filename to be read
 void setIndex(int first)
          Set the index of the last point in the first series.
 void setPlot(java.lang.String plotName)
          set the plot file name (without png suffix or directory)
 void setPlotType(java.lang.String type)
          set the Plot type (should be "line", "area")
 void setProps(java.lang.String props)
          set Properties file to be read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JClassHistoryChart

public JClassHistoryChart()

JClassHistoryChart

public JClassHistoryChart(ServerChart chart,
                          java.lang.String file,
                          java.lang.String props)
Constructor


JClassHistoryChart

public JClassHistoryChart(ServerChart chart,
                          java.lang.String props)
Constructor without filename


JClassHistoryChart

public JClassHistoryChart(java.lang.String props)
Constructor with only Properties.

Method Detail

setProps

public void setProps(java.lang.String props)
set Properties file to be read


setFileName

public void setFileName(java.lang.String file)
set the CSV filename to be read


setDirectory

public void setDirectory(java.lang.String directory)
set the directory for writing the plot image


setChart

public void setChart(ServerChart chart)
replace Chart


setPlot

public void setPlot(java.lang.String plotName)
set the plot file name (without png suffix or directory)


getPlot

public java.lang.String getPlot()
get the plot file name without the suffix "Plot.png"


setPlotType

public void setPlotType(java.lang.String type)
set the Plot type (should be "line", "area")


setIndex

public void setIndex(int first)
Set the index of the last point in the first series.


setBarWidth

public void setBarWidth(int width)
set the width of the bar cluster (0-100)


plot

public java.lang.String plot(java.lang.String filename)
plot with fileName;


plot

public void plot()
plot


draw

public void draw(java.lang.String file)
return graph name and trigger drawing


main

public static void main(java.lang.String[] argv)
Main test program



Copyright © 2000 University of California. All Rights Reserved.