APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.tools.jconsole

pack-priv Class MemoryTab

extends Tab
implements ActionListener, ItemListener
Class Inheritance
All Implemented Interfaces
java.awt.event.ItemListener, java.util.EventListener, java.awt.event.ActionListener
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, java.awt.event.*, java.io.*, java.lang.management.*, java.lang.reflect.*, java.util.*, java.util.concurrent.*, javax.accessibility.*, javax.management.*, javax.management.openmbean.CompositeData, javax.swing.*, javax.swing.border.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class
private static class

Field Summary

Modifier and TypeField and Description
pack-priv JPanel
private static final Color
private static final String
pack-priv HTMLPane
pack-priv JButton
pack-priv Plotter
private static final Color
private static final String
pack-priv Plotter
private MemoryTab.MemoryOverviewPanel
pack-priv JComboBox<Plotter>
pack-priv ArrayList<Plotter>
pack-priv PlotterPanel
pack-priv MemoryTab.PoolChart
private static final Color
private static final String
pack-priv TimeComboBox
private static final Color
private static final String
Inherited from sun.tools.jconsole.Tab:
vmPanel

Constructor Summary

AccessConstructor and Description
public
MemoryTab(VMPanel vmPanel)

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent ev)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

private void
private String
public void
gc()

pack-priv OverviewPanel[]
public static String
public void
itemStateChanged(ItemEvent ev)

Implements java.awt.event.ItemListener.itemStateChanged.

Invoked when an item has been selected or deselected by the user.

public SwingWorker<?, ?>
Inherited from sun.tools.jconsole.Tab:
disposegetPreferredSizegetVMPanelupdateworkerAdd

Field Detail

bottomPanelback to summary
pack-priv JPanel bottomPanel
committedColorback to summary
private static final Color committedColor
committedKeyback to summary
private static final String committedKey
detailsback to summary
pack-priv HTMLPane details
gcButtonback to summary
pack-priv JButton gcButton
heapPlotterback to summary
pack-priv Plotter heapPlotter
maxColorback to summary
private static final Color maxColor
maxKeyback to summary
private static final String maxKey
nonHeapPlotterback to summary
pack-priv Plotter nonHeapPlotter
overviewPanelback to summary
private MemoryTab.MemoryOverviewPanel overviewPanel
plotterChoiceback to summary
pack-priv JComboBox<Plotter> plotterChoice
plotterListback to summary
pack-priv ArrayList<Plotter> plotterList
plotterPanelback to summary
pack-priv PlotterPanel plotterPanel
poolChartback to summary
pack-priv MemoryTab.PoolChart poolChart
thresholdColorback to summary
private static final Color thresholdColor
thresholdKeyback to summary
private static final String thresholdKey
timeComboBoxback to summary
pack-priv TimeComboBox timeComboBox
usedColorback to summary
private static final Color usedColor
usedKeyback to summary
private static final String usedKey

Constructor Detail

MemoryTabback to summary
public MemoryTab(VMPanel vmPanel)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent ev)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

createPlottersback to summary
private void createPlotters() throws IOException
formatDetailsback to summary
private String formatDetails()
gcback to summary
public void gc()
getOverviewPanelsback to summary
pack-priv OverviewPanel[] getOverviewPanels()

Overrides sun.tools.jconsole.Tab.getOverviewPanels.

getTabNameback to summary
public static String getTabName()
itemStateChangedback to summary
public void itemStateChanged(ItemEvent ev)

Implements java.awt.event.ItemListener.itemStateChanged.

Doc from java.awt.event.ItemListener.itemStateChanged.

Invoked when an item has been selected or deselected by the user. The code written for this method performs the operations that need to occur when an item is selected (or deselected).

newSwingWorkerback to summary
public SwingWorker<?, ?> newSwingWorker()

Overrides sun.tools.jconsole.Tab.newSwingWorker.

sun.tools.jconsole back to summary

private Class MemoryTab.MemoryOverviewPanel

extends OverviewPanel
Class Inheritance

Field Summary

Inherited from sun.tools.jconsole.OverviewPanel:
PLOTTER_COLORVIEW_RANGE

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
updateMemoryInfo(long used, long committed, long max)

Inherited from sun.tools.jconsole.OverviewPanel:
getInfoLabel

Constructor Detail

MemoryOverviewPanelback to summary
pack-priv MemoryOverviewPanel()

Method Detail

updateMemoryInfoback to summary
private void updateMemoryInfo(long used, long committed, long max)
sun.tools.jconsole back to summary

private Class MemoryTab.PoolChart

extends BorderedComponent
implements Accessible, MouseListener
Class Inheritance
All Implemented Interfaces
java.awt.event.MouseListener, java.util.EventListener, javax.accessibility.Accessible

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final int
pack-priv final int
pack-priv final int
pack-priv final Color
pack-priv final Color
pack-priv final int
pack-priv Rectangle
pack-priv final int
pack-priv final int
pack-priv int
pack-priv int
pack-priv Rectangle
pack-priv ArrayList<MemoryTab.PoolPlotter>
pack-priv final Color
pack-priv final int
pack-priv Font
Inherited from sun.tools.jconsole.BorderedComponent:
collapsedcomplabelmoreOrLessButtonvalueLabelStr

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AccessibleContext
getAccessibleContext()

Overrides javax.swing.JPanel.getAccessibleContext.

Implements javax.accessibility.Accessible.getAccessibleContext.

Returns the AccessibleContext associated with this object.

private Rectangle
private Plotter
public Dimension
getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

If the preferredSize has been set to a non-null value just returns it.

public String
getToolTipText(MouseEvent e)

Overrides javax.swing.JComponent.getToolTipText.

Returns the string to be used as the tooltip for event.

public void
mouseClicked(MouseEvent e)

Implements java.awt.event.MouseListener.mouseClicked.

Invoked when the mouse button has been clicked (pressed and released) on a component.

public void
mouseEntered(MouseEvent e)

Implements java.awt.event.MouseListener.mouseEntered.

Invoked when the mouse enters a component.

public void
mouseExited(MouseEvent e)

Implements java.awt.event.MouseListener.mouseExited.

Invoked when the mouse exits a component.

public void
mousePressed(MouseEvent e)

Implements java.awt.event.MouseListener.mousePressed.

Invoked when a mouse button has been pressed on a component.

public void
mouseReleased(MouseEvent e)

Implements java.awt.event.MouseListener.mouseReleased.

Invoked when a mouse button has been released on a component.

public void
paintComponent(Graphics g)

Overrides javax.swing.JComponent.paintComponent.

Calls the UI delegate's paint method, if the UI delegate is non-null.

private void
public void
setValue(int poolIndex, MemoryTab.PoolPlotter poolPlotter, long value, long threshold, long max)

Inherited from sun.tools.jconsole.BorderedComponent:
actionPerformeddoLayoutgetMinimumSizesetComponentsetValueLabel

Field Detail

barGapback to summary
pack-priv final int barGap
barHeightback to summary
pack-priv final int barHeight
barWidthback to summary
pack-priv final int barWidth
bottomMarginback to summary
pack-priv final int bottomMargin
greenBarback to summary
pack-priv final Color greenBar
greenBarBackgroundback to summary
pack-priv final Color greenBarBackground
groupGapback to summary
pack-priv final int groupGap
heapRectback to summary
pack-priv Rectangle heapRect
heightback to summary
pack-priv final int height

Hides java.awt.Component.height.

leftMarginback to summary
pack-priv final int leftMargin
nHeapPoolsback to summary
pack-priv int nHeapPools
nNonHeapPoolsback to summary
pack-priv int nNonHeapPools
nonHeapRectback to summary
pack-priv Rectangle nonHeapRect
poolPlottersback to summary
pack-priv ArrayList<MemoryTab.PoolPlotter> poolPlotters
redBarBackgroundback to summary
pack-priv final Color redBarBackground
rightMarginback to summary
pack-priv final int rightMargin
smallFontback to summary
pack-priv Font smallFont

Constructor Detail

PoolChartback to summary
public PoolChart()

Method Detail

getAccessibleContextback to summary
public AccessibleContext getAccessibleContext()

Overrides javax.swing.JPanel.getAccessibleContext.

Implements javax.accessibility.Accessible.getAccessibleContext.

Doc from javax.accessibility.Accessible.getAccessibleContext.

Returns the AccessibleContext associated with this object. In most cases, the return value should not be null if the object implements interface Accessible. If a component developer creates a subclass of an object that implements Accessible, and that subclass is not Accessible, the developer should override the getAccessibleContext method to return null.

getBarRectback to summary
private Rectangle getBarRect(MemoryTab.PoolPlotter poolPlotter)
getPlotterback to summary
private Plotter getPlotter(MouseEvent e)
getPreferredSizeback to summary
public Dimension getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

Doc from javax.swing.JComponent.getPreferredSize.

If the preferredSize has been set to a non-null value just returns it. If the UI delegate's getPreferredSize method returns a non null value then return that; otherwise defer to the component's layout manager.

getToolTipTextback to summary
public String getToolTipText(MouseEvent e)

Overrides javax.swing.JComponent.getToolTipText.

Doc from javax.swing.JComponent.getToolTipText.

Returns the string to be used as the tooltip for event. By default this returns any string set using setToolTipText. If a component provides more extensive API to support differing tooltips at different locations, this method should be overridden.

mouseClickedback to summary
public void mouseClicked(MouseEvent e)

Implements java.awt.event.MouseListener.mouseClicked.

Doc from java.awt.event.MouseListener.mouseClicked.

Invoked when the mouse button has been clicked (pressed and released) on a component.

mouseEnteredback to summary
public void mouseEntered(MouseEvent e)

Implements java.awt.event.MouseListener.mouseEntered.

Doc from java.awt.event.MouseListener.mouseEntered.

Invoked when the mouse enters a component.

mouseExitedback to summary
public void mouseExited(MouseEvent e)

Implements java.awt.event.MouseListener.mouseExited.

Doc from java.awt.event.MouseListener.mouseExited.

Invoked when the mouse exits a component.

mousePressedback to summary
public void mousePressed(MouseEvent e)

Implements java.awt.event.MouseListener.mousePressed.

Doc from java.awt.event.MouseListener.mousePressed.

Invoked when a mouse button has been pressed on a component.

mouseReleasedback to summary
public void mouseReleased(MouseEvent e)

Implements java.awt.event.MouseListener.mouseReleased.

Doc from java.awt.event.MouseListener.mouseReleased.

Invoked when a mouse button has been released on a component.

paintComponentback to summary
public void paintComponent(Graphics g)

Overrides javax.swing.JComponent.paintComponent.

Doc from javax.swing.JComponent.paintComponent.

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 invoke super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in an 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.

paintPoolBarback to summary
private void paintPoolBar(Graphics g, MemoryTab.PoolPlotter poolPlotter)
setValueback to summary
public void setValue(int poolIndex, MemoryTab.PoolPlotter poolPlotter, long value, long threshold, long max)
sun.tools.jconsole back to summary

protected Class MemoryTab.PoolChart.AccessiblePoolChart

extends AccessibleJPanel
Class Inheritance

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public String
getAccessibleName()

Overrides javax.swing.JComponent.AccessibleJComponent.getAccessibleName.

Gets the accessible name of this object.

Inherited from javax.swing.JPanel.AccessibleJPanel:
getAccessibleRole

Constructor Detail

AccessiblePoolChartback to summary
protected AccessiblePoolChart()

Method Detail

getAccessibleNameback to summary
public String getAccessibleName()

Overrides javax.swing.JComponent.AccessibleJComponent.getAccessibleName.

Doc from javax.swing.JComponent.AccessibleJComponent.getAccessibleName.

Gets the accessible name of this object. This should almost never return java.awt.Component.getName(), as that generally isn't a localized name, and doesn't have meaning for the user. If the object is fundamentally a text object (such as a menu item), the accessible name should be the text of the object (for example, "save"). If the object has a tooltip, the tooltip text may also be an appropriate String to return.

sun.tools.jconsole back to summary

private Class MemoryTab.PoolPlotter

extends Plotter
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv boolean
pack-priv long
pack-priv String
pack-priv ObjectName
pack-priv long
pack-priv long
Inherited from sun.tools.jconsole.Plotter:
ARRAY_SIZE_INCREMENTbgColorDAYdefaultColorHOURMINUTErangeNamesrangeValuesSECOND

Constructor Summary

AccessConstructor and Description
public
PoolPlotter(ObjectName objectName, String name, boolean isHeap)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.awt.Component.toString.

Returns a string representation of this component and its values.

Inherited from sun.tools.jconsole.Plotter:
actionPerformedaddValuescreateSequencegetAccessibleContextgetComponentPopupMenugetLastTimeStampgetLastValuegetValuegetViewRangepaintComponentpropertyChangesetDecimalssetIsPlottedsetUnitsetUseDashedTransitionssetViewRange

Field Detail

barXback to summary
pack-priv int barX
isHeapback to summary
pack-priv boolean isHeap
maxback to summary
pack-priv long max
nameback to summary
pack-priv String name

Hides java.awt.Component.name.

objectNameback to summary
pack-priv ObjectName objectName
thresholdback to summary
pack-priv long threshold
valueback to summary
pack-priv long value

Constructor Detail

PoolPlotterback to summary
public PoolPlotter(ObjectName objectName, String name, boolean isHeap)

Method Detail

toStringback to summary
public String toString()

Overrides java.awt.Component.toString.

Doc from java.awt.Component.toString.

Returns a string representation of this component and its values.