hep.aida.web.taglib.jsp20
Class PlotterTagImpl

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by hep.aida.web.taglib.jsp20.PlotterTagImpl
All Implemented Interfaces:
PlotterTag, StyleProvider, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag
Direct Known Subclasses:
PlotSetTagImpl

public class PlotterTagImpl
extends javax.servlet.jsp.tagext.SimpleTagSupport
implements PlotterTag

Author:
The AIDA Team @ SLAC

Field Summary
protected  PlotterTagSupport plotterTagSupport
           
 
Fields inherited from interface hep.aida.web.taglib.StyleProvider
plotterStyle
 
Constructor Summary
PlotterTagImpl()
           
 
Method Summary
 void doTag()
           
 boolean getCreateImageMap()
           
 hep.aida.IBaseStyle getStyle()
           
 hep.aida.IBaseStyle getStyle(java.lang.String type)
           
 void setAllowDownload(boolean allowDownload)
          Set whether to display links below the generated image to allow downloading in other formats.
 void setCreateImageMap(boolean createImageMap)
          Set whether to create an image map on top of the plot; each region has a link.
 void setFormat(java.lang.String format)
          Set the default format to use for the generated image.
 void setHeight(int height)
          Set the height of the generated image, in pixels.
 void setName(java.lang.String name)
          Set the name for the generated plot.
 void setNx(int nx)
          Set the number of horizontal cells in the region grid.
 void setNy(int ny)
          Set the number of vertical cells in the region grid.
 void setVar(java.lang.Object plotter)
          Set the plotter to translate into an image.
 void setWidth(int width)
          Set the width of the generated image, in pixels.
 
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

plotterTagSupport

protected PlotterTagSupport plotterTagSupport
Constructor Detail

PlotterTagImpl

public PlotterTagImpl()
Method Detail

doTag

public void doTag()
           throws javax.servlet.jsp.JspException,
                  java.io.IOException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException
java.io.IOException

setName

public void setName(java.lang.String name)
Description copied from interface: PlotterTag
Set the name for the generated plot. This is an optional attribute. If it is not present then a unique name is automatically generated.

Specified by:
setName in interface PlotterTag

setWidth

public void setWidth(int width)
Description copied from interface: PlotterTag
Set the width of the generated image, in pixels.

Specified by:
setWidth in interface PlotterTag

setHeight

public void setHeight(int height)
Description copied from interface: PlotterTag
Set the height of the generated image, in pixels.

Specified by:
setHeight in interface PlotterTag

setNx

public void setNx(int nx)
Description copied from interface: PlotterTag
Set the number of horizontal cells in the region grid.

Specified by:
setNx in interface PlotterTag

setNy

public void setNy(int ny)
Description copied from interface: PlotterTag
Set the number of vertical cells in the region grid.

Specified by:
setNy in interface PlotterTag

setFormat

public void setFormat(java.lang.String format)
Description copied from interface: PlotterTag
Set the default format to use for the generated image. Possible values are png, gif, jpg, pdf, eps, svg, and swf.

Specified by:
setFormat in interface PlotterTag

setAllowDownload

public void setAllowDownload(boolean allowDownload)
Description copied from interface: PlotterTag
Set whether to display links below the generated image to allow downloading in other formats.

Specified by:
setAllowDownload in interface PlotterTag

setVar

public void setVar(java.lang.Object plotter)
Description copied from interface: PlotterTag
Set the plotter to translate into an image. This can be an instance of IPlotter, or the name of a variable in a JSP scope holding an IPlotter. This is an optional attribute. The IPlotter generated by any nested <region> and <plot> tags will take precedence.

Specified by:
setVar in interface PlotterTag

getStyle

public hep.aida.IBaseStyle getStyle()
                             throws javax.servlet.jsp.JspException
Specified by:
getStyle in interface StyleProvider
Throws:
javax.servlet.jsp.JspException

getStyle

public hep.aida.IBaseStyle getStyle(java.lang.String type)
                             throws javax.servlet.jsp.JspException
Specified by:
getStyle in interface StyleProvider
Throws:
javax.servlet.jsp.JspException

setCreateImageMap

public void setCreateImageMap(boolean createImageMap)
Description copied from interface: PlotterTag
Set whether to create an image map on top of the plot; each region has a link.

Specified by:
setCreateImageMap in interface PlotterTag

getCreateImageMap

public boolean getCreateImageMap()


Copyright 2000-2007 FreeHEP. All Rights Reserved.