001: package prefuse;
002:
003: /**
004: * Constants used throughout the prefuse toolkit.
005: *
006: * @author <a href="http://jheer.org">jeffrey heer</a>
007: */
008: public interface Constants {
009:
010: /** A left-to-right layout orientation */
011: public static final int ORIENT_LEFT_RIGHT = 0;
012: /** A right-to-left layout orientation */
013: public static final int ORIENT_RIGHT_LEFT = 1;
014: /** A top-to-bottom layout orientation */
015: public static final int ORIENT_TOP_BOTTOM = 2;
016: /** A bottom-to-top layout orientation */
017: public static final int ORIENT_BOTTOM_TOP = 3;
018: /** A centered layout orientation */
019: public static final int ORIENT_CENTER = 4;
020: /** The total number of orientation values */
021: public static final int ORIENTATION_COUNT = 5;
022:
023: /** A left alignment */
024: public static final int LEFT = 0;
025: /** A right alignment */
026: public static final int RIGHT = 1;
027: /** A center alignment */
028: public static final int CENTER = 2;
029: /** A bottom alignment */
030: public static final int BOTTOM = 3;
031: /** A top alignment */
032: public static final int TOP = 4;
033:
034: /** A left alignment, outside of bounds */
035: public static final int FAR_LEFT = 5;
036: /** A right alignment, outside of bounds */
037: public static final int FAR_RIGHT = 6;
038: /** A bottom alignment, outside of bounds */
039: public static final int FAR_BOTTOM = 7;
040: /** A top alignment, outside of bounds */
041: public static final int FAR_TOP = 8;
042:
043: /** A straight-line edge type */
044: public static final int EDGE_TYPE_LINE = 0;
045: /** A curved-line edge type */
046: public static final int EDGE_TYPE_CURVE = 1;
047: /** The total number of edge type values */
048: public static final int EDGE_TYPE_COUNT = 2;
049:
050: /** No arrows on edges */
051: public static final int EDGE_ARROW_NONE = 0;
052: /** Arrows on edges pointing from source to target */
053: public static final int EDGE_ARROW_FORWARD = 1;
054: /** Arrows on edges pointing from target to source */
055: public static final int EDGE_ARROW_REVERSE = 2;
056: /** The total number of edge arrow type values */
057: public static final int EDGE_ARROW_COUNT = 3;
058:
059: /** Use straight-lines for polygon edges */
060: public static final int POLY_TYPE_LINE = EDGE_TYPE_LINE;
061: /** Use curved-lines for polygon edges */
062: public static final int POLY_TYPE_CURVE = EDGE_TYPE_CURVE;
063: /** Use curved-lines for polygon edges,
064: * but use straight lines for zero-slope edges */
065: public static final int POLY_TYPE_STACK = 2;
066: /** The total number of polygon type values */
067: public static final int POLY_TYPE_COUNT = 3;
068:
069: /** A linear scale */
070: public static final int LINEAR_SCALE = 0;
071: /** A logarithmic (base 10) scale */
072: public static final int LOG_SCALE = 1;
073: /** A square root scale */
074: public static final int SQRT_SCALE = 2;
075: /** A quantile scale, based on the underlying distribution */
076: public static final int QUANTILE_SCALE = 3;
077: /** The total number of scale type values */
078: public static final int SCALE_COUNT = 4;
079:
080: /** An unknown data type */
081: public static final int UNKNOWN = -1;
082: /** A nominal (categorical) data type */
083: public static final int NOMINAL = 0;
084: /** An ordinal (ordered) data type */
085: public static final int ORDINAL = 1;
086: /** A numerical (quantitative) data type */
087: public static final int NUMERICAL = 2;
088: /** The total number of data type values */
089: public static final int DATATYPE_COUNT = 3;
090:
091: /** Indicates the horizontal (X) axis */
092: public static final int X_AXIS = 0;
093: /** Indicates the vertical (Y) axis */
094: public static final int Y_AXIS = 1;
095: /** The total number of axis type values */
096: public static final int AXIS_COUNT = 2;
097:
098: public static final int NODE_TRAVERSAL = 0;
099: public static final int EDGE_TRAVERSAL = 1;
100: public static final int NODE_AND_EDGE_TRAVERSAL = 2;
101: /** The total number of traversal type values */
102: public static final int TRAVERSAL_COUNT = 3;
103:
104: /** Indicates a continuous (non-discrete) spectrum */
105: public static final int CONTINUOUS = -1;
106:
107: /** The absolute minimum degree-of-interest (DOI) value */
108: public static final double MINIMUM_DOI = -Double.MAX_VALUE;
109:
110: /** No shape. Draw nothing. */
111: public static final int SHAPE_NONE = -1;
112: /** Rectangle/Square shape */
113: public static final int SHAPE_RECTANGLE = 0;
114: /** Ellipse/Circle shape */
115: public static final int SHAPE_ELLIPSE = 1;
116: /** Diamond shape */
117: public static final int SHAPE_DIAMOND = 2;
118: /** Cross shape */
119: public static final int SHAPE_CROSS = 3;
120: /** Star shape */
121: public static final int SHAPE_STAR = 4;
122: /** Up-pointing triangle shape */
123: public static final int SHAPE_TRIANGLE_UP = 5;
124: /** Down-pointing triangle shape */
125: public static final int SHAPE_TRIANGLE_DOWN = 6;
126: /** Left-pointing triangle shape */
127: public static final int SHAPE_TRIANGLE_LEFT = 7;
128: /** Right-pointing triangle shape */
129: public static final int SHAPE_TRIANGLE_RIGHT = 8;
130: /** Hexagon shape */
131: public static final int SHAPE_HEXAGON = 9;
132: /** The number of recognized shape types */
133: public static final int SHAPE_COUNT = 10;
134:
135: } // end of interface Constants
|