Interface | Description |
---|---|
Anchor.AnchorComponent |
Interface for components that are resizable by Anchor.
|
NoScroll |
Marker interface for viewer main panels that have their own scroll panes or
scroll bars.
|
ViewerCreateData |
Data passed to viewer constructor.
|
ViewerDefaultSize |
Interface for viewer main panels that want a different preferred size on
the canvas than in the scroll pane.
|
ViewerInitData |
Data passed to viewer build() methods.
|
ViewerPriorityData |
Interface for viewer priority data.
|
ViewerTransparency |
Interface for viewer main panels that want to paint differently when they
are transparent.
|
ViewerUpdateData |
Data sent to
Viewer.update() . |
ViewerValueData |
Value-related data for a viewer update.
|
Class | Description |
---|---|
IndexItem |
A class for holding viewer index data (expression plus index value).
|
OnOffBorder |
A border that can be made visible or invisible.
|
PaintUtil |
Methods for drawing various shapes.
|
Sizes |
Standard component size computation for viewers.
|
Util |
General purpose utility methods for viewers.
|
ViewerInfo |
Class that holds viewer information.
|
ViewerRoot |
Viewer convenience root class.
|
Enum | Description |
---|---|
Anchor |
Anchor position constants.
|
LabelHorzPosition |
Label horizontal position constants.
|
LabelVertPosition |
Label horizontal position constants.
|
SubviewerPosition |
Subviewer panel position constants.
|
ViewerRoot.CreationFlags |
Creation flags.
|
ViewerUpdateType |
Viewer update categories.
|
Exception | Description |
---|---|
ViewerException |
Root of the viewer exception hierarchy.
|
Viewers are gui components that are used to display values in the debugger or workbench. Each viewer is a subcomponent of the Viewer class.
Viewer class or jar files may be placed in the following locations:
Viewer class names determine the class or interface to which they apply. Naming conventions can be found in the Viewer documentation.
In order to compile a viewer, jgrasp.jar from the jGRASP installation must be on your CLASSPATH (you will also want "." on your CLASSPATH). For a default installation on Windows, this would be C:\Program Files\jGRASP\jgrasp.jar . The easiest way to compile viewers in jGRASP is to use the "jdk for building jGRASP viewers" compiler environment. To do this, go to "Settings" / "Compiler Settings" / "Workspace" (or your viewer project), select language "Java" if not already selected, select the "jdk for building jGRASP viewers" environment and hit the "Use" button. Another option is to go to "Settings" / "PATH/CLASSPATH" / "Workspace" (or your viewer project), and add the jgrasp.jar file to the CLASSPATHs there (lower window).
If you compile viewers from outside of jGRASP, you can reload them while the debugger or workbench is running using "Tools" / "Reload Plugins". Previous viewers will continue to run, so you can compare old and new versions of your viewer as you make changes.
Source code for the viewers that are delivered with jGRASP may be found in the jGRASP distribution under extensions\viewers . For a default installation on Windows, this would be C:\Program Files\jGRASP\extensions\viewers .