Package de.hpi.eworld.core.ui

Examples of de.hpi.eworld.core.ui.SharedAction


    substituteObservable.fireNotifyObservers(new ObserverNotification(NotificationType.volatileModelElementRemoved, modelElement));
  }

  private SharedAction getCenterOnMapAction() {
    if (centerOnMapAction == null) {
      centerOnMapAction = new SharedAction() {
        private static final long serialVersionUID = 78923729815797383L;

        @Override
        protected void execute(final ActionEvent e) {
          graphView.centerMap();
View Full Code Here


    return centerOnMapAction;
  }
 
  private SharedAction getZoomInMapAction() {
    if (zoomInAction == null) {
      zoomInAction = new SharedAction() {
        private static final long serialVersionUID = 78923729815797383L;

        @Override
        protected void execute(final ActionEvent e) {
          graphView.zoomIn();
View Full Code Here

    return zoomInAction;
  }
 
  private SharedAction getZoomOutMapAction() {
    if (zoomOutAction == null) {
      zoomOutAction = new SharedAction() {
        private static final long serialVersionUID = 78923729815797383L;

        @Override
        protected void execute(final ActionEvent e) {
          graphView.zoomOut();
View Full Code Here

    return zoomOutAction;
  }

  private SharedAction getNetworkViewSettingsAction() {
    if (networkViewSettingsAction == null) {
      networkViewSettingsAction = new SharedAction() {
        private static final long serialVersionUID = 3980129486744377572L;

        @Override
        protected void execute(final ActionEvent e) {
          final SettingsDialog dialog = new SettingsDialog();
View Full Code Here

    menu.add(getExportToVanetAction().createJMenuItem());
  }

  private SharedAction getExportToVanetAction() {
    if (exportToVanetAction == null) {
      exportToVanetAction = new SharedAction() {
        private static final long serialVersionUID = 7891579982658936789L;

        @Override
        protected void execute(final ActionEvent e) {
          exportToVanetMobiSim();
View Full Code Here

      settingsDialog.setVisible(true);
    }
  };

  private SharedAction createStepBackAction() {
    final SharedAction stepBackAction = new SharedAction() {
      private static final long serialVersionUID = -3287025756368346985L;

      @Override
      protected void execute(ActionEvent e) {
        stepBackward();
      }
    };
    stepBackAction.setText("Step backward");
    stepBackAction.setSmallIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class,
        "button_step_back.png", 16));
    stepBackAction.setLargeIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class,
        "button_step_back.png", 20));
    stepBackAction.setToolTipText("Step backward");
    return stepBackAction;
  }
View Full Code Here

    stepBackAction.setToolTipText("Step backward");
    return stepBackAction;
  }

  private SharedAction createPlayAction() {
    final SharedAction playAction = new SharedAction() {
      private static final long serialVersionUID = 6920399644087446967L;

      @Override
      protected void execute(ActionEvent e) {
        togglePlayButton();
      }
    };
    playAction.setText("Play");
    playAction.setSmallIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "button_play.png",
        16));
    playAction.setLargeIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "button_play.png",
        20));
    playAction.setToolTipText("Start Simulation");
    return playAction;
  }
View Full Code Here

    playAction.setToolTipText("Start Simulation");
    return playAction;
  }

  private SharedAction createStepForwardAction() {
    final SharedAction stepForwardAction = new SharedAction() {
      private static final long serialVersionUID = 946915689173284619L;

      @Override
      protected void execute(ActionEvent e) {
        stepForward();
      }
    };
    stepForwardAction.setText("Step forward");
    stepForwardAction.setSmallIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class,
        "button_step_forward.png", 16));
    stepForwardAction.setLargeIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class,
        "button_step_forward.png", 20));
    stepForwardAction.setToolTipText("Step forward");
    return stepForwardAction;
  }
View Full Code Here

    stepForwardAction.setToolTipText("Step forward");
    return stepForwardAction;
  }

  private SharedAction createStopAction() {
    final SharedAction stopAction = new SharedAction() {
      private static final long serialVersionUID = -7915968912541507913L;

      @Override
      protected void execute(final ActionEvent e) {
        stopSimulation();
      }
    };
    stopAction.setText("Stop");
    stopAction.setSmallIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "button_stop.png",
        16));
    stopAction.setLargeIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "button_stop.png",
        20));
    stopAction.setToolTipText("Stop Simulation");
    return stopAction;
  }
View Full Code Here

    add(stepDisplay);
    add(Box.createHorizontalGlue());
  }

  private SharedAction createPlayAction() {
    final SharedAction playAction = new SharedAction() {
      private static final long serialVersionUID = -5551693287032118227L;

      @Override
      protected void execute(ActionEvent e) {
        toggleSimulation();
      }
    };
    playAction.setText("Play");
    playAction.setSmallIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "play.png", 16));
    playAction.setLargeIcon(ResourceLoader.createIconFromLocalResource(VisualizerPlugin.class, "play.png", 20));
    playAction.setToolTipText("Start Simulation");
    return playAction;

  }
View Full Code Here

TOP

Related Classes of de.hpi.eworld.core.ui.SharedAction

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.