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

pack-priv Class ThreadTab

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

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 JTextField
pack-priv long
pack-priv DefaultListModel<Long>
pack-priv JLabel
pack-priv HashMap<Long, String>
private long[]
private ThreadTab.ThreadOverviewPanel
private static final Color
private static final String
private boolean
private static final Border
private static final Color
private static final String
pack-priv JTabbedPane
pack-priv PlotterPanel
pack-priv JSplitPane
pack-priv TimeComboBox
Inherited from sun.tools.jconsole.Tab:
vmPanel

Constructor Summary

AccessConstructor and Description
public
ThreadTab(VMPanel vmPanel)

Method Summary

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

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

public void
changedUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.changedUpdate.

Gives notification that an attribute or set of attributes changed.

private void
private void
public Long[][]
pack-priv OverviewPanel[]
public static String
public void
insertUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.insertUpdate.

Gives notification that there was an insert into the document.

public SwingWorker<?, ?>
public void
removeUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.removeUpdate.

Gives notification that a portion of the document has been removed.

public void
valueChanged(ListSelectionEvent ev)

Implements javax.swing.event.ListSelectionListener.valueChanged.

Called whenever the value of the selection changes.

Inherited from sun.tools.jconsole.Tab:
disposegetPreferredSizegetVMPanelupdateworkerAdd

Field Detail

filterTFback to summary
pack-priv JTextField filterTF
lastSelectedback to summary
pack-priv long lastSelected
listModelback to summary
pack-priv DefaultListModel<Long> listModel
messageLabelback to summary
pack-priv JLabel messageLabel
nameCacheback to summary
pack-priv HashMap<Long, String> nameCache
oldThreadsback to summary
private long[] oldThreads
overviewPanelback to summary
private ThreadTab.ThreadOverviewPanel overviewPanel
peakColorback to summary
private static final Color peakColor
peakKeyback to summary
private static final String peakKey
plotterListeningback to summary
private boolean plotterListening
thinEmptyBorderback to summary
private static final Border thinEmptyBorder
threadCountColorback to summary
private static final Color threadCountColor
threadCountKeyback to summary
private static final String threadCountKey
threadListTabbedPaneback to summary
pack-priv JTabbedPane threadListTabbedPane
threadMeterback to summary
pack-priv PlotterPanel threadMeter
threadsSplitPaneback to summary
pack-priv JSplitPane threadsSplitPane
timeComboBoxback to summary
pack-priv TimeComboBox timeComboBox

Constructor Detail

ThreadTabback to summary
public ThreadTab(VMPanel vmPanel)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent evt)

Implements java.awt.event.ActionListener.actionPerformed.

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

Invoked when an action occurs.

changedUpdateback to summary
public void changedUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.changedUpdate.

Doc from javax.swing.event.DocumentListener.changedUpdate.

Gives notification that an attribute or set of attributes changed.

detectDeadlockback to summary
private void detectDeadlock()
doUpdateback to summary
private void doUpdate()
getDeadlockedThreadIdsback to summary
public Long[][] getDeadlockedThreadIds() throws IOException
getOverviewPanelsback to summary
pack-priv OverviewPanel[] getOverviewPanels()

Overrides sun.tools.jconsole.Tab.getOverviewPanels.

getTabNameback to summary
public static String getTabName()
insertUpdateback to summary
public void insertUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.insertUpdate.

Doc from javax.swing.event.DocumentListener.insertUpdate.

Gives notification that there was an insert into the document. The range given by the DocumentEvent bounds the freshly inserted region.

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

Overrides sun.tools.jconsole.Tab.newSwingWorker.

removeUpdateback to summary
public void removeUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.removeUpdate.

Doc from javax.swing.event.DocumentListener.removeUpdate.

Gives notification that a portion of the document has been removed. The range is given in terms of what the view last saw (that is, before updating sticky positions).

valueChangedback to summary
public void valueChanged(ListSelectionEvent ev)

Implements javax.swing.event.ListSelectionListener.valueChanged.

Doc from javax.swing.event.ListSelectionListener.valueChanged.

Called whenever the value of the selection changes.

sun.tools.jconsole back to summary

private Class ThreadTab.PromptingTextField

extends JTextField
implements FocusListener
Class Inheritance
All Implemented Interfaces
java.awt.event.FocusListener, java.util.EventListener

Field Summary

Modifier and TypeField and Description
pack-priv Color
private String
pack-priv boolean
Inherited from javax.swing.JTextField:
notifyAction

Constructor Summary

AccessConstructor and Description
public
PromptingTextField(String prompt, int columns)

Method Summary

Modifier and TypeMethod and Description
public void
focusGained(FocusEvent e)

Implements java.awt.event.FocusListener.focusGained.

Invoked when a component gains the keyboard focus.

public void
focusLost(FocusEvent e)

Implements java.awt.event.FocusListener.focusLost.

Invoked when a component loses the keyboard focus.

public String
getText()

Overrides javax.swing.text.JTextComponent.getText.

Returns the text contained in this TextComponent.

public void
revalidate()

Overrides javax.swing.JComponent.revalidate.

Supports deferred automatic layout.

private void
Inherited from javax.swing.JTextField:
actionPropertyChangedaddActionListenerconfigurePropertiesFromActioncreateActionPropertyChangeListenercreateDefaultModelfireActionPerformedgetAccessibleContextgetActiongetActionListenersgetActionsgetColumnsgetColumnWidthgetHorizontalAlignmentgetHorizontalVisibilitygetPreferredSizegetScrollOffsetgetUIClassIDisValidateRootparamStringpostActionEventremoveActionListenerscrollRectToVisiblesetActionsetActionCommandsetColumnssetDocumentsetFontsetHorizontalAlignmentsetScrollOffset

Field Detail

fgback to summary
pack-priv Color fg
promptback to summary
private String prompt
promptRemovedback to summary
pack-priv boolean promptRemoved

Constructor Detail

PromptingTextFieldback to summary
public PromptingTextField(String prompt, int columns)

Method Detail

focusGainedback to summary
public void focusGained(FocusEvent e)

Implements java.awt.event.FocusListener.focusGained.

Doc from java.awt.event.FocusListener.focusGained.

Invoked when a component gains the keyboard focus.

focusLostback to summary
public void focusLost(FocusEvent e)

Implements java.awt.event.FocusListener.focusLost.

Doc from java.awt.event.FocusListener.focusLost.

Invoked when a component loses the keyboard focus.

getTextback to summary
public String getText()

Overrides javax.swing.text.JTextComponent.getText.

Doc from javax.swing.text.JTextComponent.getText.

Returns the text contained in this TextComponent. If the underlying document is null, will give a NullPointerException. Note that text is not a bound property, so no PropertyChangeEvent is fired when it changes. To listen for changes to the text, use DocumentListener.

revalidateback to summary
public void revalidate()

Overrides javax.swing.JComponent.revalidate.

Doc from javax.swing.JComponent.revalidate.

Supports deferred automatic layout.

Calls invalidate and then adds this component's validateRoot to a list of components that need to be validated. Validation will occur after all currently pending events have been dispatched. In other words after this method is called, the first validateRoot (if any) found when walking up the containment hierarchy of this component will be validated. By default, JRootPane, JScrollPane, and JTextField return true from isValidateRoot.

This method will automatically be called on this component when a property value changes such that size, location, or internal layout of this component has been affected. This automatic updating differs from the AWT because programs generally no longer need to invoke validate to get the contents of the GUI to update.

Annotations
@Override
updateForegroundback to summary
private void updateForeground()
sun.tools.jconsole back to summary

private Class ThreadTab.ThreadJList

extends JList<Long>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private JTextArea
Inherited from javax.swing.JList:
HORIZONTAL_WRAPVERTICALVERTICAL_WRAP

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Dimension
getPreferredSize()

Overrides javax.swing.JComponent.getPreferredSize.

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

Inherited from javax.swing.JList:
addListSelectionListeneraddSelectionIntervalclearSelectioncreateSelectionModelensureIndexIsVisiblefireSelectionValueChangedgetAccessibleContextgetAnchorSelectionIndexgetCellBoundsgetCellRenderergetDragEnabledgetDropLocationgetDropModegetFirstVisibleIndexgetFixedCellHeightgetFixedCellWidthgetLastVisibleIndexgetLayoutOrientationgetLeadSelectionIndexgetListSelectionListenersgetMaxSelectionIndexgetMinSelectionIndexgetModelgetNextMatchgetPreferredScrollableViewportSizegetPrototypeCellValuegetScrollableBlockIncrementgetScrollableTracksViewportHeightgetScrollableTracksViewportWidthgetScrollableUnitIncrementgetSelectedIndexgetSelectedIndicesgetSelectedValuegetSelectedValuesgetSelectedValuesListgetSelectionBackgroundgetSelectionForegroundgetSelectionModegetSelectionModelgetToolTipTextgetUIgetUIClassIDgetValueIsAdjustinggetVisibleRowCountindexToLocationisSelectedIndexisSelectionEmptylocationToIndexparamStringremoveListSelectionListenerremoveSelectionIntervalsetCellRenderersetDragEnabledsetDropModesetFixedCellHeightsetFixedCellWidthsetLayoutOrientationsetListDatasetListDatasetModelsetPrototypeCellValuesetSelectedIndexsetSelectedIndicessetSelectedValuesetSelectionBackgroundsetSelectionForegroundsetSelectionIntervalsetSelectionModesetSelectionModelsetUIsetValueIsAdjustingsetVisibleRowCountupdateUI

Field Detail

textAreaback to summary
private JTextArea textArea

Constructor Detail

ThreadJListback to summary
pack-priv ThreadJList(DefaultListModel<Long> listModel, JTextArea textArea)

Method Detail

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.

sun.tools.jconsole back to summary

private Class ThreadTab.ThreadOverviewPanel

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
updateThreadsInfo(long tlCount, long tpCount, long ttCount, long timeStamp)

Inherited from sun.tools.jconsole.OverviewPanel:
getInfoLabel

Constructor Detail

ThreadOverviewPanelback to summary
pack-priv ThreadOverviewPanel()

Method Detail

updateThreadsInfoback to summary
private void updateThreadsInfo(long tlCount, long tpCount, long ttCount, long timeStamp)