hep.aida.web.taglib.jsp20
Class RegionTagImpl

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by hep.aida.web.taglib.jsp20.RegionTagImpl
All Implemented Interfaces:
RegionTag, StyleProvider, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class RegionTagImpl
extends javax.servlet.jsp.tagext.SimpleTagSupport
implements RegionTag

Author:
The AIDA Team @ SLAC

Field Summary
 
Fields inherited from interface hep.aida.web.taglib.StyleProvider
plotterStyle
 
Constructor Summary
RegionTagImpl()
           
 
Method Summary
 void doTag()
           
 java.lang.String getHref()
           
 hep.aida.IBaseStyle getStyle()
           
 hep.aida.IBaseStyle getStyle(java.lang.String type)
           
 java.lang.String getTitle()
           
 java.lang.String getVar()
           
 void setColSpan(int colSpan)
          Set the number of vertical cells spanned in the region grid.
 void setHeight(double height)
          Set the relative height of the region within the plotter (a number between 0 and 1).
 void setHref(java.lang.String href)
          Specify an href to the region.
 void setRowSpan(int rowSpan)
          Set the number of horizontal cells spanned in the region grid.
 void setScope(java.lang.String scope)
           
 void setTitle(java.lang.String title)
          Set the title of the plot in the current region.
 void setVar(java.lang.String var)
           
 void setWidth(double width)
          Set the relative width of the region within the plotter (a number between 0 and 1).
 void setX(double x)
          Set the relative horizontal position of the region within the plotter (a number between 0 and 1).
 void setY(double y)
          Set the relative vertical position of the region within the plotter (a number between 0 and 1).
 
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
 

Constructor Detail

RegionTagImpl

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

setX

public void setX(double x)
Description copied from interface: RegionTag
Set the relative horizontal position of the region within the plotter (a number between 0 and 1).

Specified by:
setX in interface RegionTag
Parameters:
x - relative x position of the region within the plotter

setY

public void setY(double y)
Description copied from interface: RegionTag
Set the relative vertical position of the region within the plotter (a number between 0 and 1).

Specified by:
setY in interface RegionTag
Parameters:
y - relative y position of the region within the plotter

setWidth

public void setWidth(double width)
Description copied from interface: RegionTag
Set the relative width of the region within the plotter (a number between 0 and 1).

Specified by:
setWidth in interface RegionTag
Parameters:
width - relative width of the region within the plotter

setHeight

public void setHeight(double height)
Description copied from interface: RegionTag
Set the relative height of the region within the plotter (a number between 0 and 1).

Specified by:
setHeight in interface RegionTag
Parameters:
height - relative height of the region within the plotter

setRowSpan

public void setRowSpan(int rowSpan)
Description copied from interface: RegionTag
Set the number of horizontal cells spanned in the region grid.

Specified by:
setRowSpan in interface RegionTag
Parameters:
rowSpan - number of horizontal cells spanned in the region grid

setColSpan

public void setColSpan(int colSpan)
Description copied from interface: RegionTag
Set the number of vertical cells spanned in the region grid.

Specified by:
setColSpan in interface RegionTag
Parameters:
colSpan - number of vertical cells spanned in the region grid

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

setHref

public void setHref(java.lang.String href)
Description copied from interface: RegionTag
Specify an href to the region. If the plotter has an image map and the region regerence is specified, then it is clickable.

Specified by:
setHref in interface RegionTag

getHref

public java.lang.String getHref()

setTitle

public void setTitle(java.lang.String title)
Description copied from interface: RegionTag
Set the title of the plot in the current region.

Specified by:
setTitle in interface RegionTag

getTitle

public java.lang.String getTitle()

setVar

public void setVar(java.lang.String var)
Specified by:
setVar in interface RegionTag

getVar

public java.lang.String getVar()

setScope

public void setScope(java.lang.String scope)


Copyright 2000-2007 FreeHEP. All Rights Reserved.