001: /*
002: * Portions Copyright 2000-2007 Sun Microsystems, Inc. All Rights
003: * Reserved. Use is subject to license terms.
004: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
005: *
006: * This program is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU General Public License version
008: * 2 only, as published by the Free Software Foundation.
009: *
010: * This program is distributed in the hope that it will be useful, but
011: * WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * General Public License version 2 for more details (a copy is
014: * included at /legal/license.txt).
015: *
016: * You should have received a copy of the GNU General Public License
017: * version 2 along with this work; if not, write to the Free Software
018: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
019: * 02110-1301 USA
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
022: * Clara, CA 95054 or visit www.sun.com if you need additional
023: * information or have any questions.
024: */
025:
026: package org.w3c.dom.svg;
027:
028: import org.w3c.dom.DOMException;
029: import org.w3c.dom.Element;
030: import org.w3c.dom.events.EventTarget;
031:
032: /**
033: *
034: */
035: public interface SVGElement extends Element, EventTarget {
036:
037: /**
038: *
039: */
040: public void setId(String Id) throws DOMException;
041:
042: /**
043: *
044: */
045: public String getId();
046:
047: /**
048: *
049: */
050: public Element getFirstElementChild();
051:
052: /**
053: *
054: */
055: public Element getNextElementSibling();
056:
057: /**
058: *
059: */
060: public String getTrait(String name) throws DOMException;
061:
062: /**
063: *
064: */
065: public String getTraitNS(String namespaceURI, String name)
066: throws DOMException;
067:
068: /**
069: *
070: */
071: public float getFloatTrait(String name) throws DOMException;
072:
073: /**
074: *
075: */
076: public SVGMatrix getMatrixTrait(String name) throws DOMException;
077:
078: /**
079: *
080: */
081: public SVGRect getRectTrait(String name) throws DOMException;
082:
083: /**
084: *
085: */
086: public SVGPath getPathTrait(String name) throws DOMException;
087:
088: /**
089: *
090: */
091: public SVGRGBColor getRGBColorTrait(String name)
092: throws DOMException;
093:
094: /**
095: *
096: */
097: public void setTrait(String name, String value) throws DOMException;
098:
099: /**
100: *
101: */
102: public void setTraitNS(String namespaceURI, String name,
103: String value) throws DOMException;
104:
105: /**
106: *
107: */
108: public void setFloatTrait(String name, float value)
109: throws DOMException;
110:
111: /**
112: *
113: */
114: public void setMatrixTrait(String name, SVGMatrix matrix)
115: throws DOMException;
116:
117: /**
118: *
119: */
120: public void setRectTrait(String name, SVGRect rect)
121: throws DOMException;
122:
123: /**
124: *
125: */
126: public void setPathTrait(String name, SVGPath path)
127: throws DOMException;
128:
129: /**
130: *
131: */
132: public void setRGBColorTrait(String name, SVGRGBColor color)
133: throws DOMException;
134:
135: }
|