com.adventnet.snmp.ui
Class LineGraphBeanWrapper

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.adventnet.snmp.ui.LineGraphBeanWrapper
All Implemented Interfaces:
ResultListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

 class LineGraphBeanWrapper
extends javax.swing.JPanel
implements ResultListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

This implements a multiline graph.


Nested Class Summary
(package private)  class LineGraphBeanWrapper.StaticPolling
           
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  boolean absoluteCounters
          boolean for the absolute counters.
(package private)  boolean absTime
          Whether to show relative or absolute time on the X axis
(package private)  java.awt.Color bgColor
          The background color
(package private)  int c_index
           
(package private)  boolean check
           
(package private) static int count
           
(package private)  boolean counter64Test
           
(package private)  java.util.Vector[] data
          The data to be graphed, i.e.
(package private)  java.util.Date date
           
(package private)  byte DAY
          constant used to mention the xunits in DAY
(package private)  java.awt.Image dbuf
           
(package private)  java.awt.Image dbuf2
           
(package private)  int dotRad
           
(package private)  java.awt.Color fgColor
          The foreground color
(package private)  java.awt.Graphics graph
           
(package private)  java.awt.Graphics graph1
           
(package private)  byte HOUR
          constant used to mention the xunits in HOUR
(package private)  int ht
           
(package private)  boolean inComp
           
(package private)  java.io.BufferedReader is
           
(package private)  boolean isAutoSetXLabel
          allow the bean to set the label for the X axis by bean itself automatically
(package private)  boolean isGraphResized
           
(package private)  boolean isScrollBarEnabled
           
(package private)  boolean isXRangeChanged
           
(package private)  int labelHt
           
(package private)  byte labelType
           
(package private)  java.math.BigInteger lastValue
           
(package private)  java.math.BigInteger[] lastValues
           
(package private)  int lastx
           
(package private)  int lasty
           
(package private)  java.awt.Color lcolor
          The primary line color
(package private)  java.awt.Font lfont
           
(package private)  java.lang.String lfontName
          The labels font name, e.g.
(package private)  int lfontSize
          The labels font size.
(package private)  java.lang.String lfontStyle
          The labels font style.
(package private)  java.util.Vector line1
           
(package private)  java.awt.Color lineColor
          The first line color
(package private)  java.lang.String linecolors
          line colors for multiline - not fully impl.
(package private)  java.awt.Color[] lineColors
           
(package private)  java.lang.String lineLabels
          The labels to be used for each oid - separated by | (pipe).
(package private)  int markLen
           
(package private)  int maxScaleYWid
           
(package private)  int maxX1
           
(package private)  byte MINUTE
          constant used to mention the xunits in MINUTE
(package private)  byte MONTH
           
(package private)  int noofpages
           
(package private)  int noOfValues
           
(package private)  boolean novalue
           
(package private)  java.lang.String[] olabels
           
(package private)  java.io.BufferedWriter os
           
(package private)  double pollInt
           
(package private)  int prevht
           
(package private)  int prevTime
           
(package private)  int prevwid
           
(package private)  boolean readGraphFile
           
(package private)  boolean reset
           
(package private)  byte SECONDS
          constant used to mention the xunits in SECONDS
(package private)  boolean showErrorMessages
           
(package private)  boolean showTitle
          Whether to show a title at all.
(package private)  boolean showXLabel
          Whether to show the X label
(package private)  boolean showYLabel
          Whether to show the Y label
(package private)  long startTime
           
(package private)  boolean storeValues
           
(package private)  java.awt.Font tfont
           
(package private)  java.lang.String tfontName
          The title font name, e.g.
(package private)  int tfontSize
          The title font size
(package private)  java.lang.String tfontStyle
          The title font style.
(package private)  int time1
           
(package private)  boolean timeAvg
          Whether to time average the value shown
(package private)  boolean timeout
           
(package private)  boolean timeSpan
           
(package private)  java.lang.String Title
          The title for the graph.
(package private)  int titleX
           
(package private)  int titleY
           
(package private)  java.math.BigInteger[] values
           
(package private)  boolean valuesLegendOpen
           
(package private)  byte WEEK
          constant used to mention the xunits in WEEK
(package private)  int wid
           
(package private)  int x0
           
(package private)  int xDiffMax
          The maximum range on on the X scale.
(package private)  int xDiffMax1
           
(package private)  int xEnd
           
(package private)  int xGrid
          This defines # of vertical grid lines
(package private)  int[] xGrids
           
(package private)  java.lang.String xLabel
          The label for the X axis
(package private)  int xLabelx
           
(package private)  int xLabely
           
(package private)  int xMark
          This defines # of value marks on X axis
(package private)  int xMarkOff
           
(package private)  int[] xMarks
           
(package private)  int xMax
          The maximum value on the X scale
(package private)  int xMax1
           
(package private)  int xMin
          The minimum value on the X scale
(package private)  int xMin1
           
(package private)  byte xUnits
          The X Units label
(package private)  int y0
           
(package private)  double yBigMax
          The maximum value on the Y scale
(package private)  double yBigMin
          The minimum value on the Y scale
(package private)  byte YEAR
           
(package private)  int yEnd
           
(package private)  int yGrid
          This defines # of horizontal grid lines
(package private)  int[] yGrids
           
(package private)  java.lang.String yLabel
          The label for the Y axis
(package private)  int yLabelWid
           
(package private)  int yLabelx
           
(package private)  int yLabely
           
(package private)  int yMark
          This defines # of value marks on Y axis
(package private)  int yMarkOff
           
(package private)  int[] yMarks
           
(package private)  long yMax
          The maximum value on the Y scale
(package private)  long yMin
          The minimum value on the Y scale
(package private)  java.lang.String yUnits
          The Y units label - unsupported at this time.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
LineGraphBeanWrapper()
          This constructor sets the min size
LineGraphBeanWrapper(int w, int h)
           
 
Method Summary
 void addMouseListener(java.awt.event.MouseListener l)
          Adds the specified mouse listener to receive mouse events
(package private)  boolean addPoint(int lineNum, double[] nextPoint)
           
(package private)  void calculateGrid()
           
(package private)  void drawGraph()
           
(package private)  void drawValuesLegend(int x, int y, java.awt.Graphics maing)
          draw a box with values at mouse location
(package private)  java.lang.String fmt(int i)
          get two digit values for HH:MM:SS
(package private)  boolean getAbsoluteCounters()
          To get whether the value plotted by the graph should be the absolute value or the difference between successive counters.
(package private)  boolean getAbstime()
          Get whether to show relative or absolute time on the X axis
(package private)  boolean getAutoXlabel()
          get the status whether the bean is able to set the label for the X axis by bean itself automatically
(package private)  java.awt.Color getBgcolor()
          Get the background color
(package private)  java.awt.Color getFgcolor()
          Get the foreground color
(package private)  long getFromX(int x)
          Compute the value from x point
(package private)  long getFromX1(int x)
           
(package private)  java.awt.Color getLcolor()
          Get the primary line color
(package private)  java.lang.String getLfontname()
          Get the labels font name, e.g.
(package private)  int getLfontsize()
          Get the labels font size.
(package private)  java.lang.String getLfontstyle()
          Get the labels font style.
(package private)  java.awt.Color getLinecolor()
          Get the first line color
(package private)  java.lang.String getLinecolors()
          Deprecated and Replaced by getLineColors
(package private)  java.awt.Color[] getLineColors()
          Get line colors for multiline
(package private)  java.lang.String getLineLabels()
          Get the labels to be used for each oid - separated by | (pipe).
(package private)  java.lang.String getLogFileName()
           
(package private)  int getPollDuration()
           
 boolean getShowErrorMessages()
           
(package private)  boolean getShowtitle()
          Get whether to show a title at all.
(package private)  boolean getShowxlabel()
          Get whether to show the X label
(package private)  boolean getShowylabel()
          Get whether to show the Y label
(package private)  int getStyleNo(java.lang.String style)
           
(package private)  java.lang.String getTfontname()
          Get the title font name, e.g.
(package private)  int getTfontsize()
          Get the title font size
(package private)  java.lang.String getTfontstyle()
          Get the title font style.
(package private)  int getTime()
           
(package private)  boolean getTimeavg()
          Deprecated. Use isTimeavg() instead.
(package private)  java.lang.String getTimeStr(long t)
          return HH:MM:SS
(package private)  java.lang.String getTitle()
          Get the title for the graph.
(package private)  int getX(double xval)
          Compute the x point from value
(package private)  int getX1(double xval)
           
(package private)  int getXdiffmax()
          Get the maximum range on on the X scale.
(package private)  int getXgrid()
          Get this defines # of vertical grid lines
(package private)  java.lang.String getXlabel()
          Get the label for the X axis
(package private)  int getXmark()
          Get this defines # of value marks on X axis
(package private)  int getXmax()
          Get the maximum value on the X scale
(package private)  int getXmin()
          Get the minimum value on the X scale
(package private)  int getXscale()
           
(package private)  byte getXunits()
          Get the X Units label
(package private)  int getY(double yval)
          Compute the y point from value
(package private)  int getYgrid()
          Get this defines # of horizontal grid lines
(package private)  java.lang.String getYlabel()
          Get the label for the Y axis
(package private)  int getYmark()
          Get this defines # of value marks on Y axis
(package private)  long getYmax()
          Get the maximum value on the Y scale
(package private)  java.math.BigInteger getYmaxAsBigInt()
          Get the maximum value on the Y scale as BigInteger.
(package private)  long getYmin()
          Get the minimum value on the Y scale
(package private)  java.math.BigInteger getYminAsBigInt()
          Get the minimum value on the Y scale as BigInteger.
(package private)  java.lang.String getYunits()
          Get the Y units label - unsupported at this time.
(package private)  boolean isLogEnabled()
           
(package private)  boolean isPopupExists()
           
(package private)  boolean isTimeavg()
          Get whether to time average the value shown.
(package private)  void logErrorMessage(java.lang.String error)
           
(package private)  void logInfoMessage(java.lang.String info)
           
 java.awt.Dimension minimumSize()
          Returns the preferred size of this component.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void paintComponent(java.awt.Graphics g)
           
 java.awt.Dimension preferredSize()
          Returns the preferred size of this component.
 void readPollDataFromFile(java.lang.String file)
           
 void removeMouseListener(java.awt.event.MouseListener l)
          Removes the specified mouse listener
(package private)  void restartGraph()
          Restart the graph for its initial State
(package private)  void setAbsoluteCounters(boolean absoluteCounters)
          set whether counter values should be absolute or difference between successive counters.
(package private)  void setAbstime(boolean absTime)
          Set whether to show relative or absolute time on the X axis
(package private)  void setAutoXlabel(boolean autoset)
          set whether the unit value of x axis is changed according to the duration of graph time.
(package private)  void setBgcolor(java.awt.Color bgColor)
          Set the background color
(package private)  void setDataSize(int size)
          This method will set the number of lines to be plotted in the graph.
(package private)  void setFgcolor(java.awt.Color fgColor)
          Set the foreground color
(package private)  void setFont(java.awt.Font titleFont, java.awt.Font labelFont)
           
(package private)  void setLcolor(java.awt.Color lcolor)
          Set the primary line color
(package private)  void setLfontname(java.lang.String lfontName)
          Set the labels font name, e.g.
(package private)  void setLfontsize(int lfontSize)
          Set the labels font size.
(package private)  void setLfontstyle(java.lang.String lfontStyle)
          Set the labels font style.
(package private)  void setLinecolor(java.awt.Color lineColor)
          Set the first line color
(package private)  void setLineColors(java.awt.Color[] lineColors)
          Set line colors for multiline
(package private)  void setLinecolors(java.lang.String linecolors)
          Depreceted and Replaced by setLineColors
(package private)  void setLineLabels(java.lang.String lineLabels)
          Set the labels to be used for each oid - separated by | (pipe).
(package private)  void setLogEnabled(boolean storeValues)
           
(package private)  void setLogFileName(java.lang.String graphFile)
           
 void setNumericResult(long num)
          Implementation of ResultListener method - plots value
(package private)  void setPollDuration(int time)
           
 void setResult(java.math.BigInteger diff)
          This updates the graph with the new value
 void setResult(int lineNum, java.math.BigInteger diff)
          This updates the graph with the new value
(package private)  void setResult(int lineNum, long diff)
          This updates the graph with the new value
 void setResult(long diff)
          This updates the graph with the new value
 void setResult(ResultEvent e)
          Implementation of ResultListener method,plots values if more than one
 void setShowErrorMessages(boolean showMessages)
           
(package private)  void setShowtitle(boolean showTitle)
          Set whether to show a title at all.
(package private)  void setShowxlabel(boolean showXLabel)
          Set whether to show the X label
(package private)  void setShowylabel(boolean showYLabel)
          Set whether to show the Y label
 void setStringResult(java.lang.String value)
          Implementation of ResultListener method
(package private)  void setTfontname(java.lang.String tfontName)
          Set the title font name, e.g.
(package private)  void setTfontsize(int tfontSize)
          Set the title font size
(package private)  void setTfontstyle(java.lang.String tfontStyle)
          Set the title font style.
(package private)  void setTimeavg(boolean timeAvg)
          Set whether to time average the value shown
(package private)  void setTitle(java.lang.String Title)
          Set the title for the graph.
(package private)  void setup()
          This is needed to setup the graph scales, etc.
(package private)  void setValues()
          This method sets any component values that need to be set.
(package private)  void setXdiffmax(int xDiffMax)
          Set the maximum range on on the X scale.
(package private)  void setXgrid(int xGrid)
          Set this defines # of vertical grid lines
(package private)  void setXlabel(java.lang.String xLabel)
          Set the label for the X axis
(package private)  void setXmark(int xMark)
          Set this defines # of value marks on X axis
(package private)  void setXmax(int xMax)
          Set the maximum value on the X scale
(package private)  void setXmin(int xMin)
          Set the minimum value on the X scale
(package private)  void setXscale(int xrange)
          This method is to set the x-axis scale
(package private)  void setXunits(byte xunits)
          Set the X Units label
(package private)  void setYgrid(int yGrid)
          Set this defines # of horizontal grid lines
(package private)  void setYlabel(java.lang.String yLabel)
          Set the label for the Y axis
(package private)  void setYmark(int yMark)
          Set this defines # of value marks on Y axis
(package private)  void setYmax(long yMax)
          Set the maximum value on the Y scale
(package private)  void setYmaxAsBigInt(java.math.BigInteger yBigmax)
          Set the maximum value on the Y scale as BigInteger.
(package private)  void setYmin(long yMin)
          Set the minimum value on the Y scale
(package private)  void setYminAsBigInt(java.math.BigInteger yBigMin)
          Set the minimum value on the Y scale as BigInteger.
(package private)  void setYunits(java.lang.String yUnits)
          Set the Y units label - unsupported at this time.
 void updateComponent(java.awt.Graphics g)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, paintComponents, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

wid

int wid

ht

int ht

prevwid

int prevwid

prevht

int prevht

labelType

byte labelType

pollInt

double pollInt

isGraphResized

boolean isGraphResized

isXRangeChanged

boolean isXRangeChanged

isScrollBarEnabled

boolean isScrollBarEnabled

timeSpan

boolean timeSpan

storeValues

boolean storeValues

timeout

boolean timeout

novalue

boolean novalue

noOfValues

int noOfValues

maxX1

int maxX1

showErrorMessages

boolean showErrorMessages

YEAR

byte YEAR

MONTH

byte MONTH

DAY

final byte DAY
constant used to mention the xunits in DAY

See Also:
Constant Field Values

HOUR

final byte HOUR
constant used to mention the xunits in HOUR

See Also:
Constant Field Values

MINUTE

final byte MINUTE
constant used to mention the xunits in MINUTE

See Also:
Constant Field Values

SECONDS

final byte SECONDS
constant used to mention the xunits in SECONDS

See Also:
Constant Field Values

WEEK

final byte WEEK
constant used to mention the xunits in WEEK

See Also:
Constant Field Values

Title

java.lang.String Title
The title for the graph.


showTitle

boolean showTitle
Whether to show a title at all. Avoids empty space if set to false.


tfontName

java.lang.String tfontName
The title font name, e.g. Helvetica.


tfontStyle

java.lang.String tfontStyle
The title font style.


tfontSize

int tfontSize
The title font size


tfont

java.awt.Font tfont

titleX

int titleX

titleY

int titleY

bgColor

java.awt.Color bgColor
The background color


fgColor

java.awt.Color fgColor
The foreground color


lineColor

java.awt.Color lineColor
The first line color


xLabel

java.lang.String xLabel
The label for the X axis


isAutoSetXLabel

boolean isAutoSetXLabel
allow the bean to set the label for the X axis by bean itself automatically


yLabel

java.lang.String yLabel
The label for the Y axis


showXLabel

boolean showXLabel
Whether to show the X label


showYLabel

boolean showYLabel
Whether to show the Y label


xUnits

byte xUnits
The X Units label


yUnits

java.lang.String yUnits
The Y units label - unsupported at this time.


lfontName

java.lang.String lfontName
The labels font name, e.g. Helvetica


lfontStyle

java.lang.String lfontStyle
The labels font style.


lfontSize

int lfontSize
The labels font size.


lfont

java.awt.Font lfont

xLabelx

int xLabelx

xLabely

int xLabely

yLabelx

int yLabelx

yLabely

int yLabely

yLabelWid

int yLabelWid

labelHt

int labelHt

xMax

int xMax
The maximum value on the X scale


xMax1

int xMax1

xMin

int xMin
The minimum value on the X scale


xMin1

int xMin1

absTime

boolean absTime
Whether to show relative or absolute time on the X axis


xDiffMax

int xDiffMax
The maximum range on on the X scale. Prevents compression of the graph if set to non-zero. If zero shows all values from the start.


xDiffMax1

int xDiffMax1

yMax

long yMax
The maximum value on the Y scale


yBigMin

double yBigMin
The minimum value on the Y scale


yBigMax

double yBigMax
The maximum value on the Y scale


yMin

long yMin
The minimum value on the Y scale


x0

int x0

y0

int y0

xEnd

int xEnd

yEnd

int yEnd

timeAvg

boolean timeAvg
Whether to time average the value shown


xGrid

int xGrid
This defines # of vertical grid lines


yGrid

int yGrid
This defines # of horizontal grid lines


xGrids

int[] xGrids

yGrids

int[] yGrids

xMark

int xMark
This defines # of value marks on X axis


yMark

int yMark
This defines # of value marks on Y axis


xMarks

int[] xMarks

yMarks

int[] yMarks

xMarkOff

int xMarkOff

yMarkOff

int yMarkOff

markLen

int markLen

dotRad

int dotRad

maxScaleYWid

int maxScaleYWid

data

java.util.Vector[] data
The data to be graphed, i.e. each line is Vector of points (x,y)


olabels

java.lang.String[] olabels

lineLabels

java.lang.String lineLabels
The labels to be used for each oid - separated by | (pipe).


lcolor

java.awt.Color lcolor
The primary line color


lineColors

java.awt.Color[] lineColors

c_index

int c_index

linecolors

java.lang.String linecolors
line colors for multiline - not fully impl.


absoluteCounters

boolean absoluteCounters
boolean for the absolute counters.


check

boolean check

counter64Test

boolean counter64Test

lastValues

java.math.BigInteger[] lastValues

values

java.math.BigInteger[] values

lastValue

java.math.BigInteger lastValue

inComp

boolean inComp

dbuf

java.awt.Image dbuf

graph

java.awt.Graphics graph

graph1

java.awt.Graphics graph1

date

java.util.Date date

startTime

long startTime

line1

java.util.Vector line1

prevTime

int prevTime

noofpages

int noofpages

count

static int count

reset

boolean reset

readGraphFile

boolean readGraphFile

os

java.io.BufferedWriter os

is

java.io.BufferedReader is

valuesLegendOpen

boolean valuesLegendOpen

lastx

int lastx

lasty

int lasty

dbuf2

java.awt.Image dbuf2

time1

int time1
Constructor Detail

LineGraphBeanWrapper

public LineGraphBeanWrapper()
This constructor sets the min size


LineGraphBeanWrapper

public LineGraphBeanWrapper(int w,
                            int h)
Method Detail

addMouseListener

public void addMouseListener(java.awt.event.MouseListener l)
Adds the specified mouse listener to receive mouse events

Overrides:
addMouseListener in class java.awt.Component

removeMouseListener

public void removeMouseListener(java.awt.event.MouseListener l)
Removes the specified mouse listener

Overrides:
removeMouseListener in class java.awt.Component

getTitle

java.lang.String getTitle()
Get the title for the graph.


setTitle

void setTitle(java.lang.String Title)
Set the title for the graph.


getShowtitle

boolean getShowtitle()
Get whether to show a title at all. Avoids empty space if set to false.


setShowtitle

void setShowtitle(boolean showTitle)
Set whether to show a title at all. Avoids empty space if set to false.


getTfontname

java.lang.String getTfontname()
Get the title font name, e.g. Helvetica.


setTfontname

void setTfontname(java.lang.String tfontName)
Set the title font name, e.g. Helvetica.


getTfontstyle

java.lang.String getTfontstyle()
Get the title font style.


setTfontstyle

void setTfontstyle(java.lang.String tfontStyle)
Set the title font style.


getTfontsize

int getTfontsize()
Get the title font size


setTfontsize

void setTfontsize(int tfontSize)
Set the title font size


getBgcolor

java.awt.Color getBgcolor()
Get the background color


setBgcolor

void setBgcolor(java.awt.Color bgColor)
Set the background color


getFgcolor

java.awt.Color getFgcolor()
Get the foreground color


setFgcolor

void setFgcolor(java.awt.Color fgColor)
Set the foreground color


getLinecolor

java.awt.Color getLinecolor()
Get the first line color


setLinecolor

void setLinecolor(java.awt.Color lineColor)
Set the first line color


getXlabel

java.lang.String getXlabel()
Get the label for the X axis


setXlabel

void setXlabel(java.lang.String xLabel)
Set the label for the X axis


setAutoXlabel

void setAutoXlabel(boolean autoset)
set whether the unit value of x axis is changed according to the duration of graph time. For example the duration between the first unit and last unit of the xunits in graph is within the sec,the xunit value will be in seconds only.According to the duration , the xunit value will be in sec, minutes,hour,day,week,month or year.


getAutoXlabel

boolean getAutoXlabel()
get the status whether the bean is able to set the label for the X axis by bean itself automatically


getYlabel

java.lang.String getYlabel()
Get the label for the Y axis


setYlabel

void setYlabel(java.lang.String yLabel)
Set the label for the Y axis


getShowxlabel

boolean getShowxlabel()
Get whether to show the X label


setShowxlabel

void setShowxlabel(boolean showXLabel)
Set whether to show the X label


getShowylabel

boolean getShowylabel()
Get whether to show the Y label


setShowylabel

void setShowylabel(boolean showYLabel)
Set whether to show the Y label


getXunits

byte getXunits()
Get the X Units label


setXunits

void setXunits(byte xunits)
Set the X Units label


getYunits

java.lang.String getYunits()
Get the Y units label - unsupported at this time.


setYunits

void setYunits(java.lang.String yUnits)
Set the Y units label - unsupported at this time.


getLfontname

java.lang.String getLfontname()
Get the labels font name, e.g. Helvetica


setLfontname

void setLfontname(java.lang.String lfontName)
Set the labels font name, e.g. Helvetica


getLfontstyle

java.lang.String getLfontstyle()
Get the labels font style.


setLfontstyle

void setLfontstyle(java.lang.String lfontStyle)
Set the labels font style.


getLfontsize

int getLfontsize()
Get the labels font size.


setLfontsize

void setLfontsize(int lfontSize)
Set the labels font size.


getXmax

int getXmax()
Get the maximum value on the X scale


setXmax

void setXmax(int xMax)
Set the maximum value on the X scale


getXscale

int getXscale()

setXscale

void setXscale(int xrange)
This method is to set the x-axis scale


getXmin

int getXmin()
Get the minimum value on the X scale


setXmin

void setXmin(int xMin)
Set the minimum value on the X scale


getAbstime

boolean getAbstime()
Get whether to show relative or absolute time on the X axis


setAbstime

void setAbstime(boolean absTime)
Set whether to show relative or absolute time on the X axis


getXdiffmax

int getXdiffmax()
Get the maximum range on on the X scale. Prevents compression of the graph if set to non-zero. If zero shows all values from the start.


setXdiffmax

void setXdiffmax(int xDiffMax)
Set the maximum range on on the X scale. Prevents compression of the graph if set to non-zero. If zero shows all values from the start.


getYmax

long getYmax()
Get the maximum value on the Y scale


setYmax

void setYmax(long yMax)
Set the maximum value on the Y scale


getYmaxAsBigInt

java.math.BigInteger getYmaxAsBigInt()
Get the maximum value on the Y scale as BigInteger. Used mainly for Counter64 data type.


setYmaxAsBigInt

void setYmaxAsBigInt(java.math.BigInteger yBigmax)
Set the maximum value on the Y scale as BigInteger. Used mainly for Counter64 data type.


getYminAsBigInt

java.math.BigInteger getYminAsBigInt()
Get the minimum value on the Y scale as BigInteger. Used mainly for Counter64 data type.


setYminAsBigInt

void setYminAsBigInt(java.math.BigInteger yBigMin)
Set the minimum value on the Y scale as BigInteger. Used mainly for Counter64 data type.


getYmin

long getYmin()
Get the minimum value on the Y scale


setYmin

void setYmin(long yMin)
Set the minimum value on the Y scale


getTimeavg

boolean getTimeavg()
Deprecated. Use isTimeavg() instead.

Get whether to time average the value shown.


isTimeavg

boolean isTimeavg()
Get whether to time average the value shown.


setTimeavg

void setTimeavg(boolean timeAvg)
Set whether to time average the value shown


getXgrid

int getXgrid()
Get this defines # of vertical grid lines


setXgrid

void setXgrid(int xGrid)
Set this defines # of vertical grid lines


getYgrid

int getYgrid()
Get this defines # of horizontal grid lines


setYgrid

void setYgrid(int yGrid)
Set this defines # of horizontal grid lines


getXmark

int getXmark()
Get this defines # of value marks on X axis


setXmark

void setXmark(int xMark)
Set this defines # of value marks on X axis


getYmark

int getYmark()
Get this defines # of value marks on Y axis


setYmark

void setYmark(int yMark)
Set this defines # of value marks on Y axis


setDataSize

void setDataSize(int size)
This method will set the number of lines to be plotted in the graph. When the user wants to use setResult(int i, long l) method instead of setResult(ResultEvent e), then this size should be set first before using the setResult(int i, long l).


getLineLabels

java.lang.String getLineLabels()
Get the labels to be used for each oid - separated by | (pipe).


setLineLabels

void setLineLabels(java.lang.String lineLabels)
Set the labels to be used for each oid - separated by | (pipe).


getLcolor

java.awt.Color getLcolor()
Get the primary line color


setLcolor

void setLcolor(java.awt.Color lcolor)
Set the primary line color


getLinecolors

java.lang.String getLinecolors()
Deprecated and Replaced by getLineColors


setLinecolors

void setLinecolors(java.lang.String linecolors)
Depreceted and Replaced by setLineColors


getLineColors

java.awt.Color[] getLineColors()
Get line colors for multiline


setLineColors

void setLineColors(java.awt.Color[] lineColors)
Set line colors for multiline


getAbsoluteCounters

boolean getAbsoluteCounters()
To get whether the value plotted by the graph should be the absolute value or the difference between successive counters.

Returns:
true if the graph will plot the absolute value of the counters and false if the graph will plot the difference between the successive counter values.

setAbsoluteCounters

void setAbsoluteCounters(boolean absoluteCounters)
set whether counter values should be absolute or difference between successive counters. This has an impact on the results of the counter data types only. If it is set to true, the graph will plot the absolute value of the counter. If it is set to false, the graph will plot the difference between successive counter values. This will be useful for plotting the counter values.

Parameters:
absoluteCounter - boolean whether to plot absolute values or not.

setStringResult

public void setStringResult(java.lang.String value)
Implementation of ResultListener method

Specified by:
setStringResult in interface ResultListener

setNumericResult

public void setNumericResult(long num)
Implementation of ResultListener method - plots value

Specified by:
setNumericResult in interface ResultListener

setResult

public void setResult(ResultEvent e)
Implementation of ResultListener method,plots values if more than one

Specified by:
setResult in interface ResultListener

restartGraph

void restartGraph()
Restart the graph for its initial State


mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

setValues

void setValues()
This method sets any component values that need to be set.


setup

void setup()
This is needed to setup the graph scales, etc.


setResult

public void setResult(long diff)
This updates the graph with the new value


setResult

public void setResult(java.math.BigInteger diff)
This updates the graph with the new value


setResult

public void setResult(int lineNum,
                      java.math.BigInteger diff)
This updates the graph with the new value


calculateGrid

void calculateGrid()

setFont

void setFont(java.awt.Font titleFont,
             java.awt.Font labelFont)

paintComponent

public void paintComponent(java.awt.Graphics g)
Overrides:
paintComponent in class javax.swing.JComponent

updateComponent

public void updateComponent(java.awt.Graphics g)

drawGraph

void drawGraph()

getX

int getX(double xval)
Compute the x point from value


getX1

int getX1(double xval)

getY

int getY(double yval)
Compute the y point from value


addPoint

boolean addPoint(int lineNum,
                 double[] nextPoint)

preferredSize

public java.awt.Dimension preferredSize()
Returns the preferred size of this component.

Overrides:
preferredSize in class java.awt.Container

minimumSize

public java.awt.Dimension minimumSize()
Returns the preferred size of this component.

Overrides:
minimumSize in class java.awt.Container

getTimeStr

java.lang.String getTimeStr(long t)
return HH:MM:SS


fmt

java.lang.String fmt(int i)
get two digit values for HH:MM:SS


setResult

void setResult(int lineNum,
               long diff)
This updates the graph with the new value


getFromX

long getFromX(int x)
Compute the value from x point


getFromX1

long getFromX1(int x)

drawValuesLegend

void drawValuesLegend(int x,
                      int y,
                      java.awt.Graphics maing)
draw a box with values at mouse location


getStyleNo

int getStyleNo(java.lang.String style)

getTime

int getTime()

getPollDuration

int getPollDuration()

setPollDuration

void setPollDuration(int time)

setLogEnabled

void setLogEnabled(boolean storeValues)

isLogEnabled

boolean isLogEnabled()

getLogFileName

java.lang.String getLogFileName()

setLogFileName

void setLogFileName(java.lang.String graphFile)

isPopupExists

boolean isPopupExists()

readPollDataFromFile

public void readPollDataFromFile(java.lang.String file)

setShowErrorMessages

public void setShowErrorMessages(boolean showMessages)

getShowErrorMessages

public boolean getShowErrorMessages()

logErrorMessage

void logErrorMessage(java.lang.String error)

logInfoMessage

void logInfoMessage(java.lang.String info)