Examples of belongsToCurrentMap()


Examples of de.hpi.eworld.simulationstatistic.model.StatDataset.belongsToCurrentMap()

      double lowThresh = (Double) lowThreshold.getValue();
      double highThresh = (Double) highThreshold.getValue();
      Value value = Value.valueOf((String) valueBox.getSelectedItem());
      int interval = (Integer) intervalBox.getValue();

      if (!dataset.belongsToCurrentMap()) {
        logger.info("Only data belonging to current map can be visualized!");
        JOptionPane.showMessageDialog(mainView.getComponent(),
                "Data set does not belong to current map!",
                "Can't visualize data",
                JOptionPane.WARNING_MESSAGE);
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatDataset.belongsToCurrentMap()

    StatDataset model1 = new StatDataset();
   
    //initial values
    Assert.assertEquals(false, model1.isAutomaticImport());
    Assert.assertEquals(false, model1.isLaneDataIncluded());
    Assert.assertEquals(false, model1.belongsToCurrentMap());
    Assert.assertEquals(null, model1.getDataURL());
    Assert.assertEquals(null, model1.getDataFile());
    Assert.assertNotNull(model1.getDisplayText());
    Assert.assertNotNull(model1.getId());
    Assert.assertEquals(0, model1.getIntervals().size());
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatDataset.belongsToCurrentMap()

    model1.setLaneDataIncluded(true);
    Assert.assertEquals(true, model1.isLaneDataIncluded());
   
    //current map
    model1.setBelongsToCurrentMap(true);
    Assert.assertEquals(true, model1.belongsToCurrentMap());
   
    //file url
    URL test = new URL("file", null, "C:\\testfile.txt");
    model1.setDataURL(test);
    Assert.assertEquals(test, model1.getDataURL());
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatDataset.belongsToCurrentMap()

    model1.clear();
   
    //initial values
    Assert.assertEquals(false, model1.isAutomaticImport());
    Assert.assertEquals(false, model1.isLaneDataIncluded());
    Assert.assertEquals(false, model1.belongsToCurrentMap());
    Assert.assertEquals(null, model1.getDataFile());
    Assert.assertNotNull(model1.getDisplayText());
    Assert.assertNotNull(model1.getId());
    Assert.assertEquals(0, model1.getIntervals().size());
    Assert.assertEquals(0, model1.numIntervals());
View Full Code Here

Examples of de.hpi.eworld.simulationstatistic.model.StatDataset.belongsToCurrentMap()

   * Checks whether the new data set belongs to the current map
   * and de-/activates the "show on map" action accordingly
   */
  private void checkBelongingToMap(){
    StatDataset dataset = getDataset((ListValue) datasetsList.getSelectedValue());
    if ((dataset != null) && (dataset.belongsToCurrentMap()))
      showOnMapAction.setEnabled(true);
    else
      showOnMapAction.setEnabled(false);
  }
 
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.