khartzApplet
Class KhartzApplet

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--java.applet.Applet
                          |
                          +--khartzApplet.KhartzApplet
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class KhartzApplet
extends java.applet.Applet

An applet which utilises the Khartz Chart Generator

Description: This applet uses the Khartz toolz to provide a chart generator for use in Web pages. Please see http://www.ozwarren.co.uk/java for more details and examples of applet use.

Copyright: Copyright (c) Austin Warren 2002

Version:
Alpha 1.0
Author:
Austin Warren
See Also:
Serialized Form

Field Summary
 java.awt.Label theLabel
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
KhartzApplet()
           
 
Method Summary
 java.awt.Color[] collectColors(java.lang.String colorString)
          Used to collect the colours from the parameters passed to the applet
 java.lang.String getAppletInfo()
          Get Applet information
 java.awt.Color[] getColorArray()
          Access method for the colorArray property.
 java.lang.String[][] getParameterInfo()
          Get parameter info
 void init()
          Initialize the applet
 void paint(java.awt.Graphics g)
          Carries out the drawing of the applet and its Window's content.
 void setColorArray(java.awt.Color[] aColorArray)
          Sets the value of the colorArray property.
 void update(java.awt.Graphics g)
          Overridden screen update routine.
 
Methods inherited from class java.applet.Applet
destroy, getAccessibleContext, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

theLabel

public java.awt.Label theLabel
Constructor Detail

KhartzApplet

public KhartzApplet()
Method Detail

getColorArray

public java.awt.Color[] getColorArray()
Access method for the colorArray property.
Returns:
the current value of the colorArray property

setColorArray

public void setColorArray(java.awt.Color[] aColorArray)
Sets the value of the colorArray property.
Parameters:
aColorArray - the new value of the colorArray property

init

public void init()
Initialize the applet
Overrides:
init in class java.applet.Applet

getAppletInfo

public java.lang.String getAppletInfo()
Get Applet information
Overrides:
getAppletInfo in class java.applet.Applet
Returns:
String

getParameterInfo

public java.lang.String[][] getParameterInfo()
Get parameter info
Overrides:
getParameterInfo in class java.applet.Applet
Returns:
String[][]

paint

public void paint(java.awt.Graphics g)
Carries out the drawing of the applet and its Window's content.
Overrides:
paint in class java.awt.Container
Parameters:
g - A Graphics object representing the screen context

update

public void update(java.awt.Graphics g)
Overridden screen update routine.
Overrides:
update in class java.awt.Container
Parameters:
g - A graphics object representing the current screen context.
Since:
30/12/2002

collectColors

public java.awt.Color[] collectColors(java.lang.String colorString)
                               throws java.lang.IllegalArgumentException
Used to collect the colours from the parameters passed to the applet
Parameters:
colorString - A string of color values in RGB format - "0,0,0;50,0,0" etc.
Returns:
java.awt.Color
Throws:
java.lang.IllegalArgumentException -  
Since:
30/12/2002