public class

Plotter

extends JComponent
implements ActionListener PropertyChangeListener Accessible
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ sun.tools.jconsole.Plotter
Known Direct Subclasses

Summary

Nested Classes
class Plotter.AccessiblePlotter  
enum Plotter.Unit  
[Expand]
Inherited Constants
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
[Expand]
Inherited Fields
From class javax.swing.JComponent
Public Constructors
Plotter()
Plotter(Plotter.Unit unit)
Plotter(Plotter.Unit unit, int decimals)
Public Methods
void actionPerformed(ActionEvent ev)
Invoked when an action occurs.
synchronized void addValues(long time, long... values)
void createSequence(String key, String name, Color color, boolean isPlotted)
AccessibleContext getAccessibleContext()
Returns the AccessibleContext associated with this JComponent.
JPopupMenu getComponentPopupMenu()
Returns JPopupMenu that assigned for this component.
int getViewRange()
void paintComponent(Graphics g)
Calls the UI delegate's paint method, if the UI delegate is non-null.
void propertyChange(PropertyChangeEvent ev)
This method gets called when a bound property is changed.
void setDecimals(int decimals)
void setIsPlotted(String key, boolean isPlotted)
void setUnit(Plotter.Unit unit)
void setUseDashedTransitions(String key, boolean b)
void setViewRange(int minutes)
[Expand]
Inherited Methods
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.event.ActionListener
From interface java.awt.image.ImageObserver
From interface java.beans.PropertyChangeListener
From interface javax.accessibility.Accessible

Public Constructors

public Plotter ()

public Plotter (Plotter.Unit unit)

public Plotter (Plotter.Unit unit, int decimals)

Public Methods

public void actionPerformed (ActionEvent ev)

Invoked when an action occurs.

public synchronized void addValues (long time, long... values)

public void createSequence (String key, String name, Color color, boolean isPlotted)

public AccessibleContext getAccessibleContext ()

Returns the AccessibleContext associated with this JComponent. The method implemented by this base class returns null. Classes that extend JComponent should implement this method to return the AccessibleContext associated with the subclass.

Returns
  • the AccessibleContext of this JComponent

public JPopupMenu getComponentPopupMenu ()

Returns JPopupMenu that assigned for this component. If this component does not have a JPopupMenu assigned to it and getInheritsPopupMenu is true, this will return getParent().getComponentPopupMenu() (assuming the parent is valid.)

Returns
  • JPopupMenu assigned for this component or null if no popup assigned

public int getViewRange ()

Returns
  • the displayed time range in minutes, or -1 for all data

public void paintComponent (Graphics g)

Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate).

If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should not alter the clip Rectangle or modify the transform. If you need to do these operations you may find it easier to create a new Graphics from the passed in Graphics and manipulate it. Further, if you do not invoker super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in a non-opaque color. If you do not honor the opaque property you will likely see visual artifacts.

The passed in Graphics object might have a transform other than the identify transform installed on it. In this case, you might get unexpected results if you cumulatively apply another transform.

Parameters
g the Graphics object to protect

public void propertyChange (PropertyChangeEvent ev)

This method gets called when a bound property is changed.

Parameters
ev A PropertyChangeEvent object describing the event source and the property that has changed.

public void setDecimals (int decimals)

public void setIsPlotted (String key, boolean isPlotted)

public void setUnit (Plotter.Unit unit)

public void setUseDashedTransitions (String key, boolean b)

public void setViewRange (int minutes)

Parameters
minutes the displayed time range in minutes, or -1 to diaplay all data