Package net.alteiar.campaign.player.gui.centerViews.map.tools.actions

Examples of net.alteiar.campaign.player.gui.centerViews.map.tools.actions.AddElementAction


  @Override
  public void mouseClicked(MapEvent event) {
    if (SwingUtilities.isRightMouseButton(event.getMouseEvent())) {
      JPopupMenu popup = new JPopupMenu();

      popup.add(new JMenuItem(new AddElementAction(getMapInfo(), event
          .getFixToGridPosition())));

      if (CampaignClient.getInstance().getCurrentPlayer().isDm()) {
        popup.addSeparator();
View Full Code Here


public class PanelToolGeneral extends JToolBar {
  private static final long serialVersionUID = 1L;

  public PanelToolGeneral(final MapEditableInfo mapInfo,
      PanelMoveZoom<?> panelZoom) {
    JButton addElement = new JButton(new AddElementAction(mapInfo));
    addElement.setHideActionText(true);

    this.add(addElement);

    this.addSeparator();
View Full Code Here

TOP

Related Classes of net.alteiar.campaign.player.gui.centerViews.map.tools.actions.AddElementAction

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.