Package com.cburch.draw.actions

Examples of com.cburch.draw.actions.ModelRemoveAction


        canvas.doAction(new ModelAddAction(canvas.getModel(), cur));
      }
    } else {
      String oldText = cur.getText();
      if (newText.equals("")) {
        canvas.doAction(new ModelRemoveAction(canvas.getModel(), cur));
      } else if (!oldText.equals(newText)) {
        canvas.doAction(new ModelEditTextAction(canvas.getModel(), cur,
            newText));
      }
    }
View Full Code Here


        }
      }
      if (!toRemove.isEmpty()) {
        e.consume();
        CanvasModel model = canvas.getModel();
        canvas.doAction(new ModelRemoveAction(model, toRemove));
        selected.clearSelected();
        repaintArea(canvas);
      }
    } else if (ch == '\u001b' && !selected.isEmpty()) {
      selected.clearSelected();
View Full Code Here

                }
            }
            if (!toRemove.isEmpty()) {
                e.consume();
                CanvasModel model = canvas.getModel();
                canvas.doAction(new ModelRemoveAction(model, toRemove));
                selected.clearSelected();
                repaintArea(canvas);
            }
        } else if (ch == '\u001b' && !selected.isEmpty()) {
            selected.clearSelected();
View Full Code Here

                canvas.doAction(new ModelAddAction(canvas.getModel(), cur));
            }
        } else {
            String oldText = cur.getText();
            if (newText.equals("")) {
                canvas.doAction(new ModelRemoveAction(canvas.getModel(), cur));
            } else if (!oldText.equals(newText)) {
                canvas.doAction(new ModelEditTextAction(canvas.getModel(), cur,
                        newText));
            }
        }
View Full Code Here

TOP

Related Classes of com.cburch.draw.actions.ModelRemoveAction

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.