| 1 | /* |
|---|
| 2 | * $Id$ |
|---|
| 3 | * |
|---|
| 4 | * Copyright 2006, The jCoderZ.org Project. All rights reserved. |
|---|
| 5 | * |
|---|
| 6 | * Redistribution and use in source and binary forms, with or without |
|---|
| 7 | * modification, are permitted provided that the following conditions are |
|---|
| 8 | * met: |
|---|
| 9 | * |
|---|
| 10 | * * Redistributions of source code must retain the above copyright |
|---|
| 11 | * notice, this list of conditions and the following disclaimer. |
|---|
| 12 | * * Redistributions in binary form must reproduce the above |
|---|
| 13 | * copyright notice, this list of conditions and the following |
|---|
| 14 | * disclaimer in the documentation and/or other materials |
|---|
| 15 | * provided with the distribution. |
|---|
| 16 | * * Neither the name of the jCoderZ.org Project nor the names of |
|---|
| 17 | * its contributors may be used to endorse or promote products |
|---|
| 18 | * derived from this software without specific prior written |
|---|
| 19 | * permission. |
|---|
| 20 | * |
|---|
| 21 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS" AND |
|---|
| 22 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|---|
| 23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|---|
| 24 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS |
|---|
| 25 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
|---|
| 26 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|---|
| 27 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
|---|
| 28 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
|---|
| 29 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
|---|
| 30 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
|---|
| 31 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|---|
| 32 | */ |
|---|
| 33 | package org.jcoderz.phoenix.chart2d; |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | import org.xml.sax.Attributes; |
|---|
| 37 | import org.xml.sax.SAXException; |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | /** |
|---|
| 41 | * Handler interface for the chart2d.dtd. |
|---|
| 42 | * @author Netbeans code generator |
|---|
| 43 | * @author Andreas Mandel |
|---|
| 44 | */ |
|---|
| 45 | public interface Chart2DHandler |
|---|
| 46 | { |
|---|
| 47 | |
|---|
| 48 | /** |
|---|
| 49 | * An empty element event handling method. |
|---|
| 50 | * @param meta value or null |
|---|
| 51 | * @throws SAXException in case of a parsing error. |
|---|
| 52 | */ |
|---|
| 53 | void handleGraphLabelsLinesStyle (final Attributes meta) |
|---|
| 54 | throws SAXException; |
|---|
| 55 | |
|---|
| 56 | /** |
|---|
| 57 | * A container element start event handling method. |
|---|
| 58 | * @param meta attributes |
|---|
| 59 | * @throws SAXException in case of a parsing error. |
|---|
| 60 | */ |
|---|
| 61 | void startCategory (final Attributes meta) |
|---|
| 62 | throws SAXException; |
|---|
| 63 | |
|---|
| 64 | /** |
|---|
| 65 | * A container element end event handling method. |
|---|
| 66 | * @throws SAXException in case of a parsing error. |
|---|
| 67 | */ |
|---|
| 68 | void endCategory () |
|---|
| 69 | throws SAXException; |
|---|
| 70 | |
|---|
| 71 | /** |
|---|
| 72 | * A container element start event handling method. |
|---|
| 73 | * @param meta attributes |
|---|
| 74 | * @throws SAXException in case of a parsing error. |
|---|
| 75 | */ |
|---|
| 76 | void startMultiColorsProperties (final Attributes meta) |
|---|
| 77 | throws SAXException; |
|---|
| 78 | |
|---|
| 79 | /** |
|---|
| 80 | * A container element end event handling method. |
|---|
| 81 | * @throws SAXException in case of a parsing error. |
|---|
| 82 | */ |
|---|
| 83 | void endMultiColorsProperties () |
|---|
| 84 | throws SAXException; |
|---|
| 85 | |
|---|
| 86 | /** |
|---|
| 87 | * A container element start event handling method. |
|---|
| 88 | * @param meta attributes |
|---|
| 89 | * @throws SAXException in case of a parsing error. |
|---|
| 90 | */ |
|---|
| 91 | void startLBChart2D (final Attributes meta) |
|---|
| 92 | throws SAXException; |
|---|
| 93 | |
|---|
| 94 | /** |
|---|
| 95 | * A container element end event handling method. |
|---|
| 96 | * @throws SAXException in case of a parsing error. |
|---|
| 97 | */ |
|---|
| 98 | void endLBChart2D () |
|---|
| 99 | throws SAXException; |
|---|
| 100 | |
|---|
| 101 | /** |
|---|
| 102 | * A data element event handling method. |
|---|
| 103 | * @param data value or null |
|---|
| 104 | * @param meta attributes |
|---|
| 105 | * @throws SAXException in case of a parsing error. |
|---|
| 106 | */ |
|---|
| 107 | void handleLegendLabelsTexts (final String data, |
|---|
| 108 | final Attributes meta) |
|---|
| 109 | throws SAXException; |
|---|
| 110 | |
|---|
| 111 | /** |
|---|
| 112 | * A container element start event handling method. |
|---|
| 113 | * @param meta attributes |
|---|
| 114 | * @throws SAXException in case of a parsing error. |
|---|
| 115 | */ |
|---|
| 116 | void startDataset (final Attributes meta) |
|---|
| 117 | throws SAXException; |
|---|
| 118 | |
|---|
| 119 | /** |
|---|
| 120 | * A container element end event handling method. |
|---|
| 121 | * @throws SAXException in case of a parsing error. |
|---|
| 122 | */ |
|---|
| 123 | void endDataset () |
|---|
| 124 | throws SAXException; |
|---|
| 125 | |
|---|
| 126 | /** |
|---|
| 127 | * A container element start event handling method. |
|---|
| 128 | * @param meta attributes |
|---|
| 129 | * @throws SAXException in case of a parsing error. |
|---|
| 130 | */ |
|---|
| 131 | void handlePieChart2DProperties (final Attributes meta) |
|---|
| 132 | throws SAXException; |
|---|
| 133 | |
|---|
| 134 | /** |
|---|
| 135 | * A container element start event handling method. |
|---|
| 136 | * @param meta attributes |
|---|
| 137 | * @throws SAXException in case of a parsing error. |
|---|
| 138 | */ |
|---|
| 139 | void startGraphChart2DProperties (final Attributes meta) |
|---|
| 140 | throws SAXException; |
|---|
| 141 | |
|---|
| 142 | /** |
|---|
| 143 | * A container element end event handling method. |
|---|
| 144 | * @throws SAXException in case of a parsing error. |
|---|
| 145 | */ |
|---|
| 146 | void endGraphChart2DProperties () |
|---|
| 147 | throws SAXException; |
|---|
| 148 | |
|---|
| 149 | /** |
|---|
| 150 | * A data element event handling method. |
|---|
| 151 | * @param data value or null |
|---|
| 152 | * @param meta attributes |
|---|
| 153 | * @throws SAXException in case of a parsing error. |
|---|
| 154 | */ |
|---|
| 155 | void handleAxisLabelText (final String data, final Attributes meta) |
|---|
| 156 | throws SAXException; |
|---|
| 157 | |
|---|
| 158 | /** |
|---|
| 159 | * A container element start event handling method. |
|---|
| 160 | * @param meta attributes |
|---|
| 161 | * @throws SAXException in case of a parsing error. |
|---|
| 162 | */ |
|---|
| 163 | void startChart2D (final Attributes meta) |
|---|
| 164 | throws SAXException; |
|---|
| 165 | |
|---|
| 166 | /** |
|---|
| 167 | * A container element end event handling method. |
|---|
| 168 | * @throws SAXException in case of a parsing error. |
|---|
| 169 | */ |
|---|
| 170 | void endChart2D () |
|---|
| 171 | throws SAXException; |
|---|
| 172 | |
|---|
| 173 | /** |
|---|
| 174 | * A container element start event handling method. |
|---|
| 175 | * @param meta attributes |
|---|
| 176 | * @throws SAXException in case of a parsing error. |
|---|
| 177 | */ |
|---|
| 178 | void startLLChart2D (final Attributes meta) |
|---|
| 179 | throws SAXException; |
|---|
| 180 | |
|---|
| 181 | /** |
|---|
| 182 | * A container element end event handling method. |
|---|
| 183 | * @throws SAXException in case of a parsing error. |
|---|
| 184 | */ |
|---|
| 185 | void endLLChart2D () |
|---|
| 186 | throws SAXException; |
|---|
| 187 | |
|---|
| 188 | /** |
|---|
| 189 | * An empty element event handling method. |
|---|
| 190 | * @param meta value or null |
|---|
| 191 | * @throws SAXException in case of a parsing error. |
|---|
| 192 | */ |
|---|
| 193 | void handleGraphNumbersLinesStyle (final Attributes meta) |
|---|
| 194 | throws SAXException; |
|---|
| 195 | |
|---|
| 196 | /** |
|---|
| 197 | * A data element event handling method. |
|---|
| 198 | * @param data value or null |
|---|
| 199 | * @param meta attributes |
|---|
| 200 | * @throws SAXException in case of a parsing error. |
|---|
| 201 | */ |
|---|
| 202 | void handleData (final java.lang.String data, final Attributes meta) |
|---|
| 203 | throws SAXException; |
|---|
| 204 | |
|---|
| 205 | /** |
|---|
| 206 | * A container element start event handling method. |
|---|
| 207 | * @param meta attributes |
|---|
| 208 | * @throws SAXException in case of a parsing error. |
|---|
| 209 | */ |
|---|
| 210 | void startPieChart2D (final Attributes meta) |
|---|
| 211 | throws SAXException; |
|---|
| 212 | |
|---|
| 213 | /** |
|---|
| 214 | * A container element end event handling method. |
|---|
| 215 | * @throws SAXException in case of a parsing error. |
|---|
| 216 | */ |
|---|
| 217 | void endPieChart2D () |
|---|
| 218 | throws SAXException; |
|---|
| 219 | |
|---|
| 220 | /** |
|---|
| 221 | * An empty element event handling method. |
|---|
| 222 | * @param meta value or null |
|---|
| 223 | * @throws SAXException in case of a parsing error. |
|---|
| 224 | */ |
|---|
| 225 | void handleObject2DProperties (final Attributes meta) |
|---|
| 226 | throws SAXException; |
|---|
| 227 | |
|---|
| 228 | /** |
|---|
| 229 | * An empty element event handling method. |
|---|
| 230 | * @param meta value or null |
|---|
| 231 | * @throws SAXException in case of a parsing error. |
|---|
| 232 | */ |
|---|
| 233 | void handleWarningRegionProperties (final Attributes meta) |
|---|
| 234 | throws SAXException; |
|---|
| 235 | |
|---|
| 236 | /** |
|---|
| 237 | * An empty element event handling method. |
|---|
| 238 | * @param meta value or null |
|---|
| 239 | * @throws SAXException in case of a parsing error. |
|---|
| 240 | */ |
|---|
| 241 | void handleChart2DProperties (final Attributes meta) |
|---|
| 242 | throws SAXException; |
|---|
| 243 | |
|---|
| 244 | /** |
|---|
| 245 | * A container element start event handling method. |
|---|
| 246 | * @param meta attributes |
|---|
| 247 | * @throws SAXException in case of a parsing error. |
|---|
| 248 | */ |
|---|
| 249 | void startSet (final Attributes meta) |
|---|
| 250 | throws SAXException; |
|---|
| 251 | |
|---|
| 252 | /** |
|---|
| 253 | * A container element end event handling method. |
|---|
| 254 | * @throws SAXException in case of a parsing error. |
|---|
| 255 | */ |
|---|
| 256 | void endSet () |
|---|
| 257 | throws SAXException; |
|---|
| 258 | |
|---|
| 259 | /** |
|---|
| 260 | * A container element start event handling method. |
|---|
| 261 | * @param meta attributes |
|---|
| 262 | * @throws SAXException in case of a parsing error. |
|---|
| 263 | */ |
|---|
| 264 | void startGraphProperties (final Attributes meta) |
|---|
| 265 | throws SAXException; |
|---|
| 266 | |
|---|
| 267 | /** |
|---|
| 268 | * A container element end event handling method. |
|---|
| 269 | * @throws SAXException in case of a parsing error. |
|---|
| 270 | */ |
|---|
| 271 | void endGraphProperties () |
|---|
| 272 | throws SAXException; |
|---|
| 273 | |
|---|
| 274 | /** |
|---|
| 275 | * A data element event handling method. |
|---|
| 276 | * @param data value or null |
|---|
| 277 | * @param meta attributes |
|---|
| 278 | * @throws SAXException in case of a parsing error. |
|---|
| 279 | */ |
|---|
| 280 | void handleColorsCustom (final String data, final Attributes meta) |
|---|
| 281 | throws SAXException; |
|---|
| 282 | |
|---|
| 283 | /** |
|---|
| 284 | * A container element start event handling method. |
|---|
| 285 | * @param meta attributes |
|---|
| 286 | * @throws SAXException in case of a parsing error. |
|---|
| 287 | */ |
|---|
| 288 | void startLegendProperties (final Attributes meta) |
|---|
| 289 | throws SAXException; |
|---|
| 290 | |
|---|
| 291 | /** |
|---|
| 292 | * A container element end event handling method. |
|---|
| 293 | * @throws SAXException in case of a parsing error. |
|---|
| 294 | */ |
|---|
| 295 | void endLegendProperties () |
|---|
| 296 | throws SAXException; |
|---|
| 297 | |
|---|
| 298 | } |
|---|