operations
Class OpAddEndsAS

java.lang.Object
  |
  +--operations.Operation
        |
        +--operations.OpAddEnds
              |
              +--operations.OpAddEndsAS

public class OpAddEndsAS
extends OpAddEnds


Field Summary
 
Fields inherited from class operations.OpAddEnds
ends, subs
 
Fields inherited from class operations.Operation
constructedObjects, level, objects, reconstructedObjects, thisLab, undoable, use
 
Constructor Summary
OpAddEndsAS(interagents.userLab lab)
           
 
Method Summary
 void perform(fundamentals.signature sgn)
          The following method performs the operation on the objects given in objs.
 interagents.ObjectWithStatus performNear(fundamentals.signature sgn)
           
 boolean uniqueIsNear(fundamentals.signature sgn, int x, int y, fundamentals.mouseInfo info)
          This method is used when the operation is performed because of a mouse click.
 
Methods inherited from class operations.OpAddEnds
can, canDefault, toNaturalLanguage
 
Methods inherited from class operations.Operation
construct, deselect, enable, hide, isUndoable, name, record, record, show, start, stop, submenu, unconstruct, undoAll, undoFirst
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpAddEndsAS

public OpAddEndsAS(interagents.userLab lab)
Method Detail

uniqueIsNear

public boolean uniqueIsNear(fundamentals.signature sgn,
                            int x,
                            int y,
                            fundamentals.mouseInfo info)
This method is used when the operation is performed because of a mouse click. The method finds those end objects that are close to the mouse without selecting any of them.


performNear

public interagents.ObjectWithStatus performNear(fundamentals.signature sgn)
                                         throws LeaException
LeaException

perform

public void perform(fundamentals.signature sgn)
             throws LeaException
Description copied from class: Operation
The following method performs the operation on the objects given in objs. It's assumed that it makes sense to perform the operation (this can be checked with the can() method. Some subclasses assume that can() method is always called before the perform() method, and that it's called with the same objs Vector.

Overrides:
perform in class OpAddEnds
LeaException