Class PathSegment


  • public class PathSegment
    extends Object
    PathSegment for PointTool
    Author:
    KIYUT
    • Constructor Detail

      • PathSegment

        public PathSegment()
        Creates a new instance of PathSegment
    • Method Detail

      • setType

        public void setType​(short type)
        Set the SVGPathSeq constant eg: PATHSEG_MOVETO_ABS, PATHSEG_CURVETO_CUBIC_ABS, PATHSEG_LINETO_ABS, etc
        Parameters:
        type - SVGPathSeq type constant
        See Also:
        getType()
      • getType

        public short getType()
        Return SVGPathSeg type constant eg: PATHSEG_MOVETO_ABS, PATHSEG_CURVETO_CUBIC_ABS, PATHSEG_LINETO_ABS, etc
        Returns:
        SVGPathSeq type constant
        See Also:
        setType(short)
      • addPoint

        public void addPoint​(Point2D p)
      • getPoint

        public Point2D getPoint​(int index)
      • removePoint

        public Point2D removePoint​(int index)
      • clear

        public void clear()
      • getPointCount

        public int getPointCount()
      • indexOfPoint

        public int indexOfPoint​(Point2D p)