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
-
ANONYMOUS_PREFIX
- Name prefix for name generation of unnamed subgraphs
-
ARROW_BOTH
- Indicator for arrow at both ends.
-
ARROW_FIRST
- Indicator for arrow at first point.
-
ARROW_LAST
- Indicator for arrow at last point.
-
ARROW_NONE
- No arrow indicator.
-
doDisplayException
- Boolean for enabling/disabling exception pop-up window display.
-
EDGE
- Element type value indicating an edge.
-
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).
-
LINE_DASHED
- Integer value for indicating a dashed line.
-
LINE_DASHED_STRING
- String value indicating a dashed line style.
-
LINE_DOTTED
- Integer value for indicating a dotted line.
-
LINE_DOTTED_STRING
- String value indicating a dotted line style.
-
LINE_SOLID
- Integer value for indicating a solid line.
-
LINE_SOLID_STRING
- String value indicating a solid line style.
-
LINE_WIDTH
- Default line width value.
-
LINE_WIDTH_STRING
- String value used when indicating the line width style value.
-
NEW_LINE
- The new-line string for this system
-
NODE
- Element type value indicating a node.
-
PACKAGE_PREFIX
- Package prefix
-
PKG_LOWER
- Package name as an lower-case string (as a convenience).
-
PKG_UPLOW
- Package name as an up-low string.
-
PKG_UPPER
- Package name as an upper-case string (as a convenience).
-
SUBGRAPH
- Element type value indicating a graph (or subgraph).
-
TYPES_SHIFT
- Maximum number of bits needed to represet the Element types.
-
Grappa()
- NOTE: this class is abstract, so the constructor should not be used directly.
-
displayException(Exception)
- Method for displaying an exception in a pop-up window (if enabled).
-
displayException(Exception, String)
- Method for displaying an exception in a pop-up window (if enabled).
PACKAGE_PREFIX
public static final String PACKAGE_PREFIX
- Package prefix
PKG_UPLOW
public static final String PKG_UPLOW
- Package name as an up-low string.
PKG_UPPER
public static final String PKG_UPPER
- Package name as an upper-case string (as a convenience).
PKG_LOWER
public static final String PKG_LOWER
- Package name as an lower-case string (as a convenience).
NEW_LINE
public static final String NEW_LINE
- The new-line string for this system
NODE
public static final int NODE
- Element type value indicating a node.
EDGE
public static final int EDGE
- Element type value indicating an edge.
SUBGRAPH
public static final int SUBGRAPH
- Element type value indicating a graph (or subgraph).
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).
LINE_SOLID
public static final int LINE_SOLID
- Integer value for indicating a solid line.
LINE_DASHED
public static final int LINE_DASHED
- Integer value for indicating a dashed line.
LINE_DOTTED
public static final int LINE_DOTTED
- Integer value for indicating a dotted line.
LINE_WIDTH
public static final int LINE_WIDTH
- Default line width value.
LINE_SOLID_STRING
public static final String LINE_SOLID_STRING
- String value indicating a solid line style.
LINE_DASHED_STRING
public static final String LINE_DASHED_STRING
- String value indicating a dashed line style.
LINE_DOTTED_STRING
public static final String LINE_DOTTED_STRING
- String value indicating a dotted line style.
LINE_WIDTH_STRING
public static final String LINE_WIDTH_STRING
- String value used when indicating the line width style value.
ARROW_NONE
public static final int ARROW_NONE
- No arrow indicator.
ARROW_FIRST
public static final int ARROW_FIRST
- Indicator for arrow at first point.
ARROW_LAST
public static final int ARROW_LAST
- Indicator for arrow at last point.
ARROW_BOTH
public static final int ARROW_BOTH
- Indicator for arrow at both ends.
ANONYMOUS_PREFIX
public static final String ANONYMOUS_PREFIX
- Name prefix for name generation of unnamed subgraphs
doDisplayException
public static boolean doDisplayException
- Boolean for enabling/disabling exception pop-up window display.
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).
Grappa
public Grappa()
- NOTE: this class is abstract, so the constructor should not be used directly.
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
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