Package ch.deif.meander.viz

Examples of ch.deif.meander.viz.Layers


    loop(display, shell);
  }
 
  private static void createMeander(Shell shell) {
    bridge = new EclipseProcessingBridge(shell, EclipseProcessingBridge.createApplet());
    Layers layers = LabelSketch.createLabeledSketch();
    new NearestNeighborAlgorithm(layers.getMap()).run();
    layers.add(CurrentSelectionOverlay.class);
   
    Location loc = findLocation(layers.getMap(), "the");
    loc.setColor(new Colors(255, 0, 0));
   
    loc = findLocation(layers.getMap(), "for");
    loc.setColor(new Colors(255, 0, 0))
   
    loc = findLocation(layers.getMap(), "fox");
    loc.setColor(new Colors(255, 0, 0));     
   
    bridge.setMapVizualization(layers);
   
   
    int dim = layers.getMap().getParameters().width;
    shell.setSize(dim, dim);
  }
View Full Code Here


  }

  @Test
  public void testView() throws PartInitException {
    selectJavaProject();
    Layers layers = testLayersLoaded();
    Map map = layers.getMap();
    assertEquals(2, map.locationCount());
  }
View Full Code Here

  }

  private Layers testLayersLoaded() {
    MapVisualization visualization = mapView.softwareMap().getApplet().getVisualization();
    assertTrue(visualization instanceof Layers);
    Layers layers = (Layers) visualization;
    MapVisualization mapVisualization = layers.get(CurrentSelectionOverlay.class);
    assertTrue(mapVisualization instanceof CurrentSelectionOverlay);
    CurrentSelectionOverlay overlay = (CurrentSelectionOverlay) mapVisualization;
    return layers;
  }
View Full Code Here

TOP

Related Classes of ch.deif.meander.viz.Layers

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.