public abstract class PresentationNodeView extends ViewerRoot
ViewerRoot.CreationFlags| Constructor and Description |
|---|
PresentationNodeView()
Creates a new PresentationNodeView.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure()
Configures the viewer.
|
void |
destroy()
Called when the viewer is closed or frozen.
|
abstract String |
getDisplayText(Value value,
DebugContext context)
Gets the text to be displayed.
|
Dimension |
getMainSize()
Gets the default size for the main panel when on the canvas, if this
needs to be different from the preferred size.
|
abstract int |
getPriority(ViewerPriorityData vpd)
Gets the viewer priority.
|
abstract String |
getViewName()
Gets the display name of the viewer.
|
void |
paintMainView(Graphics2D g,
JPanel paintPanel)
Paints the root viewer panel.
|
void |
updateState(ViewerValueData valueData,
ViewerUpdateData data,
DebugContext context)
Updates the view state.
|
build, buildGui, contains, createBorder, createBorder, createFixedBorder, createFixedBorder, getColumnHeader, getMainPanel, getMainToolTipText, getRowHeader, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getVIData, isViewerTransparent, toXML, update, updateGuipublic PresentationNodeView()
public void configure()
configure in class ViewerRootpublic void destroy()
public abstract String getDisplayText(Value value, DebugContext context) throws ViewerException
value - the new value.context - debugger context that is necessary for working with the
value, and provides some global debugger access.ViewerException - if any exceptions occur and are not caught while
using jgrdi.public Dimension getMainSize()
getMainSize in class ViewerRootpublic abstract int getPriority(ViewerPriorityData vpd)
vpd - data about how the viewer will be used.Integer.MIN_VALUE indicates that the viewer
dialog or canvas should change viewers.public abstract String getViewName()
public void paintMainView(Graphics2D g, JPanel paintPanel)
paintMainView in class ViewerRootg - the graphics to be used for painting.paintPanel - the panel to be painted.public void updateState(ViewerValueData valueData, ViewerUpdateData data, DebugContext context) throws ViewerException
updateState in class ViewerRootvalueData - the new value and associated information, such as
declared type. This will be null for animation updates.data - information about this update, such as why it was triggered,
and if it was triggered by a flagged method entry, the method argument
values.context - debugger context that is necessary for working with
values, and provides some global debugger access. This will be null for
animation updates.ViewerException - if an exception is encountered.