de.fhkl.zw.mkup.rattrap
Class PieCharts

java.lang.Object
  extended by java.awt.Component
      extended by de.fhkl.zw.mkup.rattrap.PieCharts
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class PieCharts
extends java.awt.Component

This class is responsible for the piechart visualization.

Author:
Martin Schultz
See Also:
Serialized Form

Field Summary
 
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
PieCharts()
          The constructor initializes the charts.
 
Method Summary
 void countHarvesters(java.util.Vector v)
          The method gets the data for the harvester chart and prepares the data filling the chart.
 void countSpam(java.util.Vector v)
          The method gets the data for the spam chart and prepares the data filling the chart.
 void countUserAgents(java.util.Vector v)
          The method gets the data for the useragent chart and prepares the data filling the chart.
 void getIntelligence(java.util.Vector v)
          The method gets the data for the intelligence chart and prepares the data filling the chart.
 void harvesterChart()
          This method creates a piechart with all identified harvester countries.
 void intelChart()
          This method creates a piechart with harvester intelligence.
 void paint(java.awt.Graphics g)
          The paint method renders the visualization.
 void refreshCharts()
          This refreshes the chart data.
 boolean showHarvesterCountries()
          The method sets the desired chart mode (spammers, harvesters, intelligece, useragents).
 boolean showIntelligence()
          The method sets the desired chart mode (spammers, harvesters, intelligece, useragents).
 boolean showSpamCountries()
          The method sets the desired chart mode (spammers, harvesters, intelligece, useragents).
 boolean showUseragent()
          The method sets the desired chart mode (spammers, harvesters, intelligece, useragents).
 void spamChart()
          This method creates a piechart with all identified spam countries.
 void userChart()
          This method creates a piechart with all identified user agents.
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PieCharts

public PieCharts()
The constructor initializes the charts.

Method Detail

refreshCharts

public void refreshCharts()
This refreshes the chart data.


spamChart

public void spamChart()
This method creates a piechart with all identified spam countries.


harvesterChart

public void harvesterChart()
This method creates a piechart with all identified harvester countries.


intelChart

public void intelChart()
This method creates a piechart with harvester intelligence.


userChart

public void userChart()
This method creates a piechart with all identified user agents.


countSpam

public void countSpam(java.util.Vector v)
The method gets the data for the spam chart and prepares the data filling the chart.


countHarvesters

public void countHarvesters(java.util.Vector v)
The method gets the data for the harvester chart and prepares the data filling the chart.


getIntelligence

public void getIntelligence(java.util.Vector v)
The method gets the data for the intelligence chart and prepares the data filling the chart.


countUserAgents

public void countUserAgents(java.util.Vector v)
The method gets the data for the useragent chart and prepares the data filling the chart.


paint

public void paint(java.awt.Graphics g)
The paint method renders the visualization.

Overrides:
paint in class java.awt.Component

showSpamCountries

public boolean showSpamCountries()
The method sets the desired chart mode (spammers, harvesters, intelligece, useragents).

Returns:
Returns true, if there are coordinates.

showHarvesterCountries

public boolean showHarvesterCountries()
The method sets the desired chart mode (spammers, harvesters, intelligece, useragents).

Returns:
Returns true, if there are coordinates.

showIntelligence

public boolean showIntelligence()
The method sets the desired chart mode (spammers, harvesters, intelligece, useragents).

Returns:
Returns true, if there are coordinates.

showUseragent

public boolean showUseragent()
The method sets the desired chart mode (spammers, harvesters, intelligece, useragents).

Returns:
Returns true, if there are coordinates.