| 
SNMP Stack 4_12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  |
  +--java.awt.Component
        |
        +--uk.co.westhawk.visual.BareGraph
The class BareGraph makes a graphical respresentation of a set of integer values. The values are provided by the GraphDataSet class.
The line that this class draws can be set to the 10log() representation of the values.
Graph, 
GraphDataSet, Serialized Form| Inner classes inherited from class java.awt.Component | 
java.awt.Component.AccessibleAWTComponent | 
| 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 | |
BareGraph()
The default constructor.  | 
|
BareGraph(GraphDataSet d)
The constructor with the data set  | 
|
| Method Summary | |
 java.awt.Color | 
getAxisColour()
Returns the colour of the axes of the graph.  | 
 float | 
getAxisPercent()
Returns the per cent size of the axes in respect to the graph.  | 
 GraphDataSet | 
getDataSet()
Returns the data set that the graph displays.  | 
 java.awt.Color | 
getGraphColour()
Returns the colour of the line of the graph.  | 
 int | 
getMax()
Returns the maximum value that is displayed in the graph.  | 
 int | 
getMin()
Returns the minimum value that is displayed in the graph.  | 
 java.awt.Dimension | 
getMinimumSize()
Returns the minimum size.  | 
 java.awt.Dimension | 
getPreferredSize()
Returns the preferred size.  | 
 boolean | 
isLog()
Returns the log mode of the graph.  | 
 void | 
paint(java.awt.Graphics g)
 | 
 void | 
propertyChange(java.beans.PropertyChangeEvent evt)
Implements the PropertyChangeListener.  | 
 void | 
setAxes(boolean b)
Makes the graph draw the axes or not.  | 
 void | 
setAxisColour(java.awt.Color c)
Sets the colour of the axes of the graph.  | 
 void | 
setAxisPercent(float x)
Sets the per cent size of the axes in respect to the graph.  | 
 void | 
setDataSet(GraphDataSet d)
Sets the data set that the graph displays.  | 
 void | 
setGraphColour(java.awt.Color c)
Sets the colour of the line of the graph.  | 
 void | 
setLog(boolean b)
Makes the graph draw the 10log() of the values or not.  | 
 void | 
setMax(int m)
Sets the maximum value that is displayed in the graph.  | 
 void | 
setMin(int m)
Sets the minimum value that is displayed in the graph.  | 
| Methods inherited from class java.awt.Component | 
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public BareGraph()
setDataSet(uk.co.westhawk.visual.GraphDataSet)public BareGraph(GraphDataSet d)
d - the data set| Method Detail | 
public void setLog(boolean b)
b - set the 10log() version on or notisLog()public boolean isLog()
setLog(boolean)public void setAxes(boolean b)
b - set the axes or notpublic int getMax()
setMax(int)public void setMax(int m)
m - the maximumgetMax()public int getMin()
setMin(int)public void setMin(int m)
m - the minimum valuegetMin()public java.awt.Color getAxisColour()
setAxisColour(java.awt.Color)public void setAxisColour(java.awt.Color c)
c - the axes' colourgetAxisColour()public java.awt.Color getGraphColour()
setGraphColour(java.awt.Color)public void setGraphColour(java.awt.Color c)
c - the line's colourgetGraphColour()public float getAxisPercent()
setAxisPercent(float)public void setAxisPercent(float x)
c - the size (%) of axesgetAxisPercent()public java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Componentpublic java.awt.Dimension getMinimumSize()
getMinimumSize in class java.awt.Componentpublic void setDataSet(GraphDataSet d)
d - the data set.getDataSet()public GraphDataSet getDataSet()
setDataSet(uk.co.westhawk.visual.GraphDataSet)public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerevt - the property change eventPropertyChangeListenerpublic void paint(java.awt.Graphics g)
paint in class java.awt.Component
  | 
SNMP Stack 4_12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||