001: /*
002: *
003: *
004: * Portions Copyright 2000-2007 Sun Microsystems, Inc. All Rights
005: * Reserved. Use is subject to license terms.
006: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
007: *
008: * This program is free software; you can redistribute it and/or
009: * modify it under the terms of the GNU General Public License version
010: * 2 only, as published by the Free Software Foundation.
011: *
012: * This program is distributed in the hope that it will be useful, but
013: * WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * General Public License version 2 for more details (a copy is
016: * included at /legal/license.txt).
017: *
018: * You should have received a copy of the GNU General Public License
019: * version 2 along with this work; if not, write to the Free Software
020: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
021: * 02110-1301 USA
022: *
023: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
024: * Clara, CA 95054 or visit www.sun.com if you need additional
025: * information or have any questions.
026: */
027:
028: /*****************************************************************************
029: * Copyright (C) The Apache Software Foundation. All rights reserved. *
030: * ------------------------------------------------------------------------- *
031: * This software is published under the terms of the Apache Software License *
032: * version 1.1, a copy of which has been included with this distribution in *
033: * the LICENSE file. *
034: *****************************************************************************/package com.sun.perseus.util;
035:
036: /**
037: * Define SVG constants, such as tag names, attribute names and URI. This
038: * interface contains constants for:
039: * <ul>
040: * <li>XML Generic constants, such as <code>XML_NAMESPACE_URI</code></li>
041: * <li>CSS constants, such as </code>CSS_FILL_PROPERTY</code> and corresponding
042: * values (e.g., <code>CSS_INHERIT_VALUE</code>)</li>
043: * <li>SVG specific constants, such as <code>SVG_PRESERVE_ASPECT_RATIO_ATTRIBUTE</code></li>
044: * </ul>
045: *
046: * @version $Id: SVGConstants.java,v 1.4 2006/04/21 06:35:52 st125089 Exp $
047: */
048: public interface SVGConstants {
049: //
050: // XML Constants
051: // =========================================================================
052:
053: /**
054: * The XML namespace URI.
055: */
056: String XML_NAMESPACE_URI = "http://www.w3.org/XML/1998/namespace";
057:
058: /**
059: * The xmlns namespace URI.
060: */
061: String XMLNS_NAMESPACE_URI = "http://www.w3.org/2000/xmlns/";
062:
063: /**
064: * The xmlns prefix
065: */
066: String XMLNS_PREFIX = "xmlns";
067:
068: /**
069: * The xlink namespace URI
070: */
071: String XLINK_NAMESPACE_URI = "http://www.w3.org/1999/xlink";
072:
073: /**
074: * The Perseus namespace URI
075: */
076: String PERSEUS_NAMESPACE_URI = "http://www.sun.com/svg/perseus";
077:
078: /**
079: * Namespace prefix property for XML parsers
080: */
081: String XMLNS_ATTRIBUTES_NEEDED = "http://xml.org/sax/features/namespace-prefixes";
082:
083: /**
084: * The xlink prefix
085: */
086: String XLINK_PREFIX = "xlink";
087:
088: String XML_PREFIX = "xml";
089: String XML_LANG_ATTRIBUTE = XML_PREFIX + ":lang";
090: String XML_SPACE_ATTRIBUTE_LOCAL_NAME = "space";
091: String XML_SPACE_ATTRIBUTE = XML_PREFIX + ":"
092: + XML_SPACE_ATTRIBUTE_LOCAL_NAME;
093: String XML_BASE_ATTRIBUTE_LOCAL_NAME = "base";
094: String XML_BASE_ATTRIBUTE = XML_PREFIX + ":"
095: + XML_BASE_ATTRIBUTE_LOCAL_NAME;
096:
097: String XML_DEFAULT_VALUE = "default";
098: String XML_PRESERVE_VALUE = "preserve";
099:
100: String ATTR_ID = "id";
101:
102: //
103: // Common Constants
104: // =========================================================================
105: char COMMA = ',';
106: String COMMA_STR = ",";
107: String EMPTY = "";
108: char SPACE = ' ';
109: String SPACE_STR = " ";
110: String COMMA_SPACE = ", ";
111: char SEMI_COLON = ';';
112:
113: //
114: // Path commands
115: // =========================================================================
116: char PATH_MOVE_TO_COMMAND = 'M';
117: char PATH_LINE_TO_COMMAND = 'L';
118: char PATH_QUAD_TO_COMMAND = 'Q';
119: char PATH_CUBIC_TO_COMMAND = 'C';
120: char PATH_CLOSE_COMMAND = 'Z';
121:
122: //
123: // Perseus Constants
124: // =========================================================================
125: String PERSEUS_CHILDREN_REQUIRED_ATTRIBUTE = "externalResourcesRequired";
126:
127: //
128: // CSS Constants
129: // =========================================================================
130:
131: //
132: // The CSS property names.
133: //
134: String CSS_COLOR_PROPERTY = "color";
135: String CSS_COLOR_RENDERING_PROPERTY = "color-rendering";
136: String CSS_DISPLAY_PROPERTY = "display";
137: String CSS_FILL_PROPERTY = "fill";
138: String CSS_FILL_OPACITY_PROPERTY = "fill-opacity";
139: String CSS_FILL_RULE_PROPERTY = "fill-rule";
140: String CSS_FONT_PROPERTY = "font";
141: String CSS_FONT_FAMILY_PROPERTY = "font-family";
142: String CSS_FONT_SIZE_PROPERTY = "font-size";
143: String CSS_FONT_SIZE_ADJUST_PROPERTY = "font-size-adjust";
144: String CSS_FONT_STRETCH_PROPERTY = "font-stretch";
145: String CSS_FONT_STYLE_PROPERTY = "font-style";
146: String CSS_FONT_VARIANT_PROPERTY = "font-variant";
147: String CSS_FONT_WEIGHT_PROPERTY = "font-weight";
148: String CSS_OPACITY_PROPERTY = "opacity";
149: String CSS_OVERFLOW_PROPERTY = "overflow";
150: String CSS_STROKE_PROPERTY = "stroke";
151: String CSS_STROKE_DASHARRAY_PROPERTY = "stroke-dasharray";
152: String CSS_STROKE_DASHOFFSET_PROPERTY = "stroke-dashoffset";
153: String CSS_STROKE_LINECAP_PROPERTY = "stroke-linecap";
154: String CSS_STROKE_LINEJOIN_PROPERTY = "stroke-linejoin";
155: String CSS_STROKE_MITERLIMIT_PROPERTY = "stroke-miterlimit";
156: String CSS_STROKE_OPACITY_PROPERTY = "stroke-opacity";
157: String CSS_STROKE_WIDTH_PROPERTY = "stroke-width";
158: String CSS_TEXT_ANCHOR_PROPERTY = "text-anchor";
159: String CSS_VISIBILITY_PROPERTY = "visibility";
160:
161: //
162: // The CSS property values.
163: //
164: String CSS_100_VALUE = "100";
165: String CSS_200_VALUE = "200";
166: String CSS_300_VALUE = "300";
167: String CSS_400_VALUE = "400";
168: String CSS_500_VALUE = "500";
169: String CSS_600_VALUE = "600";
170: String CSS_700_VALUE = "700";
171: String CSS_800_VALUE = "800";
172: String CSS_900_VALUE = "900";
173: String CSS_ACCUMULATE_VALUE = "accumulate";
174: String CSS_ACTIVEBORDER_VALUE = "activeborder";
175: String CSS_ACTIVECAPTION_VALUE = "activecaption";
176: String CSS_AFTER_EDGE_VALUE = "after-edge";
177: String CSS_ALL_VALUE = "all";
178: String CSS_ALPHABETIC_VALUE = "alphabetic";
179: String CSS_AQUA_VALUE = "aqua";
180: String CSS_AUTO_VALUE = "auto";
181: String CSS_BACKGROUND_VALUE = "background";
182: String CSS_BEVEL_VALUE = "bevel";
183: String CSS_BLACK_VALUE = "black";
184: String CSS_BLOCK_VALUE = "block";
185: String CSS_BLUE_VALUE = "blue";
186: String CSS_BOLDER_VALUE = "bolder";
187: String CSS_BOLD_VALUE = "bold";
188: String CSS_BUTT_VALUE = "butt";
189: String CSS_CENTER_VALUE = "center";
190: String CSS_COLLAPSE_VALUE = "collapse";
191: String CSS_COMPACT_VALUE = "compact";
192: String CSS_CURRENTCOLOR_VALUE = "currentColor";
193: String CSS_DEFAULT_VALUE = "default";
194: String CSS_END_VALUE = "end";
195: String CSS_EVENODD_VALUE = "evenodd";
196: String CSS_EXPANDED_VALUE = "expanded";
197: String CSS_FILL_VALUE = "fill";
198: String CSS_FUCHSIA_VALUE = "fuchsia";
199: String CSS_GRAY_VALUE = "gray";
200: String CSS_GREEN_VALUE = "green";
201: String CSS_HIDDEN_VALUE = "hidden";
202: String CSS_INHERIT_VALUE = "inherit";
203: String CSS_INLINE_TABLE_VALUE = "inline-table";
204: String CSS_INLINE_VALUE = "inline";
205: String CSS_ITALIC_VALUE = "italic";
206: String CSS_LIGHTER_VALUE = "lighter";
207: String CSS_LIME_VALUE = "lime";
208: String CSS_LIST_ITEM_VALUE = "list-item";
209: String CSS_MARKER_VALUE = "marker";
210: String CSS_MAROON_VALUE = "maroon";
211: String CSS_MIDDLE_VALUE = "middle";
212: String CSS_MITER_VALUE = "miter";
213: String CSS_MONOSPACE_VALUE = "monospace";
214: String CSS_NAVY_VALUE = "navy";
215: String CSS_NONE_VALUE = "none";
216: String CSS_NONZERO_VALUE = "nonzero";
217: String CSS_NORMAL_VALUE = "normal";
218: String CSS_OBLIQUE_VALUE = "oblique";
219: String CSS_OLIVE_VALUE = "olive";
220: String CSS_ORANGE_VALUE = "orange";
221: String CSS_PINK_VALUE = "pink";
222: String CSS_PURPLE_VALUE = "purple";
223: String CSS_RED_VALUE = "red";
224: String CSS_ROUND_VALUE = "round";
225: String CSS_RUN_IN_VALUE = "run-in";
226: String CSS_SANS_SERIF_VALUE = "sans-serif";
227: String CSS_SERIF_VALUE = "serif";
228: String CSS_SILVER_VALUE = "silver";
229: String CSS_SQUARE_VALUE = "square";
230: String CSS_START_VALUE = "start";
231: String CSS_TABLE_CAPTION_VALUE = "table-caption";
232: String CSS_TABLE_CELL_VALUE = "table-cell";
233: String CSS_TABLE_COLUMN_GROUP_VALUE = "table-column-group";
234: String CSS_TABLE_COLUMN_VALUE = "table-column";
235: String CSS_TABLE_FOOTER_GROUP_VALUE = "table-footer-group";
236: String CSS_TABLE_HEADER_GROUP_VALUE = "table-header-group";
237: String CSS_TABLE_ROW_GROUP_VALUE = "table-row-group";
238: String CSS_TABLE_ROW_VALUE = "table-row";
239: String CSS_TABLE_VALUE = "table";
240: String CSS_TEAL_VALUE = "teal";
241: String CSS_VISIBLE_VALUE = "visible";
242: String CSS_WHITE_VALUE = "white";
243: String CSS_YELLOW_VALUE = "yellow";
244:
245: //
246: // SVG Constants
247: // =========================================================================
248:
249: /////////////////////////////////////////////////////////////////////////
250: // SVG general
251: /////////////////////////////////////////////////////////////////////////
252:
253: /**
254: * The SVG namespace URI. Note that the SVG namespace is constant accross
255: * SVG versions.
256: */
257: String SVG_NAMESPACE_URI = "http://www.w3.org/2000/svg";
258:
259: //////////////////////////////////////////////////////////////////////////
260: // Events type and attributes
261: //////////////////////////////////////////////////////////////////////////
262:
263: /**
264: * The event type for MouseEvent.
265: */
266: String SVG_MOUSEEVENTS_EVENT_TYPE = "MouseEvents";
267:
268: /**
269: * The event type for UIEvent.
270: */
271: String SVG_UIEVENTS_EVENT_TYPE = "UIEvents";
272:
273: /**
274: * The event type for SVGEvent.
275: */
276: String SVG_SVGEVENTS_EVENT_TYPE = "SVGEvents";
277:
278: /**
279: * The event type for KeyEvent.
280: */
281: String SVG_KEYEVENTS_EVENT_TYPE = "KeyEvents";
282:
283: // ---------------------------------------------------------------------
284:
285: /**
286: * The event type for 'keydown' KeyEvent.
287: */
288: String SVG_KEYDOWN_EVENT_TYPE = "keydown";
289:
290: /**
291: * The event type for 'keypress' KeyEvent.
292: */
293: String SVG_KEYPRESS_EVENT_TYPE = "keypress";
294:
295: /**
296: * The event type for 'keyup' KeyEvent.
297: */
298: String SVG_KEYUP_EVENT_TYPE = "keyup";
299:
300: /**
301: * The event type for 'click' MouseEvent.
302: */
303: String SVG_CLICK_EVENT_TYPE = "click";
304:
305: /**
306: * The event type for 'mouseup' MouseEvent.
307: */
308: String SVG_MOUSEUP_EVENT_TYPE = "mouseup";
309:
310: /**
311: * The event type for 'mousedown' MouseEvent.
312: */
313: String SVG_MOUSEDOWN_EVENT_TYPE = "mousedown";
314:
315: /**
316: * The event type for 'mousemove' MouseEvent.
317: */
318: String SVG_MOUSEMOVE_EVENT_TYPE = "mousemove";
319:
320: /**
321: * The event type for 'mouseout' MouseEvent.
322: */
323: String SVG_MOUSEOUT_EVENT_TYPE = "mouseout";
324:
325: /**
326: * The event type for 'mouseover' MouseEvent.
327: */
328: String SVG_MOUSEOVER_EVENT_TYPE = "mouseover";
329:
330: /**
331: * The event type for 'DOMFocusIn' UIEvent.
332: */
333: String SVG_DOMFOCUSIN_EVENT_TYPE = "DOMFocusIn";
334:
335: /**
336: * The event type for 'DOMFocusOut' UIEvent.
337: */
338: String SVG_DOMFOCUSOUT_EVENT_TYPE = "DOMFocusOut";
339:
340: /**
341: * The event type for 'DOMActivate' UIEvent.
342: */
343: String SVG_DOMACTIVATE_EVENT_TYPE = "DOMActivate";
344:
345: /**
346: * The event type for 'SVGLoad' SVGEvent.
347: */
348: String SVG_SVGLOAD_EVENT_TYPE = "SVGLoad";
349:
350: /**
351: * The event type for 'SVGUnload' SVGEvent.
352: */
353: String SVG_SVGUNLOAD_EVENT_TYPE = "SVGUnload";
354:
355: /**
356: * The event type for 'SVGAbort' SVGEvent.
357: */
358: String SVG_SVGABORT_EVENT_TYPE = "SVGAbort";
359:
360: /**
361: * The event type for 'SVGError' SVGEvent.
362: */
363: String SVG_SVGERROR_EVENT_TYPE = "SVGError";
364:
365: /**
366: * The event type for 'SVGResize' SVGEvent.
367: */
368: String SVG_SVGRESIZE_EVENT_TYPE = "SVGResize";
369:
370: /**
371: * The event type for 'SVGScroll' SVGEvent.
372: */
373: String SVG_SVGSCROLL_EVENT_TYPE = "SVGScroll";
374:
375: /**
376: * The event type for 'SVGZoom' SVGEvent.
377: */
378: String SVG_SVGZOOM_EVENT_TYPE = "SVGZoom";
379:
380: /**
381: * The event type for focus in used in SMIL animation attributes.
382: */
383: String SVG_SMIL_FOCUS_IN_EVENT_TYPE = "focusin";
384:
385: /**
386: * The event type for focusout used in SMIL animation attributes.
387: */
388: String SVG_SMIL_FOCUS_OUT_EVENT_TYPE = "focusout";
389:
390: /**
391: * The event type for activate used in SMIL animation attributes.
392: */
393: String SVG_SMIL_ACTIVATE_EVENT_TYPE = "activate";
394:
395: // ---------------------------------------------------------------------
396:
397: /**
398: * The 'onkeyup' attribute name of type KeyEvents.
399: */
400: // Perseus 1.5 String SVG_ONKEYUP_ATTRIBUTE = "onkeyup";
401: /**
402: * The 'onkeydown' attribute name of type KeyEvents.
403: */
404: // Perseus 1.5 String SVG_ONKEYDOWN_ATTRIBUTE = "onkeydown";
405: /**
406: * The 'onkeypress' attribute name of type KeyEvents.
407: */
408: // Perseus 1.5 String SVG_ONKEYPRESS_ATTRIBUTE = "onkeypress";
409: /**
410: * The 'onabort' attribute name of type SVGEvents.
411: */
412: // Perseus 1.5 String SVG_ONABORT_ATTRIBUTE = "onabort";
413: /**
414: * The 'onabort' attribute name of type SVGEvents.
415: */
416: // Perseus 1.5 String SVG_ONACTIVATE_ATTRIBUTE = "onactivate";
417: /**
418: * The 'onbegin' attribute name of type SVGEvents.
419: */
420: // Perseus 1.5 String SVG_ONBEGIN_ATTRIBUTE = "onbegin";
421: /**
422: * The 'onclick' attribute name of type MouseEvents.
423: */
424: // Perseus 1.5 String SVG_ONCLICK_ATTRIBUTE = "onclick";
425: /**
426: * The 'onend' attribute name of type SVGEvents.
427: */
428: // Perseus 1.5 String SVG_ONEND_ATTRIBUTE = "onend";
429: /**
430: * The 'onerror' attribute name of type SVGEvents.
431: */
432: // Perseus 1.5 String SVG_ONERROR_ATTRIBUTE = "onerror";
433: /**
434: * The 'onfocusin' attribute name of type UIEvents.
435: */
436: // Perseus 1.5 String SVG_ONFOCUSIN_ATTRIBUTE = "onfocusin";
437: /**
438: * The 'onfocusout' attribute name of type UIEvents.
439: */
440: // Perseus 1.5 String SVG_ONFOCUSOUT_ATTRIBUTE = "onfocusout";
441: /**
442: * The 'onload' attribute name of type SVGEvents.
443: */
444: // Perseus 1.5 String SVG_ONLOAD_ATTRIBUTE = "onload";
445: /**
446: * The 'onmousedown' attribute name of type MouseEvents.
447: */
448: // Perseus 1.5 String SVG_ONMOUSEDOWN_ATTRIBUTE = "onmousedown";
449: /**
450: * The 'onmousemove' attribute name of type MouseEvents.
451: */
452: // Perseus 1.5 String SVG_ONMOUSEMOVE_ATTRIBUTE = "onmousemove";
453: /**
454: * The 'onmouseout' attribute name of type MouseEvents.
455: */
456: // Perseus 1.5 String SVG_ONMOUSEOUT_ATTRIBUTE = "onmouseout";
457: /**
458: * The 'onmouseover' attribute name of type MouseEvents.
459: */
460: // Perseus 1.5 String SVG_ONMOUSEOVER_ATTRIBUTE = "onmouseover";
461: /**
462: * The 'onmouseup' attribute name of type MouseEvents.
463: */
464: // Perseus 1.5 String SVG_ONMOUSEUP_ATTRIBUTE = "onmouseup";
465: /**
466: * The 'onrepeat' attribute name of type SVGEvents.
467: */
468: // Perseus 1.5 String SVG_ONREPEAT_ATTRIBUTE = "onrepeat";
469: /**
470: * The 'onresize' attribute name of type SVGEvents.
471: */
472: // Perseus 1.5 String SVG_ONRESIZE_ATTRIBUTE = "onresize";
473: /**
474: * The 'onscroll' attribute name of type SVGEvents.
475: */
476: // Perseus 1.5 String SVG_ONSCROLL_ATTRIBUTE = "onscroll";
477: /**
478: * The 'onunload' attribute name of type SVGEvents.
479: */
480: // Perseus 1.5 String SVG_ONUNLOAD_ATTRIBUTE = "onunload";
481: /**
482: * The 'onzoom' attribute name of type SVGEvents.
483: */
484: // Perseus 1.5 String SVG_ONZOOM_ATTRIBUTE = "onzoom";
485: /////////////////////////////////////////////////////////////////////////
486: // SVG features
487: /////////////////////////////////////////////////////////////////////////
488:
489: /////////////////////////////////////////////////////////////////////////
490: // SVG tags
491: /////////////////////////////////////////////////////////////////////////
492: String SVG_A_TAG = "a";
493: String SVG_ANIMATE_TAG = "animate";
494: String SVG_ANIMATE_COLOR_TAG = "animateColor";
495: String SVG_ANIMATE_MOTION_TAG = "animateMotion";
496: String SVG_ANIMATE_TRANSFORM_TAG = "animateTransform";
497: String SVG_AUDIO_TAG = "audio";
498: String SVG_CIRCLE_TAG = "circle";
499: String SVG_DEFS_TAG = "defs";
500: String SVG_DESC_TAG = "desc";
501: String SVG_ELLIPSE_TAG = "ellipse";
502: String SVG_FILTER_TAG = "filter";
503: String SVG_FONT_TAG = "font";
504: String SVG_FONT_FACE_TAG = "font-face";
505: String SVG_FONT_FACE_NAME_TAG = "font-face-name";
506: String SVG_FONT_FACE_SRC_TAG = "font-face-src";
507: String SVG_FOREIGN_OBJECT_TAG = "foreignObject";
508: String SVG_G_TAG = "g";
509: String SVG_GLYPH_TAG = "glyph";
510: String SVG_HKERN_TAG = "hkern";
511: String SVG_IMAGE_TAG = "image";
512: String SVG_LINE_TAG = "line";
513: String SVG_LINEAR_GRADIENT_TAG = "linearGradient";
514: String SVG_METADATA_TAG = "metadata";
515: String SVG_MISSING_GLYPH_TAG = "missing-glyph";
516: String SVG_MPATH_TAG = "mpath";
517: String SVG_PAR_TAG = "par";
518: String SVG_PATH_TAG = "path";
519: String SVG_POLYGON_TAG = "polygon";
520: String SVG_POLYLINE_TAG = "polyline";
521: String SVG_RECT_TAG = "rect";
522: String SVG_SET_TAG = "set";
523: String SVG_SOLID_COLOR_TAG = "solidColor";
524: String SVG_STOP_TAG = "stop";
525: String SVG_SVG_TAG = "svg";
526: String SVG_SWITCH_TAG = "switch";
527: String SVG_SYMBOL_TAG = "symbol";
528: String SVG_TEXT_TAG = "text";
529: String SVG_TITLE_TAG = "title";
530: String SVG_TREF_TAG = "tref";
531: String SVG_TSPAN_TAG = "tspan";
532: String SVG_USE_TAG = "use";
533:
534: /////////////////////////////////////////////////////////////////////////
535: // SVG attributes
536: /////////////////////////////////////////////////////////////////////////
537:
538: String SVG_ACCENT_HEIGHT_ATTRIBUTE = "accent-height";
539: String SVG_ACCUMULATE_ATTRIBUTE = "accumulate";
540: String SVG_ADDITIVE_ATTRIBUTE = "additive";
541: String SVG_ALPHABETIC_ATTRIBUTE = "alphabetic";
542: String SVG_AMPLITUDE_ATTRIBUTE = "amplitude";
543: String SVG_ARABIC_FORM_ATTRIBUTE = "arabic-form";
544: String SVG_ASCENT_ATTRIBUTE = "ascent";
545: String SVG_ATTRIBUTE_NAME_ATTRIBUTE = "attributeName";
546: String SVG_AUDIO_LEVEL_ATTRIBUTE = "audio-level";
547: String SVG_BASE_PROFILE_ATTRIBUTE = "baseProfile";
548: String SVG_BEGIN_ATTRIBUTE = "begin";
549: String SVG_BBOX_ATTRIBUTE = "bbox";
550: String SVG_BIAS_ATTRIBUTE = "bias";
551: String SVG_BY_ATTRIBUTE = "by";
552: String SVG_CALC_MODE_ATTRIBUTE = "calcMode";
553: String SVG_CAP_HEIGHT_ATTRIBUTE = "cap-height";
554: String SVG_COLOR_ATTRIBUTE = CSS_COLOR_PROPERTY;
555: String SVG_COLOR_RENDERING_ATTRIBUTE = CSS_COLOR_RENDERING_PROPERTY;
556: String SVG_CX_ATTRIBUTE = "cx";
557: String SVG_CY_ATTRIBUTE = "cy";
558: String SVG_DESCENT_ATTRIBUTE = "descent";
559: String SVG_DISPLAY_ATTRIBUTE = "display";
560: String SVG_DUR_ATTRIBUTE = "dur";
561: String SVG_DX_ATTRIBUTE = "dx";
562: String SVG_DY_ATTRIBUTE = "dy";
563: String SVG_D_ATTRIBUTE = "d";
564: String SVG_END_ATTRIBUTE = "end";
565: String SVG_FILL_ATTRIBUTE = CSS_FILL_PROPERTY;
566: String SVG_FILL_OPACITY_ATTRIBUTE = CSS_FILL_OPACITY_PROPERTY;
567: String SVG_FILL_RULE_ATTRIBUTE = CSS_FILL_RULE_PROPERTY;
568: String SVG_FONT_FAMILY_ATTRIBUTE = CSS_FONT_FAMILY_PROPERTY;
569: String SVG_FONT_SIZE_ATTRIBUTE = CSS_FONT_SIZE_PROPERTY;
570: String SVG_FONT_STRETCH_ATTRIBUTE = CSS_FONT_STRETCH_PROPERTY;
571: String SVG_FONT_STYLE_ATTRIBUTE = CSS_FONT_STYLE_PROPERTY;
572: String SVG_FONT_VARIANT_ATTRIBUTE = CSS_FONT_VARIANT_PROPERTY;
573: String SVG_FONT_WEIGHT_ATTRIBUTE = CSS_FONT_WEIGHT_PROPERTY;
574: String SVG_FROM_ATTRIBUTE = "from";
575: String SVG_FX_ATTRIBUTE = "fx";
576: String SVG_FY_ATTRIBUTE = "fy";
577: String SVG_G1_ATTRIBUTE = "g1";
578: String SVG_G2_ATTRIBUTE = "g2";
579: String SVG_GLYPH_NAME_ATTRIBUTE = "glyph-name";
580: String SVG_GRADIENT_TRANSFORM_ATTRIBUTE = "gradientTransform";
581: String SVG_GRADIENT_UNITS_ATTRIBUTE = "gradientUnits";
582: String SVG_OPACITY_ATTRIBUTE = CSS_OPACITY_PROPERTY;
583: String SVG_HANGING_ATTRIBUTE = "hanging";
584: String SVG_HEIGHT_ATTRIBUTE = "height";
585: String SVG_HORIZ_ADV_X_ATTRIBUTE = "horiz-adv-x";
586: String SVG_HORIZ_ORIGIN_X_ATTRIBUTE = "horiz-origin-x";
587: String SVG_HREF_ATTRIBUTE = "href";
588: String SVG_ID_ATTRIBUTE = "id";
589: String SVG_K_ATTRIBUTE = "k";
590: String SVG_KEY_POINTS_ATTRIBUTE = "keyPoints";
591: String SVG_KEY_SPLINES_ATTRIBUTE = "keySplines";
592: String SVG_KEY_TIMES_ATTRIBUTE = "keyTimes";
593: String SVG_LANG_ATTRIBUTE = "lang";
594: String SVG_MAX_ATTRIBUTE = "max";
595: String SVG_MIN_ATTRIBUTE = "min";
596: String SVG_MOTION_PSEUDO_ATTRIBUTE = "#motion";
597: String SVG_NAME_ATTRIBUTE = "name";
598: String SVG_OFFSET_ATTRIBUTE = "offset";
599: String SVG_PANOSE_1_ATTRIBUTE = "panose-1";
600: String SVG_PATH_ATTRIBUTE = "path";
601: String SVG_POINTS_ATTRIBUTE = "points";
602: String SVG_PRESERVE_ASPECT_RATIO_ATTRIBUTE = "preserveAspectRatio";
603: String SVG_RADIAL_GRADIENT_TAG = "radialGradient";
604: String SVG_REPEAT_COUNT_ATTRIBUTE = "repeatCount";
605: String SVG_REPEAT_DUR_ATTRIBUTE = "repeatDur";
606: String SVG_REQUIRED_FEATURES_ATTRIBUTE = "requiredFeatures";
607: String SVG_REQUIRED_EXTENSIONS_ATTRIBUTE = "requiredExtensions";
608: String SVG_RESTART_ATTRIBUTE = "restart";
609: String SVG_RX_ATTRIBUTE = "rx";
610: String SVG_RY_ATTRIBUTE = "ry";
611: String SVG_R_ATTRIBUTE = "r";
612: String SVG_ROTATE_ATTRIBUTE = "rotate";
613: String SVG_SLOPE_ATTRIBUTE = "slope";
614: String SVG_SOLID_COLOR_ATTRIBUTE = "solid-color";
615: String SVG_SOLID_OPACITY_ATTRIBUTE = "solid-opacity";
616: String SVG_SPACE_ATTRIBUTE = "space";
617: String SVG_STEMH_ATTRIBUTE = "stemh";
618: String SVG_STEMV_ATTRIBUTE = "stemv";
619: String SVG_STOP_COLOR_ATTRIBUTE = "stop-color";
620: String SVG_STOP_OPACITY_ATTRIBUTE = "stop-opacity";
621: String SVG_STROKE_ATTRIBUTE = CSS_STROKE_PROPERTY;
622: String SVG_STROKE_DASHARRAY_ATTRIBUTE = CSS_STROKE_DASHARRAY_PROPERTY;
623: String SVG_STROKE_DASHOFFSET_ATTRIBUTE = CSS_STROKE_DASHOFFSET_PROPERTY;
624: String SVG_STROKE_LINECAP_ATTRIBUTE = CSS_STROKE_LINECAP_PROPERTY;
625: String SVG_STROKE_LINEJOIN_ATTRIBUTE = CSS_STROKE_LINEJOIN_PROPERTY;
626: String SVG_STROKE_MITERLIMIT_ATTRIBUTE = CSS_STROKE_MITERLIMIT_PROPERTY;
627: String SVG_STROKE_OPACITY_ATTRIBUTE = CSS_STROKE_OPACITY_PROPERTY;
628: String SVG_STROKE_WIDTH_ATTRIBUTE = CSS_STROKE_WIDTH_PROPERTY;
629: String SVG_STYLE_ATTRIBUTE = "style";
630: String SVG_SYSTEM_LANGUAGE_ATTRIBUTE = "systemLanguage";
631: String SVG_TARGET_ATTRIBUTE = "target";
632: String SVG_TEXT_ANCHOR_ATTRIBUTE = CSS_TEXT_ANCHOR_PROPERTY;
633: String SVG_TEXT_LENGTH_ATTRIBUTE = "textLength";
634: String SVG_TEXT_PSEUDO_ATTRIBUTE = "#text";
635: String SVG_TITLE_ATTRIBUTE = "title";
636: String SVG_TO_ATTRIBUTE = "to";
637: String SVG_TRANSFORM_ATTRIBUTE = "transform";
638: String SVG_TYPE_ATTRIBUTE = "type";
639: String SVG_U1_ATTRIBUTE = "u1";
640: String SVG_U2_ATTRIBUTE = "u2";
641: String SVG_UNICODE_ATTRIBUTE = "unicode";
642: String SVG_UNICODE_RANGE_ATTRIBUTE = "unicode-range";
643: String SVG_UNITS_PER_EM_ATTRIBUTE = "units-per-em";
644: String SVG_VALUES_ATTRIBUTE = "values";
645: String SVG_VERSION_ATTRIBUTE = "version";
646: String SVG_VIEW_BOX_ATTRIBUTE = "viewBox";
647: String SVG_VISIBILITY_ATTRIBUTE = "visibility";
648: String SVG_WIDTH_ATTRIBUTE = "width";
649: String SVG_WIDTHS_ATTRIBUTE = "widths";
650: String SVG_X1_ATTRIBUTE = "x1";
651: String SVG_X2_ATTRIBUTE = "x2";
652: String SVG_X_ATTRIBUTE = "x";
653: String SVG_X_HEIGHT_ATTRIBUTE = "xHeight";
654: String SVG_Y1_ATTRIBUTE = "y1";
655: String SVG_Y2_ATTRIBUTE = "y2";
656: String SVG_Y_ATTRIBUTE = "y";
657: String SVG_ZOOM_AND_PAN_ATTRIBUTE = "zoomAndPan";
658:
659: /////////////////////////////////////////////////////////////////////////
660: // SVG attribute value
661: /////////////////////////////////////////////////////////////////////////
662:
663: String SVG_ALIGN_VALUE = "align";
664: String SVG_ALWAYS_VALUE = "always";
665: String SVG_AUTO_VALUE = "auto";
666: String SVG_AUTO_REVERSE_VALUE = "auto-reverse";
667: String SVG_DISABLE_VALUE = "disable";
668: String SVG_DISCRETE_VALUE = "discrete";
669: String SVG_FALSE_VALUE = "false";
670: String SVG_FREEZE_VALUE = "freeze";
671: String SVG_INDEFINITE_VALUE = "indefinite";
672: String SVG_LINEAR_VALUE = "linear";
673: String SVG_MAGNIFY_VALUE = "magnify";
674: String SVG_MEDIA_VALUE = "media";
675: String SVG_NEVER_VALUE = "never";
676: String SVG_NONE_VALUE = "none";
677: String SVG_OBJECT_BOUND_BOX_VALUE = "objectBoundingBox";
678: String SVG_PACED_VALUE = "paced";
679: String SVG_PRESERVE_VALUE = "preserve";
680: String SVG_REMOVE_VALUE = "remove";
681: String SVG_REPLACE_VALUE = "replace";
682: String SVG_ROTATE_VALUE = "rotate";
683: String SVG_SCALE_VALUE = "scale";
684: String SVG_SKEW_X = "skewX";
685: String SVG_SKEW_Y = "skewY";
686: String SVG_SPLINE_VALUE = "spline";
687: String SVG_SUM_VALUE = "sum";
688: String SVG_TRANSLATE_VALUE = "translate";
689: String SVG_TRUE_VALUE = "true";
690: String SVG_USER_SPACE_ON_USE_VALUE = "userSpaceOnUse";
691: String SVG_WHEN_NOT_ACTIVE_VALUE = "whenNotActive";
692:
693: ///////////////////////////////////////////////////////////////////
694: // default values for attributes
695: ///////////////////////////////////////////////////////////////////
696:
697: String SVG_BASE_PROFILE_TINY_VALUE = "tiny";
698: String SVG_BEGIN_DEFAULT_VALUE = "0s";
699: String SVG_CIRCLE_CX_DEFAULT_VALUE = "0";
700: String SVG_CIRCLE_CY_DEFAULT_VALUE = "0";
701: String SVG_ELLIPSE_CX_DEFAULT_VALUE = "0";
702: String SVG_ELLIPSE_CY_DEFAULT_VALUE = "0";
703: String SVG_FONT_FACE_FONT_STRETCH_DEFAULT_VALUE = CSS_NORMAL_VALUE;
704: String SVG_FONT_FACE_FONT_SIZE_DEFAULT_VALUE = CSS_ALL_VALUE;
705: String SVG_FONT_FACE_FONT_STYLE_DEFAULT_VALUE = CSS_ALL_VALUE;
706: String SVG_FONT_FACE_FONT_VARIANT_DEFAULT_VALUE = CSS_NORMAL_VALUE;
707: String SVG_FONT_FACE_FONT_WEIGHT_DEFAULT_VALUE = CSS_ALL_VALUE;
708: String SVG_FONT_FACE_PANOSE_1_DEFAULT_VALUE = "0 0 0 0 0 0 0 0 0 0";
709: String SVG_FONT_FACE_SLOPE_DEFAULT_VALUE = "0";
710: String SVG_FONT_FACE_UNITS_PER_EM_DEFAULT_VALUE = "1000";
711: String SVG_FONT_HORIZ_ORIGIN_X_DEFAULT_VALUE = "0";
712: String SVG_FOREIGN_OBJECT_X_DEFAULT_VALUE = "0";
713: String SVG_FOREIGN_OBJECT_Y_DEFAULT_VALUE = "0";
714: String SVG_IMAGE_X_DEFAULT_VALUE = "0";
715: String SVG_IMAGE_Y_DEFAULT_VALUE = "0";
716: String SVG_IMAGE_PRESERVE_ASPECT_RATIO_DEFAULT_VALUE = "xMidYMid meet";
717: String SVG_LINE_X1_DEFAULT_VALUE = "0";
718: String SVG_LINE_X2_DEFAULT_VALUE = "0";
719: String SVG_LINE_Y1_DEFAULT_VALUE = "0";
720: String SVG_LINE_Y2_DEFAULT_VALUE = "0";
721: String SVG_PANOSE_1_DEFAULT_VALUE = "0 0 0 0 0 0 0 0 0 0";
722: String SVG_RECT_X_DEFAULT_VALUE = "0";
723: String SVG_RECT_Y_DEFAULT_VALUE = "0";
724: String SVG_RECT_RX_DEFAULT_VALUE = null;
725: String SVG_RECT_RY_DEFAULT_VALUE = null;
726: String SVG_SVG_HEIGHT_DEFAULT_VALUE = "100%";
727: String SVG_SVG_WIDTH_DEFAULT_VALUE = "100%";
728: String SVG_SVG_PRESERVE_ASPECT_RATIO_DEFAULT_VALUE = "xMidYMid meet";
729: String SVG_SVG_ZOOM_AND_PAN_DEFAULT_VALUE = SVG_MAGNIFY_VALUE;
730: String SVG_TEXT_X_DEFAULT_VALUE = "0";
731: String SVG_TEXT_Y_DEFAULT_VALUE = "0";
732: String SVG_USE_X_DEFAULT_VALUE = "0";
733: String SVG_USE_Y_DEFAULT_VALUE = "0";
734: String SVG_USE_WIDTH_DEFAULT_VALUE = "100%";
735: String SVG_USE_HEIGHT_DEFAULT_VALUE = "100%";
736: String SVG_VERSION_1_1_VALUE = "1.1";
737: String SVG_VERSION_1_2_VALUE = "1.2";
738:
739: ///////////////////////////////////////////////////////////////////
740: // event constants
741: ///////////////////////////////////////////////////////////////////
742:
743: // Perseus 1.5 String SVG_EVENT_CLICK = "click";
744: // Perseus 1.5 String SVG_EVENT_MOUSEOVER = "mouseover";
745: // Perseus 1.5 String SVG_EVENT_MOUSEOUT = "mouseout";
746:
747: }
|