- All Known Subinterfaces:
SVGPathSegArcAbs,SVGPathSegArcRel,SVGPathSegClosePath,SVGPathSegCurvetoCubicAbs,SVGPathSegCurvetoCubicRel,SVGPathSegCurvetoCubicSmoothAbs,SVGPathSegCurvetoCubicSmoothRel,SVGPathSegCurvetoQuadraticAbs,SVGPathSegCurvetoQuadraticRel,SVGPathSegCurvetoQuadraticSmoothAbs,SVGPathSegCurvetoQuadraticSmoothRel,SVGPathSegLinetoAbs,SVGPathSegLinetoHorizontalAbs,SVGPathSegLinetoHorizontalRel,SVGPathSegLinetoRel,SVGPathSegLinetoVerticalAbs,SVGPathSegLinetoVerticalRel,SVGPathSegMovetoAbs,SVGPathSegMovetoRel
- All Known Implementing Classes:
AbstractSVGNormPathSegList.SVGPathSegGenericItem,AbstractSVGPathSegList.SVGPathSegArcItem,AbstractSVGPathSegList.SVGPathSegCurvetoCubicItem,AbstractSVGPathSegList.SVGPathSegCurvetoCubicSmoothItem,AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticItem,AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticSmoothItem,AbstractSVGPathSegList.SVGPathSegLinetoHorizontalItem,AbstractSVGPathSegList.SVGPathSegLinetoVerticalItem,AbstractSVGPathSegList.SVGPathSegMovetoLinetoItem,SVGPathSegItem
public interface SVGPathSeg
Declares the different Path Segment Types corresponding to a single command
within a path data specification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortabsolute arcto(A) path data command.static final shortrelative arcto(a) path data command.static final shortclosepath(z) path data command.static final shortabsolute cubic Bézier curveto(C) path data command.static final shortrelative cubic Bézier curveto(c) path data command.static final shortabsolute smooth cubic curveto(S) path data command.static final shortrelative smooth cubic curveto(s) path data command.static final shortabsolute quadratic Bézier curveto(Q) path data command.static final shortrelative quadratic Bézier curveto(q) path data command.static final shortabsolute smooth quadratic curveto(T) path data command.static final shortrelative smooth quadratic curveto(t) path data command.static final shortabsolute lineto(L) path data command.static final shortabsolute horizontal lineto(H) path data command.static final shortrelative horizontal lineto(h) path data command.static final shortrelative lineto(l) path data command.static final shortabsolute vertical lineto(V) path data command.static final shortrelative vertical lineto(v) path data command.static final shortabsolute moveto(M) path data command.static final shortrelative moveto(m) path data command.static final shortThe unit type is not one of predefined types. -
Method Summary
Modifier and TypeMethodDescriptionshortGets the type of the path segment as specified by one of the constants declared on this interface.Gets the type of the path segment, specified by the corresponding one-character command name.
-
Field Details
-
PATHSEG_UNKNOWN
static final short PATHSEG_UNKNOWNThe 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 existing value to this type.- See Also:
-
PATHSEG_CLOSEPATH
static final short PATHSEG_CLOSEPATHclosepath(z) path data command.- See Also:
-
PATHSEG_MOVETO_ABS
static final short PATHSEG_MOVETO_ABSabsolute moveto(M) path data command.- See Also:
-
PATHSEG_MOVETO_REL
static final short PATHSEG_MOVETO_RELrelative moveto(m) path data command.- See Also:
-
PATHSEG_LINETO_ABS
static final short PATHSEG_LINETO_ABSabsolute lineto(L) path data command.- See Also:
-
PATHSEG_LINETO_REL
static final short PATHSEG_LINETO_RELrelative lineto(l) path data command.- See Also:
-
PATHSEG_CURVETO_CUBIC_ABS
static final short PATHSEG_CURVETO_CUBIC_ABSabsolute cubic Bézier curveto(C) path data command.- See Also:
-
PATHSEG_CURVETO_CUBIC_REL
static final short PATHSEG_CURVETO_CUBIC_RELrelative cubic Bézier curveto(c) path data command.- See Also:
-
PATHSEG_CURVETO_QUADRATIC_ABS
static final short PATHSEG_CURVETO_QUADRATIC_ABSabsolute quadratic Bézier curveto(Q) path data command.- See Also:
-
PATHSEG_CURVETO_QUADRATIC_REL
static final short PATHSEG_CURVETO_QUADRATIC_RELrelative quadratic Bézier curveto(q) path data command.- See Also:
-
PATHSEG_ARC_ABS
static final short PATHSEG_ARC_ABSabsolute arcto(A) path data command.- See Also:
-
PATHSEG_ARC_REL
static final short PATHSEG_ARC_RELrelative arcto(a) path data command.- See Also:
-
PATHSEG_LINETO_HORIZONTAL_ABS
static final short PATHSEG_LINETO_HORIZONTAL_ABSabsolute horizontal lineto(H) path data command.- See Also:
-
PATHSEG_LINETO_HORIZONTAL_REL
static final short PATHSEG_LINETO_HORIZONTAL_RELrelative horizontal lineto(h) path data command.- See Also:
-
PATHSEG_LINETO_VERTICAL_ABS
static final short PATHSEG_LINETO_VERTICAL_ABSabsolute vertical lineto(V) path data command.- See Also:
-
PATHSEG_LINETO_VERTICAL_REL
static final short PATHSEG_LINETO_VERTICAL_RELrelative vertical lineto(v) path data command.- See Also:
-
PATHSEG_CURVETO_CUBIC_SMOOTH_ABS
static final short PATHSEG_CURVETO_CUBIC_SMOOTH_ABSabsolute smooth cubic curveto(S) path data command.- See Also:
-
PATHSEG_CURVETO_CUBIC_SMOOTH_REL
static final short PATHSEG_CURVETO_CUBIC_SMOOTH_RELrelative smooth cubic curveto(s) path data command.- See Also:
-
PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS
static final short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABSabsolute smooth quadratic curveto(T) path data command.- See Also:
-
PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL
static final short PATHSEG_CURVETO_QUADRATIC_SMOOTH_RELrelative smooth quadratic curveto(t) path data command.- See Also:
-
-
Method Details
-
getPathSegType
short getPathSegType()Gets the type of the path segment as specified by one of the constants declared on this interface.- Returns:
- the type of the path segment.
-
getPathSegTypeAsLetter
String getPathSegTypeAsLetter()Gets the type of the path segment, specified by the corresponding one-character command name.- Returns:
- the type of the path segment.
-