Java 类org.w3c.dom.svg.SVGPathSeg 实例源码

项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegMovetoLinetoItem(SVGPathSeg pathSeg){
    type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_LINETO_REL:
        letter = PATHSEG_LINETO_REL_LETTER;
        setX(((SVGPathSegLinetoRel)pathSeg).getX());
        setY(((SVGPathSegLinetoRel)pathSeg).getY());
        break;
    case SVGPathSeg.PATHSEG_LINETO_ABS:
        letter = PATHSEG_LINETO_ABS_LETTER;
        setX(((SVGPathSegLinetoAbs)pathSeg).getX());
        setY(((SVGPathSegLinetoAbs)pathSeg).getY());
        break;
    case SVGPathSeg.PATHSEG_MOVETO_REL:
        letter = PATHSEG_MOVETO_REL_LETTER;
        setX(((SVGPathSegMovetoRel)pathSeg).getX());
        setY(((SVGPathSegMovetoRel)pathSeg).getY());
        break;
    case SVGPathSeg.PATHSEG_MOVETO_ABS:
        letter = PATHSEG_MOVETO_ABS_LETTER;
        setX(((SVGPathSegMovetoAbs)pathSeg).getX());
        setY(((SVGPathSegMovetoAbs)pathSeg).getY());
        break;
    default:
    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegCurvetoCubicItem(SVGPathSeg pathSeg){
    this.type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:
        letter = PATHSEG_CURVETO_CUBIC_ABS_LETTER;
        setX(((SVGPathSegCurvetoCubicAbs)pathSeg).getX());
        setY(((SVGPathSegCurvetoCubicAbs)pathSeg).getY());
        setX1(((SVGPathSegCurvetoCubicAbs)pathSeg).getX1());
        setY1(((SVGPathSegCurvetoCubicAbs)pathSeg).getY1());
        setX2(((SVGPathSegCurvetoCubicAbs)pathSeg).getX2());
        setY2(((SVGPathSegCurvetoCubicAbs)pathSeg).getY2());
        break;
    case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:
        letter = PATHSEG_CURVETO_CUBIC_REL_LETTER;
        setX(((SVGPathSegCurvetoCubicRel)pathSeg).getX());
        setY(((SVGPathSegCurvetoCubicRel)pathSeg).getY());
        setX1(((SVGPathSegCurvetoCubicRel)pathSeg).getX1());
        setY1(((SVGPathSegCurvetoCubicRel)pathSeg).getY1());
        setX2(((SVGPathSegCurvetoCubicRel)pathSeg).getX2());
        setY2(((SVGPathSegCurvetoCubicRel)pathSeg).getY2());
        break;
    default:
    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegCurvetoQuadraticItem(SVGPathSeg pathSeg){
    this.type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:
        letter = PATHSEG_CURVETO_QUADRATIC_ABS_LETTER;
        setX(((SVGPathSegCurvetoQuadraticAbs)pathSeg).getX());
        setY(((SVGPathSegCurvetoQuadraticAbs)pathSeg).getY());
        setX1(((SVGPathSegCurvetoQuadraticAbs)pathSeg).getX1());
        setY1(((SVGPathSegCurvetoQuadraticAbs)pathSeg).getY1());
        break;
    case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:
        letter = PATHSEG_CURVETO_QUADRATIC_REL_LETTER;
        setX(((SVGPathSegCurvetoQuadraticRel)pathSeg).getX());
        setY(((SVGPathSegCurvetoQuadraticRel)pathSeg).getY());
        setX1(((SVGPathSegCurvetoQuadraticRel)pathSeg).getX1());
        setY1(((SVGPathSegCurvetoQuadraticRel)pathSeg).getY1());
        break;
default:

    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegArcItem(SVGPathSeg pathSeg){
    type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_ARC_ABS:
        letter = PATHSEG_ARC_ABS_LETTER;
        setX(((SVGPathSegArcAbs)pathSeg).getX());
        setY(((SVGPathSegArcAbs)pathSeg).getY());
        setR1(((SVGPathSegArcAbs)pathSeg).getR1());
        setR2(((SVGPathSegArcAbs)pathSeg).getR2());
        setAngle(((SVGPathSegArcAbs)pathSeg).getAngle());
        setLargeArcFlag(((SVGPathSegArcAbs)pathSeg).getLargeArcFlag());
        setSweepFlag(((SVGPathSegArcAbs)pathSeg).getSweepFlag());
        break;
    case SVGPathSeg.PATHSEG_ARC_REL:
        letter = PATHSEG_ARC_REL_LETTER;
        setX(((SVGPathSegArcRel)pathSeg).getX());
        setY(((SVGPathSegArcRel)pathSeg).getY());
        setR1(((SVGPathSegArcRel)pathSeg).getR1());
        setR2(((SVGPathSegArcRel)pathSeg).getR2());
        setAngle(((SVGPathSegArcRel)pathSeg).getAngle());
        setLargeArcFlag(((SVGPathSegArcRel)pathSeg).getLargeArcFlag());
        setSweepFlag(((SVGPathSegArcRel)pathSeg).getSweepFlag());
        break;
    default:
    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegCurvetoCubicSmoothItem(SVGPathSeg pathSeg){
    type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:
        letter = PATHSEG_CURVETO_CUBIC_SMOOTH_ABS_LETTER;
        setX(((SVGPathSegCurvetoCubicSmoothAbs)pathSeg).getX());
        setY(((SVGPathSegCurvetoCubicSmoothAbs)pathSeg).getY());
        setX2(((SVGPathSegCurvetoCubicSmoothAbs)pathSeg).getX2());
        setY2(((SVGPathSegCurvetoCubicSmoothAbs)pathSeg).getY2());
        break;
    case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:
        letter = PATHSEG_CURVETO_CUBIC_SMOOTH_REL_LETTER;
        setX(((SVGPathSegCurvetoCubicSmoothRel)pathSeg).getX());
        setY(((SVGPathSegCurvetoCubicSmoothRel)pathSeg).getY());
        setX2(((SVGPathSegCurvetoCubicSmoothRel)pathSeg).getX2());
        setY2(((SVGPathSegCurvetoCubicSmoothRel)pathSeg).getY2());
        break;
    default:
    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegCurvetoQuadraticSmoothItem(SVGPathSeg pathSeg){
    type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:
        letter = PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS_LETTER;
        setX(((SVGPathSegCurvetoQuadraticSmoothAbs)pathSeg).getX());
        setY(((SVGPathSegCurvetoQuadraticSmoothAbs)pathSeg).getY());
        break;
    case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:
        letter = PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL_LETTER;
        setX(((SVGPathSegCurvetoQuadraticSmoothRel)pathSeg).getX());
        setY(((SVGPathSegCurvetoQuadraticSmoothRel)pathSeg).getY());
        break;
    default:
    }
}
项目:feathers-sdk    文件:AbstractSVGPathSegList.java   
public SVGPathSegCurvetoQuadraticItem(SVGPathSeg pathSeg){
    this.type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:
        letter = PATHSEG_CURVETO_QUADRATIC_ABS_LETTER;
        x = ((SVGPathSegCurvetoQuadraticAbs)pathSeg).getX();
        y = ((SVGPathSegCurvetoQuadraticAbs)pathSeg).getY();
        x1 = ((SVGPathSegCurvetoQuadraticAbs)pathSeg).getX1();
        y1= ((SVGPathSegCurvetoQuadraticAbs)pathSeg).getY1();
        break;
    case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:
        letter = PATHSEG_CURVETO_QUADRATIC_REL_LETTER;
        x = ((SVGPathSegCurvetoQuadraticRel)pathSeg).getX();
        y = ((SVGPathSegCurvetoQuadraticRel)pathSeg).getY();
        x1 = ((SVGPathSegCurvetoQuadraticRel)pathSeg).getX1();
        y1= ((SVGPathSegCurvetoQuadraticRel)pathSeg).getY1();
        break;
default:

    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegMovetoLinetoItem(SVGPathSeg pathSeg){
    type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_LINETO_REL:
        letter = PATHSEG_LINETO_REL_LETTER;
        setX(((SVGPathSegLinetoRel)pathSeg).getX());
        setY(((SVGPathSegLinetoRel)pathSeg).getY());
        break;
    case SVGPathSeg.PATHSEG_LINETO_ABS:
        letter = PATHSEG_LINETO_ABS_LETTER;
        setX(((SVGPathSegLinetoAbs)pathSeg).getX());
        setY(((SVGPathSegLinetoAbs)pathSeg).getY());
        break;
    case SVGPathSeg.PATHSEG_MOVETO_REL:
        letter = PATHSEG_MOVETO_REL_LETTER;
        setX(((SVGPathSegMovetoRel)pathSeg).getX());
        setY(((SVGPathSegMovetoRel)pathSeg).getY());
        break;
    case SVGPathSeg.PATHSEG_MOVETO_ABS:
        letter = PATHSEG_MOVETO_ABS_LETTER;
        setX(((SVGPathSegMovetoAbs)pathSeg).getX());
        setY(((SVGPathSegMovetoAbs)pathSeg).getY());
        break;
    default:
    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegCurvetoCubicItem(SVGPathSeg pathSeg){
    this.type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:
        letter = PATHSEG_CURVETO_CUBIC_ABS_LETTER;
        setX(((SVGPathSegCurvetoCubicAbs)pathSeg).getX());
        setY(((SVGPathSegCurvetoCubicAbs)pathSeg).getY());
        setX1(((SVGPathSegCurvetoCubicAbs)pathSeg).getX1());
        setY1(((SVGPathSegCurvetoCubicAbs)pathSeg).getY1());
        setX2(((SVGPathSegCurvetoCubicAbs)pathSeg).getX2());
        setY2(((SVGPathSegCurvetoCubicAbs)pathSeg).getY2());
        break;
    case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:
        letter = PATHSEG_CURVETO_CUBIC_REL_LETTER;
        setX(((SVGPathSegCurvetoCubicRel)pathSeg).getX());
        setY(((SVGPathSegCurvetoCubicRel)pathSeg).getY());
        setX1(((SVGPathSegCurvetoCubicRel)pathSeg).getX1());
        setY1(((SVGPathSegCurvetoCubicRel)pathSeg).getY1());
        setX2(((SVGPathSegCurvetoCubicRel)pathSeg).getX2());
        setY2(((SVGPathSegCurvetoCubicRel)pathSeg).getY2());
        break;
    default:
    }
}
项目:feathers-sdk    文件:AbstractSVGPathSegList.java   
public SVGPathSegMovetoLinetoItem(SVGPathSeg pathSeg){
    type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_LINETO_REL:
        letter = PATHSEG_LINETO_REL_LETTER;
        x = ((SVGPathSegLinetoRel)pathSeg).getX();
        y = ((SVGPathSegLinetoRel)pathSeg).getY();
        break;
    case SVGPathSeg.PATHSEG_LINETO_ABS:
        letter = PATHSEG_LINETO_ABS_LETTER;
        x = ((SVGPathSegLinetoAbs)pathSeg).getX();
        y = ((SVGPathSegLinetoAbs)pathSeg).getY();
        break;
    case SVGPathSeg.PATHSEG_MOVETO_REL:
        letter = PATHSEG_MOVETO_REL_LETTER;
        x = ((SVGPathSegMovetoRel)pathSeg).getX();
        y = ((SVGPathSegMovetoRel)pathSeg).getY();
        break;
    case SVGPathSeg.PATHSEG_MOVETO_ABS:
        letter = PATHSEG_MOVETO_ABS_LETTER;
        x = ((SVGPathSegMovetoAbs)pathSeg).getX();
        y = ((SVGPathSegMovetoAbs)pathSeg).getY();
        break;
    default:
    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegArcItem(SVGPathSeg pathSeg){
    type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_ARC_ABS:
        letter = PATHSEG_ARC_ABS_LETTER;
        setX(((SVGPathSegArcAbs)pathSeg).getX());
        setY(((SVGPathSegArcAbs)pathSeg).getY());
        setR1(((SVGPathSegArcAbs)pathSeg).getR1());
        setR2(((SVGPathSegArcAbs)pathSeg).getR2());
        setAngle(((SVGPathSegArcAbs)pathSeg).getAngle());
        setLargeArcFlag(((SVGPathSegArcAbs)pathSeg).getLargeArcFlag());
        setSweepFlag(((SVGPathSegArcAbs)pathSeg).getSweepFlag());
        break;
    case SVGPathSeg.PATHSEG_ARC_REL:
        letter = PATHSEG_ARC_REL_LETTER;
        setX(((SVGPathSegArcRel)pathSeg).getX());
        setY(((SVGPathSegArcRel)pathSeg).getY());
        setR1(((SVGPathSegArcRel)pathSeg).getR1());
        setR2(((SVGPathSegArcRel)pathSeg).getR2());
        setAngle(((SVGPathSegArcRel)pathSeg).getAngle());
        setLargeArcFlag(((SVGPathSegArcRel)pathSeg).getLargeArcFlag());
        setSweepFlag(((SVGPathSegArcRel)pathSeg).getSweepFlag());
        break;
    default:
    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegCurvetoQuadraticSmoothItem(SVGPathSeg pathSeg){
    type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:
        letter = PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS_LETTER;
        setX(((SVGPathSegCurvetoQuadraticSmoothAbs)pathSeg).getX());
        setY(((SVGPathSegCurvetoQuadraticSmoothAbs)pathSeg).getY());
        break;
    case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:
        letter = PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL_LETTER;
        setX(((SVGPathSegCurvetoQuadraticSmoothRel)pathSeg).getX());
        setY(((SVGPathSegCurvetoQuadraticSmoothRel)pathSeg).getY());
        break;
    default:
    }
}
项目:feathers-sdk    文件:AbstractSVGPathSegList.java   
public SVGPathSegCurvetoCubicSmoothItem(SVGPathSeg pathSeg){
    type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:
        letter = PATHSEG_CURVETO_CUBIC_SMOOTH_ABS_LETTER;
        x = ((SVGPathSegCurvetoCubicSmoothAbs)pathSeg).getX();
        y = ((SVGPathSegCurvetoCubicSmoothAbs)pathSeg).getY();
        x2 = ((SVGPathSegCurvetoCubicSmoothAbs)pathSeg).getX2();
        y2 = ((SVGPathSegCurvetoCubicSmoothAbs)pathSeg).getY2();
        break;
    case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:
        letter = PATHSEG_CURVETO_CUBIC_SMOOTH_REL_LETTER;
        x = ((SVGPathSegCurvetoCubicSmoothRel)pathSeg).getX();
        y = ((SVGPathSegCurvetoCubicSmoothRel)pathSeg).getY();
        x2 = ((SVGPathSegCurvetoCubicSmoothRel)pathSeg).getX2();
        y2 = ((SVGPathSegCurvetoCubicSmoothRel)pathSeg).getY2();
        break;
    default:
    }
}
项目:feathers-sdk    文件:AbstractSVGPathSegList.java   
public SVGPathSegCurvetoCubicItem(SVGPathSeg pathSeg){
    this.type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:
        letter = PATHSEG_CURVETO_CUBIC_ABS_LETTER;
        x = ((SVGPathSegCurvetoCubicAbs)pathSeg).getX();
        y = ((SVGPathSegCurvetoCubicAbs)pathSeg).getY();
        x1 = ((SVGPathSegCurvetoCubicAbs)pathSeg).getX1();
        y1 = ((SVGPathSegCurvetoCubicAbs)pathSeg).getY1();
        x2 = ((SVGPathSegCurvetoCubicAbs)pathSeg).getX2();
        y2 = ((SVGPathSegCurvetoCubicAbs)pathSeg).getY2();
        break;
    case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:
        letter = PATHSEG_CURVETO_CUBIC_REL_LETTER;
        x = ((SVGPathSegCurvetoCubicRel)pathSeg).getX();
        y = ((SVGPathSegCurvetoCubicRel)pathSeg).getY();
        x1 = ((SVGPathSegCurvetoCubicRel)pathSeg).getX1();
        y1 = ((SVGPathSegCurvetoCubicRel)pathSeg).getY1();
        x2 = ((SVGPathSegCurvetoCubicRel)pathSeg).getX2();
        y2 = ((SVGPathSegCurvetoCubicRel)pathSeg).getY2();
        break;
    default:
    }
}
项目:Push2Display    文件:PathArrayProducer.java   
/**
 * Implements {@link
 * PathHandler#curvetoCubicRel(float,float,float,float,float,float)}.
 */
public void curvetoCubicRel(float x1, float y1, 
                            float x2, float y2, 
                            float x, float y) throws ParseException {
    command(SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL);
    param(x1);
    param(y1);
    param(x2);
    param(y2);
    param(x);
    param(y);
}
项目:Push2Display    文件:PathArrayProducer.java   
/**
 * Implements {@link
 * PathHandler#curvetoCubicAbs(float,float,float,float,float,float)}.
 */
public void curvetoCubicAbs(float x1, float y1, 
                            float x2, float y2, 
                            float x, float y) throws ParseException {
    command(SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS);
    param(x1);
    param(y1);
    param(x2);
    param(y2);
    param(x);
    param(y);
}
项目:Push2Display    文件:PathArrayProducer.java   
/**
 * Implements {@link
 * PathHandler#curvetoCubicSmoothRel(float,float,float,float)}.
 */
public void curvetoCubicSmoothRel(float x2, float y2, 
                                  float x, float y) throws ParseException {
    command(SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL);
    param(x2);
    param(y2);
    param(x);
    param(y);
}
项目:Push2Display    文件:PathArrayProducer.java   
/**
 * Implements {@link
 * PathHandler#curvetoCubicSmoothAbs(float,float,float,float)}.
 */
public void curvetoCubicSmoothAbs(float x2, float y2, 
                                  float x, float y) throws ParseException {
    command(SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS);
    param(x2);
    param(y2);
    param(x);
    param(y);
}
项目:Push2Display    文件:PathArrayProducer.java   
/**
 * Implements {@link
 * PathHandler#curvetoQuadraticRel(float,float,float,float)}.
 */
public void curvetoQuadraticRel(float x1, float y1, 
                                float x, float y) throws ParseException {
    command(SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL);
    param(x1);
    param(y1);
    param(x);
    param(y);
}
项目:Push2Display    文件:PathArrayProducer.java   
/**
 * Implements {@link
 * PathHandler#curvetoQuadraticAbs(float,float,float,float)}.
 */
public void curvetoQuadraticAbs(float x1, float y1, 
                                float x, float y) throws ParseException {
    command(SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS);
    param(x1);
    param(y1);
    param(x);
    param(y);
}
项目:Push2Display    文件:PathArrayProducer.java   
/**
 * Implements {@link PathHandler#curvetoQuadraticSmoothRel(float,float)}.
 */
public void curvetoQuadraticSmoothRel(float x, float y)
    throws ParseException {
    command(SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL);
    param(x);
    param(y);
}
项目:Push2Display    文件:PathArrayProducer.java   
/**
 * Implements {@link PathHandler#curvetoQuadraticSmoothAbs(float,float)}.
 */
public void curvetoQuadraticSmoothAbs(float x, float y)
    throws ParseException {
    command(SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS);
    param(x);
    param(y);
}
项目:Push2Display    文件:PathArrayProducer.java   
/**
 * Implements {@link
 * PathHandler#arcRel(float,float,float,boolean,boolean,float,float)}.
 */
public void arcRel(float rx, float ry, 
                   float xAxisRotation, 
                   boolean largeArcFlag, boolean sweepFlag, 
                   float x, float y) throws ParseException {
    command(SVGPathSeg.PATHSEG_ARC_REL);
    param(rx);
    param(ry);
    param(xAxisRotation);
    param(largeArcFlag ? 1 : 0);
    param(sweepFlag ? 1 : 0);
    param(x);
    param(y);
}
项目:Push2Display    文件:PathArrayProducer.java   
/**
 * Implements {@link
 * PathHandler#arcAbs(float,float,float,boolean,boolean,float,float)}.
 */
public void arcAbs(float rx, float ry, 
                   float xAxisRotation, 
                   boolean largeArcFlag, boolean sweepFlag, 
                   float x, float y) throws ParseException {
    command(SVGPathSeg.PATHSEG_ARC_ABS);
    param(rx);
    param(ry);
    param(xAxisRotation);
    param(largeArcFlag ? 1 : 0);
    param(sweepFlag ? 1 : 0);
    param(x);
    param(y);
}
项目:Push2Display    文件:AbstractSVGNormPathSegList.java   
/**
 * Implements {@link org.apache.batik.parser.PathHandler#movetoAbs(float,float)}.
 */
public void movetoAbs(float x, float y) throws ParseException {
    listHandler.item(new SVGPathSegMovetoLinetoItem
            (SVGPathSeg.PATHSEG_MOVETO_ABS,PATHSEG_MOVETO_ABS_LETTER,
                    x,y));
    lastAbs.setX(x);
    lastAbs.setY(y);
    lastAbs.setPathSegType(SVGPathSeg.PATHSEG_MOVETO_ABS);
}
项目:Push2Display    文件:AbstractSVGNormPathSegList.java   
/**
 * Implements {@link org.apache.batik.parser.PathHandler#linetoAbs(float,float)}.
 */
public void linetoAbs(float x, float y) throws ParseException {
    listHandler.item(new SVGPathSegMovetoLinetoItem
            (SVGPathSeg.PATHSEG_LINETO_ABS,PATHSEG_LINETO_ABS_LETTER,
                    x,y));
    lastAbs.setX(x);
    lastAbs.setY(y);
    lastAbs.setPathSegType(SVGPathSeg.PATHSEG_LINETO_ABS);
}
项目:Push2Display    文件:AbstractSVGNormPathSegList.java   
/**
 * Implements {@link
 * org.apache.batik.parser.PathHandler#curvetoCubicAbs(float,float,float,float,float,float)}.
 */
public void curvetoCubicAbs(float x1, float y1,
        float x2, float y2,
        float x, float y) throws ParseException {
    listHandler.item(new SVGPathSegCurvetoCubicItem
            (SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,PATHSEG_CURVETO_CUBIC_ABS_LETTER,
                    x1,y1,x2,y2,x,y));
    lastAbs.setValue(x1,y1,x2,y2,x,y);
    lastAbs.setPathSegType(SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS);
}
项目:Push2Display    文件:AbstractSVGNormPathSegList.java   
/**
 * Implements {@link
 * org.apache.batik.parser.PathHandler#curvetoCubicSmoothAbs(float,float,float,float)}.
 */
public void curvetoCubicSmoothAbs(float x2, float y2,
        float x, float y) throws ParseException {
    if (lastAbs.getPathSegType()==SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS) {
        curvetoCubicAbs(lastAbs.getX() + (lastAbs.getX() - lastAbs.getX2()),
                lastAbs.getY() + (lastAbs.getY() - lastAbs.getY2()),
                x2, y2, x, y);
    } else {
        curvetoCubicAbs(lastAbs.getX(), lastAbs.getY(), x2, y2, x, y);
    }
}
项目:Push2Display    文件:AbstractSVGNormPathSegList.java   
/**
 * Implements {@link
 * org.apache.batik.parser.PathHandler#curvetoQuadraticAbs(float,float,float,float)}.
 */
public void curvetoQuadraticAbs(float x1, float y1,
        float x, float y) throws ParseException {
                curvetoCubicAbs(lastAbs.getX() + 2 * (x1 - lastAbs.getX()) / 3,
                                                lastAbs.getY() + 2 * (y1 - lastAbs.getY()) / 3,
                                                x + 2 * (x1 - x) / 3,
                                                y + 2 * (y1 - y) / 3,
                                                x, y);
                lastAbs.setX1(x1);
                lastAbs.setY1(y1);
                lastAbs.setPathSegType(SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS);
}
项目:Push2Display    文件:AbstractSVGNormPathSegList.java   
/**
 * Implements {@link org.apache.batik.parser.PathHandler#curvetoQuadraticSmoothAbs(float,float)}.
 */
public void curvetoQuadraticSmoothAbs(float x, float y)
throws ParseException {
    if (lastAbs.getPathSegType()==SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS) {
        curvetoQuadraticAbs(lastAbs.getX() + (lastAbs.getX() - lastAbs.getX1()),
                lastAbs.getY() + (lastAbs.getY() - lastAbs.getY1()),
                x, y);
    } else {
        curvetoQuadraticAbs(lastAbs.getX(), lastAbs.getY(), x, y);
    }

}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
/**
 * Check if the item is an SVGPathSeg.
 */
protected void checkItemType(Object newItem){
    if ( !( newItem instanceof SVGPathSeg ) ){
        createSVGException(SVGException.SVG_WRONG_TYPE_ERR,
                           "expected SVGPathSeg",
                           null);
    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegLinetoHorizontalItem(SVGPathSeg pathSeg){
    this.type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:
        letter = PATHSEG_LINETO_HORIZONTAL_ABS_LETTER;
        setX(((SVGPathSegLinetoHorizontalAbs)pathSeg).getX());
        break;
    case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:
        letter = PATHSEG_LINETO_HORIZONTAL_REL_LETTER;
        setX(((SVGPathSegLinetoHorizontalRel)pathSeg).getX());
        break;
    default:
    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
public SVGPathSegLinetoVerticalItem(SVGPathSeg pathSeg){
    type = pathSeg.getPathSegType();
    switch(type){
    case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:
        letter = PATHSEG_LINETO_VERTICAL_ABS_LETTER;
        setY(((SVGPathSegLinetoVerticalAbs)pathSeg).getY());
        break;
    case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:
        letter = PATHSEG_LINETO_VERTICAL_REL_LETTER;
        setY(((SVGPathSegLinetoVerticalRel)pathSeg).getY());
        break;
    default:
    }
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
/**
 * Implements {@link
 * org.apache.batik.parser.PathHandler#curvetoCubicRel(float,float,float,float,float,float)}.
 */
public void curvetoCubicRel(float x1, float y1,
                            float x2, float y2,
                            float x, float y) throws ParseException {
    listHandler.item(new SVGPathSegCurvetoCubicItem
        (SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,PATHSEG_CURVETO_CUBIC_REL_LETTER,
         x1,y1,x2,y2,x,y));
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
/**
 * Implements {@link
 * org.apache.batik.parser.PathHandler#curvetoCubicAbs(float,float,float,float,float,float)}.
 */
public void curvetoCubicAbs(float x1, float y1,
                            float x2, float y2,
                            float x, float y) throws ParseException {
    listHandler.item(new SVGPathSegCurvetoCubicItem
        (SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,PATHSEG_CURVETO_CUBIC_ABS_LETTER,
         x1,y1,x2,y2,x,y));
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
/**
 * Implements {@link
 * org.apache.batik.parser.PathHandler#curvetoCubicSmoothRel(float,float,float,float)}.
 */
public void curvetoCubicSmoothRel(float x2, float y2,
                                  float x, float y) throws ParseException {
    listHandler.item(new SVGPathSegCurvetoCubicSmoothItem
        (SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,PATHSEG_CURVETO_CUBIC_SMOOTH_REL_LETTER,
         x2,y2,x,y));
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
/**
 * Implements {@link
 * org.apache.batik.parser.PathHandler#curvetoCubicSmoothAbs(float,float,float,float)}.
 */
public void curvetoCubicSmoothAbs(float x2, float y2,
                                  float x, float y) throws ParseException {
    listHandler.item(new SVGPathSegCurvetoCubicSmoothItem
        (SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,PATHSEG_CURVETO_CUBIC_SMOOTH_ABS_LETTER,
         x2,y2,x,y));
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
/**
 * Implements {@link
 * org.apache.batik.parser.PathHandler#curvetoQuadraticRel(float,float,float,float)}.
 */
public void curvetoQuadraticRel(float x1, float y1,
                                float x, float y) throws ParseException {
    listHandler.item(new SVGPathSegCurvetoQuadraticItem
        (SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,PATHSEG_CURVETO_QUADRATIC_REL_LETTER,
         x1,y1,x,y));
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
/**
 * Implements {@link
 * org.apache.batik.parser.PathHandler#curvetoQuadraticAbs(float,float,float,float)}.
 */
public void curvetoQuadraticAbs(float x1, float y1,
                                float x, float y) throws ParseException {
    listHandler.item(new SVGPathSegCurvetoQuadraticItem
        (SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,PATHSEG_CURVETO_QUADRATIC_ABS_LETTER,
         x1,y1,x,y));
}
项目:Push2Display    文件:AbstractSVGPathSegList.java   
/**
 * Implements {@link org.apache.batik.parser.PathHandler#curvetoQuadraticSmoothRel(float,float)}.
 */
public void curvetoQuadraticSmoothRel(float x, float y)
    throws ParseException {
    listHandler.item(new SVGPathSegCurvetoQuadraticSmoothItem
        (SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL_LETTER,
         x,y));
}