Package org.apache.batik.dom.svg
Class SVGPathSegItem
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGItem
org.apache.batik.dom.svg.SVGPathSegItem
- All Implemented Interfaces:
SVGItem
,org.w3c.dom.svg.SVGPathSeg
,org.w3c.dom.svg.SVGPathSegClosePath
- Direct Known Subclasses:
AbstractSVGNormPathSegList.SVGPathSegGenericItem
,AbstractSVGPathSegList.SVGPathSegArcItem
,AbstractSVGPathSegList.SVGPathSegCurvetoCubicItem
,AbstractSVGPathSegList.SVGPathSegCurvetoCubicSmoothItem
,AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticItem
,AbstractSVGPathSegList.SVGPathSegCurvetoQuadraticSmoothItem
,AbstractSVGPathSegList.SVGPathSegLinetoHorizontalItem
,AbstractSVGPathSegList.SVGPathSegLinetoVerticalItem
,AbstractSVGPathSegList.SVGPathSegMovetoLinetoItem
public class SVGPathSegItem
extends AbstractSVGItem
implements org.w3c.dom.svg.SVGPathSeg, org.w3c.dom.svg.SVGPathSegClosePath
Internal representation of the item SVGPathSeg.
-
Field Summary
FieldsFields inherited from class org.apache.batik.dom.svg.AbstractSVGItem
itemStringValue, parent
Fields inherited from interface org.w3c.dom.svg.SVGPathSeg
PATHSEG_ARC_ABS, PATHSEG_ARC_REL, PATHSEG_CLOSEPATH, PATHSEG_CURVETO_CUBIC_ABS, PATHSEG_CURVETO_CUBIC_REL, PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, PATHSEG_CURVETO_CUBIC_SMOOTH_REL, PATHSEG_CURVETO_QUADRATIC_ABS, PATHSEG_CURVETO_QUADRATIC_REL, PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, PATHSEG_LINETO_ABS, PATHSEG_LINETO_HORIZONTAL_ABS, PATHSEG_LINETO_HORIZONTAL_REL, PATHSEG_LINETO_REL, PATHSEG_LINETO_VERTICAL_ABS, PATHSEG_LINETO_VERTICAL_REL, PATHSEG_MOVETO_ABS, PATHSEG_MOVETO_REL, PATHSEG_UNKNOWN
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SVGPathSegItem
(short type, String letter) SVGPathSegItem
(org.w3c.dom.svg.SVGPathSeg pathSeg) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getAngle()
short
float
getR1()
float
getR2()
protected String
Return the string representation of the item.float
getX()
float
getX1()
float
getX2()
float
getY()
float
getY1()
float
getY2()
boolean
boolean
void
setAngle
(float angle) void
setLargeArcFlag
(boolean largeArcFlag) void
setR1
(float r1) void
setR2
(float r2) void
setSweepFlag
(boolean sweepFlag) void
setX
(float x) void
setX1
(float x1) void
setX2
(float x2) void
setY
(float y) void
setY1
(float y1) void
setY2
(float y2) Methods inherited from class org.apache.batik.dom.svg.AbstractSVGItem
getParent, getValueAsString, resetAttribute, setParent
-
Field Details
-
type
protected short type -
letter
-
-
Constructor Details
-
SVGPathSegItem
protected SVGPathSegItem() -
SVGPathSegItem
-
SVGPathSegItem
public SVGPathSegItem(org.w3c.dom.svg.SVGPathSeg pathSeg)
-
-
Method Details
-
getStringValue
Description copied from class:AbstractSVGItem
Return the string representation of the item.- Specified by:
getStringValue
in classAbstractSVGItem
-
getPathSegType
public short getPathSegType()- Specified by:
getPathSegType
in interfaceorg.w3c.dom.svg.SVGPathSeg
-
getPathSegTypeAsLetter
- Specified by:
getPathSegTypeAsLetter
in interfaceorg.w3c.dom.svg.SVGPathSeg
-
getR1
public float getR1() -
setR1
public void setR1(float r1) -
getR2
public float getR2() -
setR2
public void setR2(float r2) -
getAngle
public float getAngle() -
setAngle
public void setAngle(float angle) -
isLargeArcFlag
public boolean isLargeArcFlag() -
setLargeArcFlag
public void setLargeArcFlag(boolean largeArcFlag) -
isSweepFlag
public boolean isSweepFlag() -
setSweepFlag
public void setSweepFlag(boolean sweepFlag) -
getX
public float getX() -
setX
public void setX(float x) -
getY
public float getY() -
setY
public void setY(float y) -
getX1
public float getX1() -
setX1
public void setX1(float x1) -
getY1
public float getY1() -
setY1
public void setY1(float y1) -
getX2
public float getX2() -
setX2
public void setX2(float x2) -
getY2
public float getY2() -
setY2
public void setY2(float y2)
-