KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > prefuse > Constants


1 package prefuse;
2
3 /**
4  * Constants used throughout the prefuse toolkit.
5  *
6  * @author <a HREF="http://jheer.org">jeffrey heer</a>
7  */

8 public interface Constants {
9
10     /** A left-to-right layout orientation */
11     public static final int ORIENT_LEFT_RIGHT = 0;
12     /** A right-to-left layout orientation */
13     public static final int ORIENT_RIGHT_LEFT = 1;
14     /** A top-to-bottom layout orientation */
15     public static final int ORIENT_TOP_BOTTOM = 2;
16     /** A bottom-to-top layout orientation */
17     public static final int ORIENT_BOTTOM_TOP = 3;
18     /** A centered layout orientation */
19     public static final int ORIENT_CENTER = 4;
20     /** The total number of orientation values */
21     public static final int ORIENTATION_COUNT = 5;
22     
23     /** A left alignment */
24     public static final int LEFT = 0;
25     /** A right alignment */
26     public static final int RIGHT = 1;
27     /** A center alignment */
28     public static final int CENTER = 2;
29     /** A bottom alignment */
30     public static final int BOTTOM = 3;
31     /** A top alignment */
32     public static final int TOP = 4;
33     
34     /** A left alignment, outside of bounds */
35     public static final int FAR_LEFT = 5;
36     /** A right alignment, outside of bounds */
37     public static final int FAR_RIGHT = 6;
38     /** A bottom alignment, outside of bounds */
39     public static final int FAR_BOTTOM = 7;
40     /** A top alignment, outside of bounds */
41     public static final int FAR_TOP = 8;
42     
43     /** A straight-line edge type */
44     public static final int EDGE_TYPE_LINE = 0;
45     /** A curved-line edge type */
46     public static final int EDGE_TYPE_CURVE = 1;
47     /** The total number of edge type values */
48     public static final int EDGE_TYPE_COUNT = 2;
49     
50     /** No arrows on edges */
51     public static final int EDGE_ARROW_NONE = 0;
52     /** Arrows on edges pointing from source to target */
53     public static final int EDGE_ARROW_FORWARD = 1;
54     /** Arrows on edges pointing from target to source */
55     public static final int EDGE_ARROW_REVERSE = 2;
56     /** The total number of edge arrow type values */
57     public static final int EDGE_ARROW_COUNT = 3;
58     
59     /** Use straight-lines for polygon edges */
60     public static final int POLY_TYPE_LINE = EDGE_TYPE_LINE;
61     /** Use curved-lines for polygon edges */
62     public static final int POLY_TYPE_CURVE = EDGE_TYPE_CURVE;
63     /** Use curved-lines for polygon edges,
64      * but use straight lines for zero-slope edges */

65     public static final int POLY_TYPE_STACK = 2;
66     /** The total number of polygon type values */
67     public static final int POLY_TYPE_COUNT = 3;
68     
69     /** A linear scale */
70     public static final int LINEAR_SCALE = 0;
71     /** A logarithmic (base 10) scale */
72     public static final int LOG_SCALE = 1;
73     /** A square root scale */
74     public static final int SQRT_SCALE = 2;
75     /** A quantile scale, based on the underlying distribution */
76     public static final int QUANTILE_SCALE = 3;
77     /** The total number of scale type values */
78     public static final int SCALE_COUNT = 4;
79     
80     /** An unknown data type */
81     public static final int UNKNOWN = -1;
82     /** A nominal (categorical) data type */
83     public static final int NOMINAL = 0;
84     /** An ordinal (ordered) data type */
85     public static final int ORDINAL = 1;
86     /** A numerical (quantitative) data type */
87     public static final int NUMERICAL = 2;
88     /** The total number of data type values */
89     public static final int DATATYPE_COUNT = 3;
90     
91     /** Indicates the horizontal (X) axis */
92     public static final int X_AXIS = 0;
93     /** Indicates the vertical (Y) axis */
94     public static final int Y_AXIS = 1;
95     /** The total number of axis type values */
96     public static final int AXIS_COUNT = 2;
97     
98     public static final int NODE_TRAVERSAL = 0;
99     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
136
Popular Tags