zeta.handler.statistic
Class LocationsHandler
java.lang.Object
|
+--zeta.handler.statistic.AbstractHandler
|
+--zeta.handler.statistic.LocationsHandler
- All Implemented Interfaces:
- GetHandler
- public class LocationsHandler
- extends AbstractHandler
Handles a GET request for the statistic 'locations'.
|
Method Summary |
java.awt.image.BufferedImage |
createImage(java.sql.Connection con,
java.lang.String imageName)
Creates PNG image for a specified name which is defined in the HTML page. |
java.lang.String |
createPage(java.sql.Connection con)
Creates HTML page with the content of the statistic 'locations'. |
private static java.awt.Color |
getColor(int value)
Returns same color for values inside a range. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class zeta.handler.statistic.AbstractHandler |
createPage, doGet, getBufferedPage, getImageHeight, getImageWidth, getInnerPageBuffer, getInnerPageExpiredDiffTime, getPageExpiredDiffTime, imageUpdateCompleted, isImageExpired, isInnerPageExpired, isPageExpired, pageUpdateCompleted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
computers
private java.util.Map computers
isoCountryCode
private java.util.List isoCountryCode
countryData
private java.util.List countryData
countryPos
private java.util.List countryPos
LocationsHandler
public LocationsHandler(ZetaServlet servlet)
- Parameters:
servlet - servlet which owns this handler.
createPage
public java.lang.String createPage(java.sql.Connection con)
throws java.sql.SQLException,
javax.servlet.ServletException
- Creates HTML page with the content of the statistic 'locations'.
- Specified by:
createPage in class AbstractHandler
- Parameters:
con - connection to the back-end database
- Returns:
- HTML page with the content of the statistic 'locations'.
java.sql.SQLException
javax.servlet.ServletException
createImage
public java.awt.image.BufferedImage createImage(java.sql.Connection con,
java.lang.String imageName)
throws java.sql.SQLException,
javax.servlet.ServletException
- Creates PNG image for a specified name which is defined in the HTML page.
- Overrides:
createImage in class AbstractHandler
- Parameters:
con - connection to the back-end databaseimageName - name of the image
- Returns:
- PNG image for a specified name which is defined in the HTML page.
java.sql.SQLException
javax.servlet.ServletException
getColor
private static java.awt.Color getColor(int value)
- Returns same color for values inside a range.
- Parameters:
value - value
- Returns:
- same color for values inside a range.
main
public static void main(java.lang.String[] args)
For further technical papers, see ZetaGrid Technical Documentation.
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.