Package gui.commands

Examples of gui.commands.Command


    }
   
  }
 
  public void executeMoveSelectionByOne(int direction) {
    Command comm = new MoveByOne(selected, direction);
   
    executeCommand(comm);
  }
View Full Code Here


   
    executeCommand(comm);
  }
 
  public void executeResizeSelectionByOne(boolean up) {
    Command comm = new ResizeByOne(selected, up);
   
    executeCommand(comm);
  }
View Full Code Here

   
    executeCommand(comm);
  }
 
  public void executeDelete() {
    Command comm = new DeleteCommand();
   
    executeCommand(comm);
  }
View Full Code Here

   
    executeCommand(comm);
  }
 
  public void executeDraw(Krug toDraw) {
    Command comm = new DrawCommand(toDraw);
   
    executeCommand(comm);
  }
View Full Code Here

  public void startResize() {
    oldSelectedR = getSelected().getPoluprecnik();
  }
 
  public void executeResize() {
    Command comm = new ResizeCommand(oldSelectedR, selected.getPoluprecnik(), selected);
   
    executeCommand(comm);
  }
View Full Code Here

  public void startMove() {
    oldSelectedCenter = getSelected().getCentar();
  }
 
  public void executeMove() {
    Command comm = new MoveCommand(oldSelectedCenter, selected.getCentar(), selected);
   
    executeCommand(comm);
  }
View Full Code Here

    ActionManager.getInstance().undoEnabled(true);
  }

  public void undo() {
    if (doneCommands.size() > 0) {
      Command comm = doneCommands.pop();
     
      comm.undo();
     
      undoneCommands.push(comm);
    }
   
    ActionManager.getInstance().redoEnabled(true);
View Full Code Here

    drawImage();
  }

  public void redo() {
    if (undoneCommands.size() > 0) {
      Command comm = undoneCommands.pop();
     
      comm.execute();
     
      doneCommands.push(comm);
    }
   
    if (undoneCommands.size() == 0) {
View Full Code Here

TOP

Related Classes of gui.commands.Command

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.