All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class att.grappa.Grappa

java.lang.Object
   |
   +----att.grappa.Grappa

public abstract class Grappa
extends Object
This class provides a common set of constant, class variables used by the classes in the grappa package. Some convenience methods for exception display are also included.

Version:
1.1, 30 Sep 1999; Copyright 1996 - 1999 by AT&T Corp.
Author:
John Mocenigo, Research @ AT&T Labs

Variable Index

 o ANONYMOUS_PREFIX
Name prefix for name generation of unnamed subgraphs
 o ARROW_BOTH
Indicator for arrow at both ends.
 o ARROW_FIRST
Indicator for arrow at first point.
 o ARROW_LAST
Indicator for arrow at last point.
 o ARROW_NONE
No arrow indicator.
 o doDisplayException
Boolean for enabling/disabling exception pop-up window display.
 o EDGE
Element type value indicating an edge.
 o emptyEnumeration
A convenience Vector useful when an enumeration is to be returned, but the object to be enumerated is null (in which case, the return value can be Grappa.emptyEnumeration.elements(), whose hasMoreElements() method will return false).
 o LINE_DASHED
Integer value for indicating a dashed line.
 o LINE_DASHED_STRING
String value indicating a dashed line style.
 o LINE_DOTTED
Integer value for indicating a dotted line.
 o LINE_DOTTED_STRING
String value indicating a dotted line style.
 o LINE_SOLID
Integer value for indicating a solid line.
 o LINE_SOLID_STRING
String value indicating a solid line style.
 o LINE_WIDTH
Default line width value.
 o LINE_WIDTH_STRING
String value used when indicating the line width style value.
 o NEW_LINE
The new-line string for this system
 o NODE
Element type value indicating a node.
 o PACKAGE_PREFIX
Package prefix
 o PKG_LOWER
Package name as an lower-case string (as a convenience).
 o PKG_UPLOW
Package name as an up-low string.
 o PKG_UPPER
Package name as an upper-case string (as a convenience).
 o SUBGRAPH
Element type value indicating a graph (or subgraph).
 o TYPES_SHIFT
Maximum number of bits needed to represet the Element types.

Constructor Index

 o Grappa()
NOTE: this class is abstract, so the constructor should not be used directly.

Method Index

 o displayException(Exception)
Method for displaying an exception in a pop-up window (if enabled).
 o displayException(Exception, String)
Method for displaying an exception in a pop-up window (if enabled).

Variables

 o PACKAGE_PREFIX
 public static final String PACKAGE_PREFIX
Package prefix

 o PKG_UPLOW
 public static final String PKG_UPLOW
Package name as an up-low string.

 o PKG_UPPER
 public static final String PKG_UPPER
Package name as an upper-case string (as a convenience).

 o PKG_LOWER
 public static final String PKG_LOWER
Package name as an lower-case string (as a convenience).

 o NEW_LINE
 public static final String NEW_LINE
The new-line string for this system

 o NODE
 public static final int NODE
Element type value indicating a node.

 o EDGE
 public static final int EDGE
Element type value indicating an edge.

 o SUBGRAPH
 public static final int SUBGRAPH
Element type value indicating a graph (or subgraph).

 o TYPES_SHIFT
 public static final int TYPES_SHIFT
Maximum number of bits needed to represet the Element types. Element type is merged with the element id number (a sequentially assigned number) to ensure a unique identifier (within an invocation of the package).

 o LINE_SOLID
 public static final int LINE_SOLID
Integer value for indicating a solid line.

 o LINE_DASHED
 public static final int LINE_DASHED
Integer value for indicating a dashed line.

 o LINE_DOTTED
 public static final int LINE_DOTTED
Integer value for indicating a dotted line.

 o LINE_WIDTH
 public static final int LINE_WIDTH
Default line width value.

 o LINE_SOLID_STRING
 public static final String LINE_SOLID_STRING
String value indicating a solid line style.

 o LINE_DASHED_STRING
 public static final String LINE_DASHED_STRING
String value indicating a dashed line style.

 o LINE_DOTTED_STRING
 public static final String LINE_DOTTED_STRING
String value indicating a dotted line style.

 o LINE_WIDTH_STRING
 public static final String LINE_WIDTH_STRING
String value used when indicating the line width style value.

 o ARROW_NONE
 public static final int ARROW_NONE
No arrow indicator.

 o ARROW_FIRST
 public static final int ARROW_FIRST
Indicator for arrow at first point.

 o ARROW_LAST
 public static final int ARROW_LAST
Indicator for arrow at last point.

 o ARROW_BOTH
 public static final int ARROW_BOTH
Indicator for arrow at both ends.

 o ANONYMOUS_PREFIX
 public static final String ANONYMOUS_PREFIX
Name prefix for name generation of unnamed subgraphs

 o doDisplayException
 public static boolean doDisplayException
Boolean for enabling/disabling exception pop-up window display.

 o emptyEnumeration
 public static final Vector emptyEnumeration
A convenience Vector useful when an enumeration is to be returned, but the object to be enumerated is null (in which case, the return value can be Grappa.emptyEnumeration.elements(), whose hasMoreElements() method will return false).

Constructors

 o Grappa
 public Grappa()
NOTE: this class is abstract, so the constructor should not be used directly.

Methods

 o displayException
 public static void displayException(Exception ex)
Method for displaying an exception in a pop-up window (if enabled).

Parameters:
ex - The exception value about which information is to be displayed.
See Also:
doDisplayException, DisplayException
 o displayException
 public static void displayException(Exception ex,
                                     String msg)
Method for displaying an exception in a pop-up window (if enabled).

Parameters:
ex - The exception value about which information is to be displayed.
msg - Additional text to be displayed ahead of exception info.
See Also:
doDisplayException, DisplayException

All Packages  Class Hierarchy  This Package  Previous  Next  Index