org.apache.batik.dom.svg
Class SVGPathSegItem

java.lang.Object
  extended by org.apache.batik.dom.svg.AbstractSVGItem
      extended by 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
protected  String letter
           
protected  short type
           
 
Fields 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
protected SVGPathSegItem()
           
  SVGPathSegItem(short type, String letter)
           
  SVGPathSegItem(org.w3c.dom.svg.SVGPathSeg pathSeg)
           
 
Method Summary
 float getAngle()
           
 short getPathSegType()
           
 String getPathSegTypeAsLetter()
           
 float getR1()
           
 float getR2()
           
protected  String getStringValue()
          Return the string representation of the item.
 float getX()
           
 float getX1()
           
 float getX2()
           
 float getY()
           
 float getY1()
           
 float getY2()
           
 boolean isLargeArcFlag()
           
 boolean isSweepFlag()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected short type

letter

protected String letter
Constructor Detail

SVGPathSegItem

protected SVGPathSegItem()

SVGPathSegItem

public SVGPathSegItem(short type,
                      String letter)

SVGPathSegItem

public SVGPathSegItem(org.w3c.dom.svg.SVGPathSeg pathSeg)
Method Detail

getStringValue

protected String getStringValue()
Description copied from class: AbstractSVGItem
Return the string representation of the item.

Specified by:
getStringValue in class AbstractSVGItem

getPathSegType

public short getPathSegType()
Specified by:
getPathSegType in interface org.w3c.dom.svg.SVGPathSeg

getPathSegTypeAsLetter

public String getPathSegTypeAsLetter()
Specified by:
getPathSegTypeAsLetter in interface org.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)


Copyright © 2017 Apache Software Foundation. All Rights Reserved.