hep.aida.web.taglib
Class PlotterTagSupport

java.lang.Object
  extended by hep.aida.web.taglib.PlotterTagSupport
All Implemented Interfaces:
PlotterTag, StyleProvider
Direct Known Subclasses:
PlotSetTagSupport

public class PlotterTagSupport
extends java.lang.Object
implements PlotterTag

The implementation class for all PlotterTag classes.

Author:
The AIDA Team @ SLAC

Field Summary
 
Fields inherited from interface hep.aida.web.taglib.StyleProvider
plotterStyle
 
Constructor Summary
PlotterTagSupport()
           
 
Method Summary
 hep.aida.IPlotterRegion createRegion(double x, double y, double width, double height, int rowSpan, int colSpan, RegionTagSupport regionTagSupport)
           
 void doEndTag(javax.servlet.jsp.PageContext pageContext)
           
 void doStartTag(javax.servlet.jsp.PageContext pageContext)
           
 boolean getCreateImageMap()
           
 java.lang.String getFormat()
           
 int getHeight()
           
 java.lang.String getName()
           
 int getNx()
           
 int getNy()
           
 hep.aida.IPlotter getPlotter()
           
 hep.aida.IPlotterFactory getPlotterFactory()
           
 hep.aida.IBaseStyle getStyle()
           
 hep.aida.IBaseStyle getStyle(java.lang.String type)
           
 java.lang.Object getVar()
           
 int getWidth()
           
 boolean isAllowDownload()
           
 boolean isNxOrNySet()
           
 int numberOfRegions()
          Get the number of regions
 RegionTagSupport regionTagSupport(int i)
          The the ith RegionTagSupport
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlotterTagSupport

public PlotterTagSupport()
Method Detail

getPlotterFactory

public hep.aida.IPlotterFactory getPlotterFactory()

doStartTag

public void doStartTag(javax.servlet.jsp.PageContext pageContext)
                throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

doEndTag

public void doEndTag(javax.servlet.jsp.PageContext pageContext)
              throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

createRegion

public hep.aida.IPlotterRegion createRegion(double x,
                                            double y,
                                            double width,
                                            double height,
                                            int rowSpan,
                                            int colSpan,
                                            RegionTagSupport regionTagSupport)

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

getName

public java.lang.String getName()

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

getWidth

public int getWidth()

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

getHeight

public int getHeight()

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

getNx

public int getNx()

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

getNy

public int getNy()

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

getFormat

public java.lang.String getFormat()

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

isAllowDownload

public boolean isAllowDownload()

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()

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

getVar

public java.lang.Object getVar()

getPlotter

public hep.aida.IPlotter getPlotter()

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

isNxOrNySet

public boolean isNxOrNySet()

regionTagSupport

public RegionTagSupport regionTagSupport(int i)
The the ith RegionTagSupport


numberOfRegions

public int numberOfRegions()
Get the number of regions



Copyright 2000-2007 FreeHEP. All Rights Reserved.