HiRISE

HiRISE.HiReport.tags.chart
Class BarChartTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by HiRISE.HiReport.tags.chart.ChartTag
          extended by HiRISE.HiReport.tags.chart.BarChartTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class BarChartTag
extends ChartTag

Makes a standard bar chart, yeeah


Field Summary
protected  CategoryDataset dataset
          Our dataset
static String ID
          CVS ID
 
Fields inherited from class HiRISE.HiReport.tags.chart.ChartTag
DEFAULT_HEIGHT, DEFAULT_WIDTH, dmax, dmin, domain, height, imagemap, info, legend, logger, map, orientation, range, rmax, rmin, title, var, width
 
Constructor Summary
BarChartTag()
           
 
Method Summary
 JFreeChart getChart()
          Create and return the chart object.
 void setDataset(CategoryDataset dataset)
          Set the data to use
 void setStacked(boolean stacked)
          Set to true for a stacked bar chart (default false).
 
Methods inherited from class HiRISE.HiReport.tags.chart.ChartTag
doTag, getHeight, getWidth, setDomain, setDomainMax, setDomainMin, setHeight, setLegend, setMap, setOrientation, setRange, setRangeMax, setRangeMin, setTitle, setVar, setWidth
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

dataset

protected CategoryDataset dataset
Our dataset

Constructor Detail

BarChartTag

public BarChartTag()
Method Detail

setStacked

public void setStacked(boolean stacked)
Set to true for a stacked bar chart (default false).

Parameters:
stacked -

setDataset

public void setDataset(CategoryDataset dataset)
Set the data to use

Parameters:
dataset - chart data

getChart

public JFreeChart getChart()
Description copied from class: ChartTag
Create and return the chart object.

Specified by:
getChart in class ChartTag
Returns:
The chart

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona