|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.adventnet.snmp.ui.LineGraphBean
LineGraphBean,a bean is used to plot real-time data which supports multi-line graphing. It is used to plot SNMP data, since it implements the ResultListener, that makes it easy to connect to the SNMP data sources in the beans package.To use this component, connect it to a data source like SnmpPoller. For example,
LineGraphBean lineGraph = new LineGraphBean(); SnmpPoller poller = new SnmpPoller();
// set poller properties poller.setTargetHost("localhost"); poller.setObjectID("1.3.0");
if (poller.getSnmpVersion() == poller.VERSION_3) { poller.setPrincipal(userName); // Set the user who made this request poller.setAuthPassword(authPassword); // Set password for authentication poller.setPrivPassword(privPassword); // Set password for privacy poller.setAuthProtocol(authProtocol); // one SHA or MD5 poller.create_v3_tables(); // create SnmpEngineEntry and USMUserEntry } else poller.setCommunity(community);
poller.setPollInterval(5);
// set graph properties graph.setTitle("Graphing sysUpTime on localhost"); graph.setLineLabels("sysUpTime.0");
// attach the graph to the poller poller.addResultListener(graph); poller.setSendTimeoutEvents(true); //incase of Timeout.
The LineGraphBean can also be connected to any data sources for real time plotting data. It also supports logging of data to a text file.
Refer the example lineGraphDemo.java provided in the uiapplications directory.
SnmpPoller
,
Serialized FormNested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
static byte |
DAY
constant used to mention the xunits in DAY |
static byte |
HOUR
constant used to mention the xunits in HOUR |
static byte |
MINUTE
constant used to mention the xunits in MINUTE |
static byte |
MONTH
constant used to mention the xunits in MONTH |
static byte |
SECONDS
constant used to mention the xunits in SECONDS |
static byte |
WEEK
constant used to mention the xunits in WEEK |
static byte |
YEAR
constant used to mention the xunits in YEAR |
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 | |
LineGraphBean()
Constructs a LineGraphBean with default width and height. |
|
LineGraphBean(int width,
int height)
Constructs a LineGraphBean with user defined width and height. |
Method Summary | |
void |
addMouseListener(java.awt.event.MouseListener l)
Adds the specified mouse listener to receive mouse events. |
boolean |
getAbsoluteCounters()
To get whether the value plotted by the graph should be the absolute value or the difference between successive counters. |
boolean |
getAbstime()
Get whether to show relative or absolute time on the X axis. |
boolean |
getAutoXlabel()
Get the status whether the bean is able to set the label for the X axis by bean itself automatically. |
java.awt.Color |
getBgcolor()
Get the background color. |
java.awt.Color |
getFgcolor()
Get the foreground color. |
java.awt.Color |
getLcolor()
Get the primary line color. |
java.lang.String |
getLfontname()
Get the labels font name, e.g Helvetica. |
int |
getLfontsize()
Get the labels font size. |
java.lang.String |
getLfontstyle()
Get the labels font style. |
java.awt.Color |
getLinecolor()
Get the first line color. |
java.lang.String |
getLinecolors()
Deprecated and Replaced by getLineColors. |
java.awt.Color[] |
getLineColors()
Get line colors for multiline |
java.lang.String |
getLineLabels()
Returns the labels to be used for each oid - separated by | (pipe) or space separated. |
java.lang.String |
getLogFileName()
Returns the current log file name. |
int |
getPollDuration()
Returns the poll Duration(in seconds). |
boolean |
getShowErrorMessage()
Gets the Error Message status. |
boolean |
getShowtitle()
Get whether to show a title at all. |
boolean |
getShowxlabel()
Get whether to show the X label. |
boolean |
getShowylabel()
Get whether to show the Y label. |
java.lang.String |
getTfontname()
Get the title font name, e.g Helvetica. |
int |
getTfontsize()
Get the title font size. |
java.lang.String |
getTfontstyle()
Get the title font style. |
boolean |
getTimeavg()
Deprecated. Use isTimeavg() instead. |
java.lang.String |
getTitle()
Get the title for the graph. |
int |
getXdiffmax()
Get the maximum range on on the X scale. |
int |
getXgrid()
Returns the number of vertical grid lines in the graph. |
java.lang.String |
getXlabel()
Get the label for the x axis |
int |
getXmark()
Returns the number of value marks on X axis. |
int |
getXmax()
Get the maximum value on the X scale. |
int |
getXmin()
Get the minimum value on the X scale |
byte |
getXunits()
Get the X Units label. |
int |
getYgrid()
Returns the number of horizontal grid lines. |
java.lang.String |
getYlabel()
Get the label for the y axis |
int |
getYmark()
Returns the number of value marks on Y axis. |
long |
getYmax()
Get the maximum value on the Y scale. |
java.math.BigInteger |
getYmaxAsBigInt()
![]() |
long |
getYmin()
Get the minimum value on the Y scale. |
java.math.BigInteger |
getYminAsBigInt()
Get ![]() |
java.lang.String |
getYunits()
Get the Y units label - unsupported at this time. |
boolean |
isLogEnabled()
To check whether the flag is set for storing the plotted values in a flat file. |
boolean |
isTimeavg()
Get whether to time average the value shown |
java.awt.Dimension |
minimumSize()
Returns the minimum size of this component. |
void |
paintComponent(java.awt.Graphics g)
To paint the component. |
java.awt.Dimension |
preferredSize()
Returns the preferred size of this component. |
void |
readPollDataFromFile(java.lang.String file)
This method reads the data from the file given as string argument for this method and polls the data off-line. |
void |
removeMouseListener(java.awt.event.MouseListener l)
Removes the specified mouse listener |
void |
restartGraph()
Restart the graph for its initial State. |
void |
setAbsoluteCounters(boolean absoluteCounters)
set whether counter values should be absolute or difference between successive counters. |
void |
setAbstime(boolean absTime)
Set whether to show relative or absolute time on the X axis |
void |
setAutoXlabel(boolean autoset)
set whether the unit value of x axis is changed according to the duration of graph time. |
void |
setBgcolor(java.awt.Color bgColor)
Set the background color |
void |
setDataSize(int size)
This method will set the number of lines to be plotted in the graph. |
void |
setFgcolor(java.awt.Color fgColor)
Set the foreground color |
void |
setFont(java.awt.Font titleFont,
java.awt.Font labelFont)
sets the font for the title and label. |
void |
setLcolor(java.awt.Color lcolor)
Set the primary line color. |
void |
setLfontname(java.lang.String lfontName)
Set the labels font name, e.g Helvetica. |
void |
setLfontsize(int lfontSize)
Set the labels font size. |
void |
setLfontstyle(java.lang.String lfontStyle)
Set the labels font style. |
void |
setLinecolor(java.awt.Color lineColor)
Set the first line color |
void |
setLineColors(java.awt.Color[] lineColors)
Set line colors for multiline. |
void |
setLinecolors(java.lang.String linecolors)
Deprecated and Replaced by setLineColors. |
void |
setLineLabels(java.lang.String lineLabels)
Set the labels to be used for each oid - separated by |(pipe) or space separated. |
void |
setLogEnabled(boolean storeValues)
Set the flag whether or not to store the plotted values in a flat file. |
void |
setLogFileName(java.lang.String graphFile)
Set the log File name. |
void |
setNumericResult(long num)
Implementation of ResultListener method - plots value incase of single value |
void |
setPollDuration(int time)
Set the poll Duration(in seconds), upto which the user wants the LineGraphBean to plot for polled values. |
void |
setResult(java.math.BigInteger diff)
![]() |
void |
setResult(int lineNum,
java.math.BigInteger diff)
![]() |
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 values |
void |
setShowErrorMessages(boolean showMessage)
Enables or Disables error messages dialog. |
void |
setShowtitle(boolean showTitle)
Set whether to show a title at all. |
void |
setShowxlabel(boolean showXLabel)
Set whether to show the X label |
void |
setShowylabel(boolean showYLabel)
Set whether to show the Y label. |
void |
setStringResult(java.lang.String value)
Implementation of ResultListener method |
void |
setTfontname(java.lang.String tfontName)
Set the title font name, e.g Helvetica. |
void |
setTfontsize(int tfontSize)
Set the title font size. |
void |
setTfontstyle(java.lang.String tfontStyle)
Set the title font style. |
void |
setTimeavg(boolean timeAvg)
Set whether to time average the value shown. |
void |
setTitle(java.lang.String title)
Sets the title for the graph. |
void |
setValues()
This method sets any component values that need to be set. |
void |
setXdiffmax(int xDiffMax)
Set the maximum range on the X scale. |
void |
setXgrid(int xGrid)
Set the number of vertical grid lines in the graph. |
void |
setXlabel(java.lang.String xLabel)
Set the label for the x axis |
void |
setXmark(int xMark)
Set the number of value marks on X axis. |
void |
setXmax(int xMax)
Set the maximum value on the X scale |
void |
setXmin(int xMin)
Set the minimum value on the X scale |
void |
setXunits(byte xunits)
Set the X Units label. |
void |
setYgrid(int yGrid)
Set the number of horizontal grid lines. |
void |
setYlabel(java.lang.String yLabel)
Set the label for the Y axis. |
void |
setYmark(int yMark)
Set the number of value marks on Y axis. |
void |
setYmax(long yMax)
Set the maximum value on the Y scale. |
void |
setYmaxAsBigInt(java.math.BigInteger yBigmax)
Set ![]() |
void |
setYmin(long yMin)
Set the minimum value on the Y scale. |
void |
setYminAsBigInt(java.math.BigInteger yBigMin)
Set ![]() |
void |
setYunits(java.lang.String yUnits)
Set the Y units label - unsupported at this time. |
void |
updateComponent(java.awt.Graphics g)
Updates the component. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, paintComponents, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseMotionListener, removeMouseWheelListener, 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 |
public static final byte YEAR
public static final byte MONTH
public static final byte DAY
public static final byte HOUR
public static final byte MINUTE
public static final byte SECONDS
public static final byte WEEK
Constructor Detail |
public LineGraphBean()
public LineGraphBean(int width, int height)
#LineGraphBean.
Method Detail |
public void addMouseListener(java.awt.event.MouseListener l)
addMouseListener
in class java.awt.Component
l
- the mouse listener.removeMouseListener(java.awt.event.MouseListener)
public void removeMouseListener(java.awt.event.MouseListener l)
removeMouseListener
in class java.awt.Component
l
- the mouse listener.addMouseListener(java.awt.event.MouseListener)
public boolean getAbsoluteCounters()
public void setAbsoluteCounters(boolean absoluteCounters)
public void setTitle(java.lang.String title)
title
- the title of the graph.getTitle()
public java.lang.String getTitle()
setTitle(java.lang.String)
public boolean getShowtitle()
#setShowTitle
public void setShowtitle(boolean showTitle)
showTitle
- boolean whether to show title or not.#getShowTitle
public java.lang.String getTfontname()
setTfontname(java.lang.String)
public void setTfontname(java.lang.String tfontName)
tfontName
- fontname.getTfontname()
public java.lang.String getTfontstyle()
setTfontstyle(java.lang.String)
public void setTfontstyle(java.lang.String tfontStyle)
tfontStyle
- string which represents the style of the font.getTfontstyle()
public int getTfontsize()
setTfontsize(int)
public void setTfontsize(int tfontSize)
tfontSize
- font size greater than zero.getTfontsize()
public java.awt.Color getBgcolor()
setBgcolor(java.awt.Color)
public void setBgcolor(java.awt.Color bgColor)
bgColor
- color of the background.getBgcolor()
public java.awt.Color getFgcolor()
setFgcolor(java.awt.Color)
public void setFgcolor(java.awt.Color fgColor)
fgColor
- color of the foreground.getFgcolor()
public java.awt.Color getLinecolor()
setLinecolor(java.awt.Color)
,
getLcolor()
,
setLcolor(java.awt.Color)
public void setLinecolor(java.awt.Color lineColor)
lineColor
- first line color.getLinecolor()
,
getLcolor()
,
setLcolor(java.awt.Color)
public java.lang.String getXlabel()
setXlabel(java.lang.String)
,
setAutoXlabel(boolean)
,
getAutoXlabel()
,
getShowxlabel()
public void setXlabel(java.lang.String xLabel)
xLabel
- the label of the x-axis.getXlabel()
,
setAutoXlabel(boolean)
,
getAutoXlabel()
,
setShowxlabel(boolean)
public boolean getAutoXlabel()
setAutoXlabel(boolean)
,
getShowxlabel()
public void setAutoXlabel(boolean autoset)
autoset
- boolean whether to set the unit values by the bean itself.getAutoXlabel()
,
setShowxlabel(boolean)
public java.lang.String getYlabel()
setYlabel(java.lang.String)
,
getShowylabel()
public void setYlabel(java.lang.String yLabel)
yLabel
- the label of the y-axis.getYlabel()
,
setShowylabel(boolean)
public boolean getShowxlabel()
getXlabel()
,
setShowxlabel(boolean)
public void setShowxlabel(boolean showXLabel)
showXLabel
- boolean which sets whether to show x-label or not.setXlabel(java.lang.String)
,
getShowxlabel()
public boolean getShowylabel()
getYlabel()
,
setShowylabel(boolean)
public void setShowylabel(boolean showYLabel)
showYLabel
- boolean which sets whether to show y-label or not.setYlabel(java.lang.String)
,
getShowylabel()
public byte getXunits()
setXunits(byte)
,
YEAR
,
MONTH
,
DAY
,
HOUR
,
MINUTE
,
SECONDS
,
WEEK
public void setXunits(byte xunits)
xunits
- byte value of the x-unitsgetXunits()
,
YEAR
,
MONTH
,
DAY
,
HOUR
,
MINUTE
,
SECONDS
,
WEEK
public java.lang.String getYunits()
public void setYunits(java.lang.String yUnits)
public java.lang.String getLfontname()
setLfontname(java.lang.String)
public void setLfontname(java.lang.String lfontName)
lfontName
- fontname.getLfontname()
public java.lang.String getLfontstyle()
setLfontstyle(java.lang.String)
public void setLfontstyle(java.lang.String lfontStyle)
lfontStyle
- fontstyle.getLfontstyle()
public int getLfontsize()
setLfontsize(int)
public void setLfontsize(int lfontSize)
lfontSize
- fontsize greater than zero.getLfontsize()
public int getXmax()
setXmax(int)
,
getXdiffmax()
public void setXmax(int xMax)
xMax
- the int value for the X-axis maximumgetXmax()
,
setXdiffmax(int)
public int getXmin()
setXmin(int)
public void setXmin(int xMin)
xMin
- the int value for the X-axis minimumgetXmin()
public boolean getAbstime()
setAbstime(boolean)
public void setAbstime(boolean absTime)
absTime
- boolean whether to show the time in absolute or relativegetAbstime()
public int getXdiffmax()
setXdiffmax(int)
,
getXmax()
public void setXdiffmax(int xDiffMax)
xDiffMax
- value of the x-axis diffmax.getXdiffmax()
,
setXmax(int)
,
setPollDuration(int)
public long getYmax()
setYmax(long)
public void setYmax(long yMax)
yMax
- max value of the Y-axis.getYmax()
public java.math.BigInteger getYmaxAsBigInt()
setYmaxAsBigInt(java.math.BigInteger)
,
setYmax(long)
public void setYmaxAsBigInt(java.math.BigInteger yBigmax)
getYmaxAsBigInt()
,
getYmax()
public long getYmin()
setYmin(long)
public void setYmin(long yMin)
yMin
- the minimum value of the y-axis.getYmin()
public java.math.BigInteger getYminAsBigInt()
setYminAsBigInt(java.math.BigInteger)
,
setYmin(long)
public void setYminAsBigInt(java.math.BigInteger yBigMin)
yBigMin
- the minimum value of the y-axis.getYminAsBigInt()
,
getYmin()
public boolean getTimeavg()
public boolean isTimeavg()
setTimeavg(boolean)
public void setTimeavg(boolean timeAvg)
timeAvg
- boolean value whether to plot the average over time.isTimeavg()
public int getXgrid()
setXgrid(int)
public void setXgrid(int xGrid)
xGrid
- number of vertical grids.getXgrid()
public int getYgrid()
#setYgrids
public void setYgrid(int yGrid)
yGrid
- number of horizontal grid lines.#getYgrids
public int getXmark()
setXmark(int)
public void setXmark(int xMark)
xMark
- the number of x-markings.getXmark()
public int getYmark()
setYmark(int)
public void setYmark(int yMark)
yMark
- the number of y-markingsgetYmark()
public void setDataSize(int size)
size
- the size of the data or the no of lines.setResult(int lineNum, long diff)
public java.lang.String getLineLabels()
setLineLabels(java.lang.String)
public void setLineLabels(java.lang.String lineLabels)
lineLabels
- the string representing the lineLabels for each oid separated by (|) or space separatedgetLineLabels()
public java.awt.Color getLcolor()
setLcolor(java.awt.Color)
,
getLinecolor()
,
setLinecolor(java.awt.Color)
public void setLcolor(java.awt.Color lcolor)
lcolor
- the color of the first line.getLcolor()
,
getLinecolor()
,
setLinecolor(java.awt.Color)
public java.awt.Color[] getLineColors()
setLineColors(java.awt.Color[])
public java.lang.String getLinecolors()
public void setLineColors(java.awt.Color[] lineColors)
lineColors
- the color array specifying the color for the lines to be plotted.getLineColors()
public void setLinecolors(java.lang.String linecolors)
public void setStringResult(java.lang.String value)
setStringResult
in interface ResultListener
value
- the string value polled.public void setNumericResult(long num)
setNumericResult
in interface ResultListener
num
- value to update in the graph.public void setResult(ResultEvent e)
setResult
in interface ResultListener
e
- ResultEvent.public void restartGraph()
public void setValues()
public void setResult(long diff)
diff
- the long value to update.setResult(int lineNum, long diff)
,
setResult(int lineNum, BigInteger diff)
public void setResult(java.math.BigInteger diff)
diff
- the BigInteger value to update.setResult(int lineNum, long diff)
,
setResult(int lineNum, BigInteger diff)
public void setFont(java.awt.Font titleFont, java.awt.Font labelFont)
titleFont
- font for the title.labelFont
- font for the label.setTfontname(java.lang.String)
,
setTfontstyle(java.lang.String)
,
setTfontsize(int)
,
setLfontname(java.lang.String)
,
setLfontstyle(java.lang.String)
,
setLfontsize(int)
public java.awt.Dimension preferredSize()
preferredSize
in class java.awt.Container
minimumSize()
public java.awt.Dimension minimumSize()
minimumSize
in class java.awt.Container
preferredSize()
public void setResult(int lineNum, long diff)
lineNum
- the specified line to plotdiff
- the long value for the specified line.setDataSize(int)
public void setResult(int lineNum, java.math.BigInteger diff)
lineNum
- the specified line to plotdiff
- the BigInteger value for the specified line.setDataSize(int)
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
g
- graphics object.updateComponent(java.awt.Graphics)
public void updateComponent(java.awt.Graphics g)
g
- graphics object.paintComponent(java.awt.Graphics)
public int getPollDuration()
public void setPollDuration(int time)
time
- the maximum poll duration.getPollDuration()
public void setLogEnabled(boolean storeValues)
storeValues
- boolean whether to log the values or not.isLogEnabled()
,
setLogFileName(java.lang.String)
public boolean isLogEnabled()
setLogEnabled(boolean)
,
setLogFileName(java.lang.String)
public java.lang.String getLogFileName()
isLogEnabled()
,
setLogFileName(java.lang.String)
public void setLogFileName(java.lang.String graphFile)
setLogEnabled(boolean)
,
getLogFileName()
public void readPollDataFromFile(java.lang.String file)
Time1 oid1 val1 oid2 val2 oid3 val3 .....
Time2 oid1 val1 oid2 val2 oid3 val3...
public void setShowErrorMessages(boolean showMessage)
public boolean getShowErrorMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |