Examples of deserializeStation()


Examples of jmt.gui.jmodel.definitions.JmodelStationDefinition.deserializeStation()

    // Recreates all stations and position them
    keys = stations.keySet().iterator();
    while (keys.hasNext()) {
      oldkey = keys.next();
      // Creates a new station with parameters got from previous copy operation
      newkey = sd.deserializeStation(stations.get(oldkey));
      newcell = mediator.getCellFactory().createCell(sd.getStationType(newkey) + "Cell", new CellComponent(newkey, sd));
      tempkey.put(oldkey, newkey);
      // Calculates where this station should be put
      oldpos = stationpositions.get(oldkey);
      newpos = new Point2D.Double(where.getX() + oldpos.getX() - zero.getX(), where.getY() + oldpos.getY() - zero.getY());
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.