public class ProMTraceView
extends javax.swing.JComponent
ProMTraceView.Trace of ProMTraceView.Events as a sequence of wedges. This
implementation is similar to the class TraceView in the LogDialog package,
but it neither allows nor relies on MouseListener, so it may be used
as a rubber stamp in a ListCellRenderer of JList.| Modifier and Type | Class and Description |
|---|---|
static class |
ProMTraceView.AbstractEvent
An abstract implementation of
ProMTraceView.Event that returns an empty event. |
static class |
ProMTraceView.AbstractExtendedEvent |
static class |
ProMTraceView.AbstractSplittedEvent
Abstract base class for
ProMTraceView.SplittedEvent. |
static class |
ProMTraceView.AbstractTrace<T extends ProMTraceView.Event>
An abstract implementation of the
ProMTraceView.Trace interface. |
static class |
ProMTraceView.DefaultEvent
A default implementation of the
ProMTraceView.Event interface. |
static class |
ProMTraceView.DefaultSplittedEvent
Default implementation of
ProMTraceView.SplittedEvent. |
static class |
ProMTraceView.DefaultTrace<T extends ProMTraceView.Event>
A default implementation of the
ProMTraceView.Trace interface. |
static interface |
ProMTraceView.Event
An Event with labels and colors.
|
static interface |
ProMTraceView.ExtendedEvent |
static interface |
ProMTraceView.SplittedEvent |
static interface |
ProMTraceView.Trace<T extends ProMTraceView.Event>
A Trace is just a sequence of events.
|
javax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EMPTY_LABEL |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
ProMTraceView()
Creates a new instance of
ProMTraceView that paints a
ProMTraceView.Trace consisting of ProMTraceView.Event's. |
ProMTraceView(java.awt.Font font) |
ProMTraceView(java.awt.Font font,
boolean hasLabels)
Creates a new instance of
ProMTraceView that paints a
ProMTraceView.Trace consisting of ProMTraceView.Event's. |
| Modifier and Type | Method and Description |
|---|---|
float |
getAttenuationFactor() |
int |
getCollapsedLabelLength() |
java.awt.Font |
getDefaultFont() |
int |
getFixedInfoWidth() |
int |
getFixedWedgeWidth() |
java.awt.Dimension |
getMaximumSize() |
int |
getMaxInfoWidth() |
int |
getMaxWedgeWidth() |
java.awt.Dimension |
getMinimumSize() |
java.awt.Dimension |
getPreferredSize() |
ProMTraceView.Trace<? extends ProMTraceView.Event> |
getTrace() |
ProMTraceList.WedgeBuilder |
getWedgeBuilder() |
int |
getWedgeGap() |
java.awt.Stroke |
getWedgeStroke() |
boolean |
isFixedInfoWidth() |
boolean |
isFixedWedgeWidth() |
boolean |
isOpaque() |
boolean |
isSelected() |
protected void |
paintBorder(java.awt.Graphics g) |
protected void |
paintChildren(java.awt.Graphics g) |
protected void |
paintComponent(java.awt.Graphics g) |
protected void |
printComponent(java.awt.Graphics g) |
void |
setAttenuationFactor(float attenuationFactor) |
void |
setCollapsedLabelLength(int collapsedLabelLength) |
void |
setFixedInfoWidth(int fixedInfoWidth) |
void |
setFixedWedgeWidth(int fixedWedgeWidth) |
void |
setMaxInfoWidth(int maxInfoWidth) |
void |
setMaxWedgeWidth(int maxWedgeWidth) |
void |
setSelected(boolean isSelected)
Updates the selection status of the currently displayed trace
|
void |
setTrace(ProMTraceView.Trace<? extends ProMTraceView.Event> trace)
Updates the currently displayed trace
|
void |
setWedgeBuilder(ProMTraceList.WedgeBuilder colorBuilder) |
void |
setWedgeGap(int wedgeGap) |
void |
setWedgeStroke(java.awt.Stroke wedgeStroke) |
protected int |
translateToDetailedEventIndex(java.awt.Point point) |
protected int |
translateToEventIndex(java.awt.Point point) |
void |
updatePreferredSize() |
void |
updatePreferredSize(java.awt.Dimension size) |
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, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, 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, updateUIadd, 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, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, 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, removeMouseListener, 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, transferFocusBackward, transferFocusUpCyclepublic ProMTraceView()
ProMTraceView that paints a
ProMTraceView.Trace consisting of ProMTraceView.Event's. You need to call the method
#setTrace(Trace, boolean) to actually display something. That is
because this class is used together with JList and, therefore,
the displayed ProMTraceView.Trace needs to be changeable.public ProMTraceView(java.awt.Font font)
public ProMTraceView(java.awt.Font font,
boolean hasLabels)
ProMTraceView that paints a
ProMTraceView.Trace consisting of ProMTraceView.Event's. You need to call the method
#setTrace(Trace, boolean) to actually display something. That is
because this class is used together with JList and, therefore,
the displayed ProMTraceView.Trace needs to be changeable.colorBuilder - font - the font to be usedhasLabels - whether the wedge has labelspublic boolean isOpaque()
isOpaque in class javax.swing.JComponentpublic void setTrace(ProMTraceView.Trace<? extends ProMTraceView.Event> trace)
trace - public void setSelected(boolean isSelected)
isSelected - public boolean isSelected()
public ProMTraceView.Trace<? extends ProMTraceView.Event> getTrace()
public void updatePreferredSize()
public void updatePreferredSize(java.awt.Dimension size)
protected void paintChildren(java.awt.Graphics g)
paintChildren in class javax.swing.JComponentprotected void paintBorder(java.awt.Graphics g)
paintBorder in class javax.swing.JComponentprotected void printComponent(java.awt.Graphics g)
printComponent in class javax.swing.JComponentprotected void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentprotected final int translateToEventIndex(java.awt.Point point)
protected final int translateToDetailedEventIndex(java.awt.Point point)
point - public java.awt.Dimension getMaximumSize()
getMaximumSize in class javax.swing.JComponentpublic java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic float getAttenuationFactor()
public void setAttenuationFactor(float attenuationFactor)
public java.awt.Font getDefaultFont()
public ProMTraceList.WedgeBuilder getWedgeBuilder()
public void setWedgeBuilder(ProMTraceList.WedgeBuilder colorBuilder)
public int getMaxWedgeWidth()
public void setMaxWedgeWidth(int maxWedgeWidth)
public int getCollapsedLabelLength()
public void setCollapsedLabelLength(int collapsedLabelLength)
public java.awt.Stroke getWedgeStroke()
public void setWedgeStroke(java.awt.Stroke wedgeStroke)
public int getWedgeGap()
public void setWedgeGap(int wedgeGap)
public boolean isFixedWedgeWidth()
public void setFixedWedgeWidth(int fixedWedgeWidth)
public int getFixedWedgeWidth()
public int getMaxInfoWidth()
public void setMaxInfoWidth(int maxInfoWidth)
public boolean isFixedInfoWidth()
public int getFixedInfoWidth()
public void setFixedInfoWidth(int fixedInfoWidth)