Examples of SVGLineElement


Examples of net.sf.latexdraw.parsers.svg.SVGLineElement

    subgrids.setAttribute(prefix+LNamespace.XML_GRID_DOTS, String.valueOf(subGridDots));
    subgrids.setAttribute(prefix+LNamespace.XML_GRID_SUB_DIV, String.valueOf(subGridDiv));

    for(k=minX, i=posX; k<maxX; i+=xStep, k++)
      for(j=0; j<=subGridDiv; j++) {
        line = new SVGLineElement(document);
        line.setAttribute(SVGAttributes.SVG_X1, String.valueOf(i+xSubStep*j));
        line.setAttribute(SVGAttributes.SVG_X2, String.valueOf(i+xSubStep*j));
        line.setAttribute(SVGAttributes.SVG_Y1, String.valueOf(bry));
        line.setAttribute(SVGAttributes.SVG_Y2, String.valueOf(tly));
        subgrids.appendChild(line);
      }

    for(k=minY, i=posY; k<maxY; i-=yStep, k++)
      for(j=0; j<=subGridDiv; j++) {
        line = new SVGLineElement(document);
        line.setAttribute(SVGAttributes.SVG_X1, String.valueOf(tlx));
        line.setAttribute(SVGAttributes.SVG_X2, String.valueOf(brx));
        line.setAttribute(SVGAttributes.SVG_Y1, String.valueOf(i-ySubStep*j));
        line.setAttribute(SVGAttributes.SVG_Y2, String.valueOf(i-ySubStep*j));
        subgrids.appendChild(line);
 
View Full Code Here

Examples of net.sf.latexdraw.parsers.svg.SVGLineElement

    grids.setAttribute(SVGAttributes.SVG_STROKE, CSSColors.INSTANCE.getColorName(linesColour, true));
    grids.setAttribute(SVGAttributes.SVG_STROKE_LINECAP, SVGAttributes.SVG_LINECAP_VALUE_SQUARE);
    grids.setAttribute(prefix+LNamespace.XML_TYPE, LNamespace.XML_TYPE_GRID);

    for(k=minX, i=posX; k<=maxX; i+=xStep, k++) {
      line = new SVGLineElement(document);
      line.setAttribute(SVGAttributes.SVG_X1, String.valueOf(i));
      line.setAttribute(SVGAttributes.SVG_X2, String.valueOf(i));
      line.setAttribute(SVGAttributes.SVG_Y1, String.valueOf(bry));
      line.setAttribute(SVGAttributes.SVG_Y2, String.valueOf(tly));
      grids.appendChild(line);
    }

    for(k=minY, i=posY; k<=maxY; i-=yStep, k++) {
      line = new SVGLineElement(document);
      line.setAttribute(SVGAttributes.SVG_X1, String.valueOf(tlx));
      line.setAttribute(SVGAttributes.SVG_X2, String.valueOf(brx));
      line.setAttribute(SVGAttributes.SVG_Y1, String.valueOf(i));
      line.setAttribute(SVGAttributes.SVG_Y2, String.valueOf(i));
      grids.appendChild(line);
View Full Code Here

Examples of net.sf.latexdraw.parsers.svg.SVGLineElement

      throw new IllegalArgumentException();

    if(elt2 instanceof SVGPolyLineElement) {
      setSVGModifiablePointsParameters((SVGPolyLineElement)elt2);
    }else {
      final SVGLineElement lineElt = (SVGLineElement)elt2;
      shape.addPoint(ShapeFactory.createPoint(lineElt.getX1(), lineElt.getY1()));
      shape.addPoint(ShapeFactory.createPoint(lineElt.getX2(), lineElt.getY2()));
    }

    setSVGParameters(elt2);
    setSVGLatexdrawParameters(elt);
    setSVGShadowParameters(getLaTeXDrawElement(elt, LNamespace.XML_TYPE_SHADOW));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.