Package de.lmu.ifi.dbs.elki.visualization.svg

Examples of de.lmu.ifi.dbs.elki.visualization.svg.SVGCheckbox


    drawSegments();

    //
    // Build Interface
    //
    SVGCheckbox checkbox = new SVGCheckbox(showUnclusteredPairs, "Show unclustered pairs");
    checkbox.addCheckBoxListener(new ChangeListener() {
      @Override
      public void stateChanged(ChangeEvent e) {
        toggleUnclusteredPairs(((SVGCheckbox) e.getSource()).isChecked());
      }
    });

    // Add ring:clustering info
    Element clrInfo = drawClusteringInfo();
    Element c = checkbox.renderCheckBox(svgp, 1, 5 + Double.parseDouble(clrInfo.getAttribute(SVGConstants.SVG_HEIGHT_ATTRIBUTE)), 11);
    ctrlLayer.appendChild(clrInfo);
    ctrlLayer.appendChild(c);

    ctrlLayer.setAttribute(SVGConstants.SVG_TRANSFORM_ATTRIBUTE, "scale(" + (0.25 / StyleLibrary.SCALE) + ")");
View Full Code Here

TOP

Related Classes of de.lmu.ifi.dbs.elki.visualization.svg.SVGCheckbox

Copyright © 2018 www.massapicom. 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.