summaryrefslogtreecommitdiffstats
path: root/src/graph.php
blob: 11b80e48a59efa9722cb669c7e1fc8b23445e2fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?php
/**
 * File containing the abstract ezcGraph class
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 * @package Graph
 * @version //autogentag//
 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 */
/**
 * Base options class for all eZ components.
 *
 * @version //autogentag//
 * @package Graph
 */
class ezcGraph
{
    /**
     * No symbol, will fallback to a rect in the legend
     */
    const NO_SYMBOL = 0;
    /**
     * Rhomb like looking symbol
     */
    const DIAMOND = 1;
    /**
     * Filled circle
     */
    const BULLET = 2;
    /**
     * Non filled circle
     */
    const CIRCLE = 3;
    /**
     * Arrow head symbol, used for axis end markers, not available as a dataset
     * symbol.
     */
    const ARROW = 4;
    /**
     * A square, filled box, symbol
     */
    const SQUARE = 5;
    /**
     * A non-filled box symbol
     */
    const BOX = 6;

    /**
     * Constant used for background repetition. No repeat.
     */
    const NO_REPEAT = 0;
    /**
     * Constant used for background repetition. Repeat along the x axis. May be
     * used as a bitmask together with ezcGraph::VERTICAL.
     */
    const HORIZONTAL = 1;
    /**
     * Constant used for background repetition. Repeat along the y axis. May be
     * used as a bitmask together with ezcGraph::HORIZONTAL.
     */
    const VERTICAL = 2;

    /**
     * Constant used for positioning of elements. May be used as a bitmask 
     * together with other postioning constants.
     * Element will be placed at the top of the current boundings.
     */
    const TOP = 1;
    /**
     * Constant used for positioning of elements. May be used as a bitmask 
     * together with other postioning constants.
     * Element will be placed at the bottom of the current boundings.
     */
    const BOTTOM = 2;
    /**
     * Constant used for positioning of elements. May be used as a bitmask 
     * together with other postioning constants.
     * Element will be placed at the left of the current boundings.
     */
    const LEFT = 4;
    /**
     * Constant used for positioning of elements. May be used as a bitmask 
     * together with other postioning constants.
     * Element will be placed at the right of the current boundings.
     */
    const RIGHT = 8;
    /**
     * Constant used for positioning of elements. May be used as a bitmask 
     * together with other postioning constants.
     * Element will be placed at the horizontalcenter of the current boundings.
     */
    const CENTER = 16;
    /**
     * Constant used for positioning of elements. May be used as a bitmask 
     * together with other postioning constants.
     * Element will be placed at the vertical middle of the current boundings.
     */
    const MIDDLE = 32;

    /**
     * Display type for datasets. Pie may only be used with pie charts. 
     */
    const PIE = 1;
    /**
     * Display type for datasets. Bar and line charts may contain datasets of
     * type ezcGraph::LINE.
     */
    const LINE = 2;
    /**
     * Display type for datasets. Bar and line charts may contain datasets of
     * type ezcGraph::BAR.
     */
    const BAR = 3;
    /**
     * @TODO:
     */
    const ODOMETER = 4;

    /**
     * Font type definition. Used for True Type fonts.
     */
    const TTF_FONT = 1;
    /**
     * Font type definition. Used for Postscript Type 1 fonts.
     */
    const PS_FONT = 2;
    /**
     * Font type definition. Used for Palm Format Fonts for Ming driver.
     */
    const PALM_FONT = 3;
    /**
     * Font type definition. Used for SVG fonts vonverted by ttf2svg used in
     * the SVG driver.
     */
    const SVG_FONT = 4;

    /**
     * Identifier for keys in complex dataset arrays
     */
    const KEY = 0;
    /**
     * Identifier for values in complex dataset arrays
     */
    const VALUE = 1;
}

?>
OpenPOWER on IntegriCloud