jcreek.cke.command
Class PasteCommand
java.lang.Object
jcreek.cke.command.CreekCommand
jcreek.cke.command.PasteCommand
- All Implemented Interfaces:
- javax.swing.undo.UndoableEdit
- public class PasteCommand
- extends CreekCommand
Title: JavaCreek
Description: A Case based Reasoning Approach in java
Copyright: Copyright (c) 2002
Company: Phil
- Version:
- 1.0
- Author:
- Victor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodes
protected VertexList nodes
- List of Entities to be Pasted
relations
protected RelationList relations
loc
protected java.awt.Point loc
- Location to which the Entities
have to be pasted
PasteCommand
public PasteCommand(CreekDocument doc,
VertexList ve,
RelationList rl,
java.awt.Point loc)
getUndoPresentationName
public java.lang.String getUndoPresentationName()
perform
public boolean perform()
- Description copied from class:
CreekCommand
- Do the command for the first time. The arguments
are given in the constructor for the particular
implementation of the command.
- Specified by:
perform
in class CreekCommand
- Returns:
- true if command executed, false if error
die
public void die()
isSignificant
public boolean isSignificant()
redo
public void redo()
throws javax.swing.undo.CannotRedoException
- Throws:
javax.swing.undo.CannotRedoException
undo
public void undo()
throws javax.swing.undo.CannotUndoException
- Throws:
javax.swing.undo.CannotUndoException
addEdit
public boolean addEdit(javax.swing.undo.UndoableEdit parm1)
getRedoPresentationName
public java.lang.String getRedoPresentationName()
replaceEdit
public boolean replaceEdit(javax.swing.undo.UndoableEdit parm1)
getPresentationName
public java.lang.String getPresentationName()
translateEntities
public void translateEntities()
trimList
public void trimList()
- Removes VisualEntity and VisualRelation that
already exist in view
resetEntities
protected void resetEntities(VertexList vl)
resetRelations
protected void resetRelations(RelationList rl)
Created at IDI, NTNU by the Artificial Intelligence and Learning group