zeta.handler.statistic
Class OperatingSystemsHandler
java.lang.Object
|
+--zeta.handler.statistic.AbstractHandler
|
+--zeta.handler.statistic.OperatingSystemsHandler
- All Implemented Interfaces:
- GetHandler
- public class OperatingSystemsHandler
- extends AbstractHandler
Handles a GET request for the statistic 'operating systems'.
|
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 'operating systems'. |
private void |
extendPercent(Table table)
|
int |
getImageHeight(java.lang.String imageName)
Determines the height of the image in the statistic page. |
int |
getImageWidth(java.lang.String imageName)
Determines the width of the image in the statistic page. |
static void |
main(java.lang.String[] args)
|
private void |
updatePie(Table table)
|
| Methods inherited from class zeta.handler.statistic.AbstractHandler |
createPage, doGet, getBufferedPage, 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 |
imgWidthPie
private static final int imgWidthPie
- See Also:
- Constant Field Values
imgHeightPie
private static final int imgHeightPie
- See Also:
- Constant Field Values
names
private java.lang.String[] names
values
private java.lang.Long[] values
OperatingSystemsHandler
public OperatingSystemsHandler(ZetaServlet servlet)
- Parameters:
servlet - servlet which owns this handler.
getImageWidth
public int getImageWidth(java.lang.String imageName)
- Determines the width of the image in the statistic page.
- Overrides:
getImageWidth in class AbstractHandler
- Parameters:
imageName - name of the image
- Returns:
- the width of the image in the statistic page.
getImageHeight
public int getImageHeight(java.lang.String imageName)
- Determines the height of the image in the statistic page.
- Overrides:
getImageHeight in class AbstractHandler
- Parameters:
imageName - name of the image
- Returns:
- the height of the image in the statistic page.
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 'operating systems'.
- Specified by:
createPage in class AbstractHandler
- Parameters:
con - connection to the back-end database
- Returns:
- HTML page with the content of the statistic 'operating systems'.
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
extendPercent
private void extendPercent(Table table)
updatePie
private void updatePie(Table table)
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.