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:
030: /**
031: *
032: */
033: public interface SVGPath {
034:
035: /**
036: *
037: */
038: public static final short MOVE_TO = 77;
039:
040: /**
041: *
042: */
043: public static final short LINE_TO = 76;
044:
045: /**
046: *
047: */
048: public static final short CURVE_TO = 67;
049:
050: /**
051: *
052: */
053: public static final short QUAD_TO = 81;
054:
055: /**
056: *
057: */
058: public static final short CLOSE = 90;
059:
060: /**
061: *
062: */
063: public int getNumberOfSegments();
064:
065: /**
066: *
067: */
068: public short getSegment(int cmdIndex) throws DOMException;
069:
070: /**
071: *
072: */
073: public float getSegmentParam(int cmdIndex, int paramIndex)
074: throws DOMException;
075:
076: /**
077: *
078: */
079: public void moveTo(float x, float y);
080:
081: /**
082: *
083: */
084: public void lineTo(float x, float y);
085:
086: /**
087: *
088: */
089: public void quadTo(float x1, float y1, float x2, float y2);
090:
091: /**
092: *
093: */
094: public void curveTo(float x1, float y1, float x2, float y2,
095: float x3, float y3);
096:
097: /**
098: *
099: */
100: public void close();
101:
102: }
|