|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthalo.userinterface.gui.graphhandler.HistogramConstructor
public class HistogramConstructor
Provides methods for the construction and handling of histograms.
Constructor Summary | |
---|---|
HistogramConstructor(java.lang.String title,
java.lang.String xlabel,
java.lang.String ylabel)
Constructs a new histogram constructor object |
Method Summary | |
---|---|
void |
addSeries(java.lang.String title,
double[] val,
int bins,
double start,
double stop)
Adds a complete data series to the graph |
void |
addValue(double val)
Adds a new value to the set of values |
void |
addValues(double[] val)
Adds all values in an array to the set of values |
void |
generateGraph()
Generates a graph from the given series |
void |
saveGraph(java.io.File output)
Saves the graph as a JPEG picture |
void |
savePlotFile(java.io.File output)
Saves the plotting information of the histogram |
void |
setColor(java.awt.Color color)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HistogramConstructor(java.lang.String title, java.lang.String xlabel, java.lang.String ylabel)
title
- The title of the histogramxlabel
- The name of the x-axisylabel
- The name of the y-axisMethod Detail |
---|
public void addValue(double val)
val
- The new entrypublic void addValues(double[] val)
val
- The array with all new entriespublic void addSeries(java.lang.String title, double[] val, int bins, double start, double stop)
title
- Name of the seriesval
- Value entriesbins
- Number of binsstart
- Lower x-axis limitationstop
- Upper x-axis limitationpublic void savePlotFile(java.io.File output)
output
- The output destinationpublic void saveGraph(java.io.File output)
output
- The output file where it will be savedpublic void generateGraph()
public void setColor(java.awt.Color color)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |