Examples of drawTo()


Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.drawTo()

        for(Iterator<DBID> iter = csp.iterateClass(c); iter.hasNext();) {
          DBID id = iter.next();
          SVGPath path = new SVGPath();
          double[] yPos = proj.fastProjectDataToRenderSpace(relation.get(id));
          for(int i = 0; i < yPos.length; i++) {
            path.drawTo(getVisibleAxisX(i), yPos[i]);
          }
          Element line = path.makeElement(svgp);
          SVGUtil.addCSSClass(line, key);
          layer.appendChild(line);
        }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.drawTo()

      while(ids.hasNext()) {
        DBID id = ids.next();
        SVGPath path = new SVGPath();
        double[] yPos = proj.fastProjectDataToRenderSpace(relation.get(id));
        for(int i = 0; i < yPos.length; i++) {
          path.drawTo(getVisibleAxisX(i), yPos[i]);
        }
        Element line = path.makeElement(svgp);
        SVGUtil.addCSSClass(line, DATALINE);
        // assign color
        line.setAttribute(SVGConstants.SVG_STYLE_ATTRIBUTE, SVGConstants.CSS_STROKE_PROPERTY + ":" + SVGUtil.colorToString(sp.getColorForDBID(id)));
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.drawTo()

      double[] pmean = proj.fastProjectDataToRenderSpace(mean);

      SVGPath path = new SVGPath();
      for(int i = 0; i < pmean.length; i++) {
        path.drawTo(getVisibleAxisX(i), pmean[i]);
      }

      Element meanline = path.makeElement(svgp);
      SVGUtil.addCSSClass(meanline, CLUSTERMEAN + cnum);
      layer.appendChild(meanline);
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.drawTo()

    double[] min = proj.fastProjectDataToRenderSpace(SpatialUtil.getMin(entry));
    double[] max = proj.fastProjectDataToRenderSpace(SpatialUtil.getMax(entry));
    assert (min.length == dim && max.length == dim);
    SVGPath path = new SVGPath();
    for(int i = 0; i < dim; i++) {
      path.drawTo(getVisibleAxisX(i), Math.max(min[i], max[i]));
    }
    for(int i = dim - 1; i >= 0; i--) {
      path.drawTo(getVisibleAxisX(i), Math.min(min[i], max[i]));
    }
    path.close();
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.drawTo()

    SVGPath path = new SVGPath();
    for(int i = 0; i < dim; i++) {
      path.drawTo(getVisibleAxisX(i), Math.max(min[i], max[i]));
    }
    for(int i = dim - 1; i >= 0; i--) {
      path.drawTo(getVisibleAxisX(i), Math.min(min[i], max[i]));
    }
    path.close();

    Element intervals = path.makeElement(svgp);
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.drawTo()

      SVGPath path = new SVGPath();
      if(!rounded) {
        // Straight lines
        for(int i = 0; i < dim; i++) {
          path.drawTo(getVisibleAxisX(i), mms[i].getMax());
          if(i < dim - 1) {
            path.drawTo(getVisibleAxisX(i + .5), midmm[i].getMax());
          }
        }
        for(int i = dim - 1; i >= 0; i--) {
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.drawTo()

      if(!rounded) {
        // Straight lines
        for(int i = 0; i < dim; i++) {
          path.drawTo(getVisibleAxisX(i), mms[i].getMax());
          if(i < dim - 1) {
            path.drawTo(getVisibleAxisX(i + .5), midmm[i].getMax());
          }
        }
        for(int i = dim - 1; i >= 0; i--) {
          if(i < dim - 1) {
            path.drawTo(getVisibleAxisX(i + .5), midmm[i].getMin());
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.drawTo()

            path.drawTo(getVisibleAxisX(i + .5), midmm[i].getMax());
          }
        }
        for(int i = dim - 1; i >= 0; i--) {
          if(i < dim - 1) {
            path.drawTo(getVisibleAxisX(i + .5), midmm[i].getMin());
          }
          path.drawTo(getVisibleAxisX(i), mms[i].getMin());
        }
        path.close();
      }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.drawTo()

        }
        for(int i = dim - 1; i >= 0; i--) {
          if(i < dim - 1) {
            path.drawTo(getVisibleAxisX(i + .5), midmm[i].getMin());
          }
          path.drawTo(getVisibleAxisX(i), mms[i].getMin());
        }
        path.close();
      }
      else {
        // Maxima
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGPath.drawTo()

        }
        path.close();
      }
      else {
        // Maxima
        path.drawTo(getVisibleAxisX(0), mms[0].getMax());
        for(int i = 1; i < dim; i++) {
          path.quadTo(getVisibleAxisX(i - .5), midmm[i - 1].getMax(), getVisibleAxisX(i), mms[i].getMax());
        }
        // Minima
        path.drawTo(getVisibleAxisX(dim - 1), mms[dim - 1].getMin());
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.