org.vectomatic.dom.svg
Class OMSVGPathSeg

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by org.vectomatic.dom.svg.OMSVGPathSeg
Direct Known Subclasses:
OMSVGPathSegArcAbs, OMSVGPathSegArcRel, OMSVGPathSegClosePath, OMSVGPathSegCurvetoCubicAbs, OMSVGPathSegCurvetoCubicRel, OMSVGPathSegCurvetoCubicSmoothAbs, OMSVGPathSegCurvetoCubicSmoothRel, OMSVGPathSegCurvetoQuadraticAbs, OMSVGPathSegCurvetoQuadraticRel, OMSVGPathSegCurvetoQuadraticSmoothAbs, OMSVGPathSegCurvetoQuadraticSmoothRel, OMSVGPathSegLinetoAbs, OMSVGPathSegLinetoHorizontalAbs, OMSVGPathSegLinetoHorizontalRel, OMSVGPathSegLinetoRel, OMSVGPathSegLinetoVerticalAbs, OMSVGPathSegLinetoVerticalRel, OMSVGPathSegMovetoAbs, OMSVGPathSegMovetoRel

public class OMSVGPathSeg
extends com.google.gwt.core.client.JavaScriptObject

The OMSVGPathSeg interface is a base interface that corresponds to a single command within a path data specification.


Field Summary
static short PATHSEG_ARC_ABS
          Corresponds to a "absolute arcto" (A) path data command.
static short PATHSEG_ARC_REL
          Corresponds to a "relative arcto" (a) path data command.
static short PATHSEG_CLOSEPATH
          Corresponds to a "closepath" (z) path data command.
static short PATHSEG_CURVETO_CUBIC_ABS
          Corresponds to a "absolute cubic Bézier curveto" (C) path data command.
static short PATHSEG_CURVETO_CUBIC_REL
          Corresponds to a "relative cubic Bézier curveto" (c) path data command.
static short PATHSEG_CURVETO_CUBIC_SMOOTH_ABS
          Corresponds to a "absolute smooth cubic curveto" (S) path data command.
static short PATHSEG_CURVETO_CUBIC_SMOOTH_REL
          Corresponds to a "relative smooth cubic curveto" (s) path data command.
static short PATHSEG_CURVETO_QUADRATIC_ABS
          Corresponds to a "absolute quadratic Bézier curveto" (Q) path data command.
static short PATHSEG_CURVETO_QUADRATIC_REL
          Corresponds to a "relative quadratic Bézier curveto" (q) path data command.
static short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS
          Corresponds to a "absolute smooth quadratic curveto" (T) path data command.
static short PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL
          Corresponds to a "relative smooth quadratic curveto" (t) path data command.
static short PATHSEG_LINETO_ABS
          Corresponds to a "absolute lineto" (L) path data command.
static short PATHSEG_LINETO_HORIZONTAL_ABS
          Corresponds to a "absolute horizontal lineto" (H) path data command.
static short PATHSEG_LINETO_HORIZONTAL_REL
          Corresponds to a "relative horizontal lineto" (h) path data command.
static short PATHSEG_LINETO_REL
          Corresponds to a "relative lineto" (l) path data command.
static short PATHSEG_LINETO_VERTICAL_ABS
          Corresponds to a "absolute vertical lineto" (V) path data command.
static short PATHSEG_LINETO_VERTICAL_REL
          Corresponds to a "relative vertical lineto" (v) path data command.
static short PATHSEG_MOVETO_ABS
          Corresponds to a "absolute moveto" (M) path data command.
static short PATHSEG_MOVETO_REL
          Corresponds to a "relative moveto" (m) path data command.
static short PATHSEG_UNKNOWN
          The unit type is not one of predefined types.
 
Constructor Summary
protected OMSVGPathSeg()
           
 
Method Summary
 short getPathSegType()
          The type of the path segment as specified by one of the constants defined on this interface.
 String getPathSegTypeAsLetter()
          The type of the path segment, specified by the corresponding one character command name.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PATHSEG_UNKNOWN

public static final short PATHSEG_UNKNOWN
The unit type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existingvalue to this type.

See Also:
Constant Field Values

PATHSEG_CLOSEPATH

public static final short PATHSEG_CLOSEPATH
Corresponds to a "closepath" (z) path data command.

See Also:
Constant Field Values

PATHSEG_MOVETO_ABS

public static final short PATHSEG_MOVETO_ABS
Corresponds to a "absolute moveto" (M) path data command.

See Also:
Constant Field Values

PATHSEG_MOVETO_REL

public static final short PATHSEG_MOVETO_REL
Corresponds to a "relative moveto" (m) path data command.

See Also:
Constant Field Values

PATHSEG_LINETO_ABS

public static final short PATHSEG_LINETO_ABS
Corresponds to a "absolute lineto" (L) path data command.

See Also:
Constant Field Values

PATHSEG_LINETO_REL

public static final short PATHSEG_LINETO_REL
Corresponds to a "relative lineto" (l) path data command.

See Also:
Constant Field Values

PATHSEG_CURVETO_CUBIC_ABS

public static final short PATHSEG_CURVETO_CUBIC_ABS
Corresponds to a "absolute cubic Bézier curveto" (C) path data command.

See Also:
Constant Field Values

PATHSEG_CURVETO_CUBIC_REL

public static final short PATHSEG_CURVETO_CUBIC_REL
Corresponds to a "relative cubic Bézier curveto" (c) path data command.

See Also:
Constant Field Values

PATHSEG_CURVETO_QUADRATIC_ABS

public static final short PATHSEG_CURVETO_QUADRATIC_ABS
Corresponds to a "absolute quadratic Bézier curveto" (Q) path data command.

See Also:
Constant Field Values

PATHSEG_CURVETO_QUADRATIC_REL

public static final short PATHSEG_CURVETO_QUADRATIC_REL
Corresponds to a "relative quadratic Bézier curveto" (q) path data command.

See Also:
Constant Field Values

PATHSEG_ARC_ABS

public static final short PATHSEG_ARC_ABS
Corresponds to a "absolute arcto" (A) path data command.

See Also:
Constant Field Values

PATHSEG_ARC_REL

public static final short PATHSEG_ARC_REL
Corresponds to a "relative arcto" (a) path data command.

See Also:
Constant Field Values

PATHSEG_LINETO_HORIZONTAL_ABS

public static final short PATHSEG_LINETO_HORIZONTAL_ABS
Corresponds to a "absolute horizontal lineto" (H) path data command.

See Also:
Constant Field Values

PATHSEG_LINETO_HORIZONTAL_REL

public static final short PATHSEG_LINETO_HORIZONTAL_REL
Corresponds to a "relative horizontal lineto" (h) path data command.

See Also:
Constant Field Values

PATHSEG_LINETO_VERTICAL_ABS

public static final short PATHSEG_LINETO_VERTICAL_ABS
Corresponds to a "absolute vertical lineto" (V) path data command.

See Also:
Constant Field Values

PATHSEG_LINETO_VERTICAL_REL

public static final short PATHSEG_LINETO_VERTICAL_REL
Corresponds to a "relative vertical lineto" (v) path data command.

See Also:
Constant Field Values

PATHSEG_CURVETO_CUBIC_SMOOTH_ABS

public static final short PATHSEG_CURVETO_CUBIC_SMOOTH_ABS
Corresponds to a "absolute smooth cubic curveto" (S) path data command.

See Also:
Constant Field Values

PATHSEG_CURVETO_CUBIC_SMOOTH_REL

public static final short PATHSEG_CURVETO_CUBIC_SMOOTH_REL
Corresponds to a "relative smooth cubic curveto" (s) path data command.

See Also:
Constant Field Values

PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS

public static final short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS
Corresponds to a "absolute smooth quadratic curveto" (T) path data command.

See Also:
Constant Field Values

PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL

public static final short PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL
Corresponds to a "relative smooth quadratic curveto" (t) path data command.

See Also:
Constant Field Values
Constructor Detail

OMSVGPathSeg

protected OMSVGPathSeg()
Method Detail

getPathSegType

public final short getPathSegType()
The type of the path segment as specified by one of the constants defined on this interface.


getPathSegTypeAsLetter

public final String getPathSegTypeAsLetter()
The type of the path segment, specified by the corresponding one character command name.



Copyright © 2012. All Rights Reserved.