Examples of makeElement()


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

          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.makeElement()

        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)));
        layer.appendChild(line);
      }
View Full Code Here

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

      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.makeElement()

    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);

    SVGUtil.addCSSClass(intervals, INDEX + depth);
    layer.appendChild(intervals);

    if(!entry.isLeafEntry()) {
View Full Code Here

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

          path.quadTo(getVisibleAxisX(i - .5), midmm[i - 1].getMin(), getVisibleAxisX(i - 1), mms[i - 1].getMin());
        }
        path.close();
      }

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

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

        SVGPath path = new SVGPath();
        for(int i = 0; i < proj.getVisibleDimensions(); i++) {
          path.drawTo(getVisibleAxisX(i), yPos[i]);
        }
        Element marker = path.makeElement(svgp);
        SVGUtil.addCSSClass(marker, MARKER);
        layer.appendChild(marker);
      }
    }
  }
View Full Code Here

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

      }
      Polygon chres = hull.getHull();
      if(chres != null && chres.size() >= 3) {
        SVGPath path = new SVGPath(chres);

        Element selHull = path.makeElement(svgp);
        SVGUtil.addCSSClass(selHull, SELECTEDHULL);
        // TODO: use relative selection size for opacity?
        layer.appendChild(selHull);
      }
    }
View Full Code Here

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

        double hullarea = SpatialUtil.volume(chres);
        final double relativeArea = (projarea - hullarea) / projarea;
        final double relativeSize = (double) ids.size() / rel.size();
        opacity = Math.sqrt(relativeSize * relativeArea);

        hulls = path.makeElement(svgp);
        addCSSClasses(svgp, cnum, opacity);
        SVGUtil.addCSSClass(hulls, CONVEXHULL + cnum);
        layer.appendChild(hulls);
      }
    }
View Full Code Here

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

      SVGPath path = new SVGPath();
      for(double id = 0; id < dim; id += step) {
        int i = (int) Math.floor(id);
        path.drawTo(StyleLibrary.SCALE * ratio * (((double) i) / (dim - 1)), StyleLibrary.SCALE * (1.0 - s.getScaled(series.doubleValue(i + 1))));
      }
      Element p = path.makeElement(plot);
      return p;
    }

    /**
     * Renderer for the labels, with coloring as in the plot.
View Full Code Here

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

    for(DoubleDoublePair pair : curve) {
      final double x = scalex.getScaled(pair.first);
      final double y = 1 - scaley.getScaled(pair.second);
      path.drawTo(sizex * x, sizey * y);
    }
    Element line = path.makeElement(svgp);
    line.setAttribute(SVGConstants.SVG_CLASS_ATTRIBUTE, SERIESID);

    // add axes
    try {
      SVGSimpleLinearAxis.drawAxis(svgp, layer, scalex, 0, sizey, sizex, sizey, true, true, context.getStyleLibrary());
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.