com.swfm.mica.commands
Class MiModifyAttributesOfPartsCommand

java.lang.Object
  extended bycom.swfm.mica.commands.MiCommandHandler
      extended bycom.swfm.mica.commands.MiModifyAttributesOfPartsCommand
All Implemented Interfaces:
MiiCommandHandler, MiiCommandNames, MiiDisplayNames, MiiMessages, MiiPropertyTypes, MiiTargetableCommandHandler, MiiTransaction

public class MiModifyAttributesOfPartsCommand
extends MiCommandHandler
implements MiiTransaction, MiiCommandNames, MiiDisplayNames, MiiPropertyTypes

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
         
Constructor Summary
MiModifyAttributesOfPartsCommand()
           
MiModifyAttributesOfPartsCommand(MiEditor editor, java.util.ArrayList newAttributesList, java.util.ArrayList currentAttributes, MiParts parts)
           
MiModifyAttributesOfPartsCommand(MiEditor editor, MiAttributes newAttributes, java.util.ArrayList currentAttributes, MiParts parts)
           
 
Method Summary
 java.lang.String getCommand()
          Gets the command perfromed by this transaction.
 MiEditor getEditor()
           
 java.lang.String getName()
          Gets the name of this transaction.
 MiAttributes getNewAttributes()
           
 MiParts getSources()
          Gets the parts used by this transaction.
 MiParts getTargets()
          Gets the targets of this transaction.
 boolean isRepeatable()
          Gets whether this transaction is repeatable.
 boolean isUndoable()
          Gets whether this transaction is undoable.
 void modifyAttributes(MiEditor editor, java.lang.String attName, boolean attValue, MiParts parts)
           
 void modifyAttributes(MiEditor editor, java.lang.String attName, double attValue, MiParts parts)
           
 void modifyAttributes(MiEditor editor, java.lang.String attName, int attValue, MiParts parts)
           
 void modifyAttributes(MiEditor editor, java.lang.String attName, java.lang.Object attValue, MiParts parts)
           
 void modifyAttributes(MiEditor editor, java.lang.String attName, java.lang.String attValue, MiParts parts)
           
 void processCommand(MiEditor editor, MiAttributes newAttributes, java.util.ArrayList currentAttributes, MiParts parts)
           
 void processCommand(MiEditor editor, java.lang.String attName, java.lang.Object attValue, int attValueType, java.util.ArrayList currentAttributes, MiParts parts)
           
 void processCommand(java.lang.String arg)
          Processes the given command.
 void redo()
          Redoes this transaction.
 void repeat()
          Repeats this transaction.
 void setNewAttributes(MiAttributes atts)
           
 void undo()
          Undoes this transaction.
 
Methods inherited from class com.swfm.mica.commands.MiCommandHandler
getTargetOfCommand, setTargetOfCommand
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiModifyAttributesOfPartsCommand

public MiModifyAttributesOfPartsCommand()

MiModifyAttributesOfPartsCommand

public MiModifyAttributesOfPartsCommand(MiEditor editor,
                                        java.util.ArrayList newAttributesList,
                                        java.util.ArrayList currentAttributes,
                                        MiParts parts)

MiModifyAttributesOfPartsCommand

public MiModifyAttributesOfPartsCommand(MiEditor editor,
                                        MiAttributes newAttributes,
                                        java.util.ArrayList currentAttributes,
                                        MiParts parts)
Method Detail

getEditor

public MiEditor getEditor()

setNewAttributes

public void setNewAttributes(MiAttributes atts)

getNewAttributes

public MiAttributes getNewAttributes()

modifyAttributes

public void modifyAttributes(MiEditor editor,
                             java.lang.String attName,
                             java.lang.Object attValue,
                             MiParts parts)

modifyAttributes

public void modifyAttributes(MiEditor editor,
                             java.lang.String attName,
                             java.lang.String attValue,
                             MiParts parts)

modifyAttributes

public void modifyAttributes(MiEditor editor,
                             java.lang.String attName,
                             int attValue,
                             MiParts parts)

modifyAttributes

public void modifyAttributes(MiEditor editor,
                             java.lang.String attName,
                             double attValue,
                             MiParts parts)

modifyAttributes

public void modifyAttributes(MiEditor editor,
                             java.lang.String attName,
                             boolean attValue,
                             MiParts parts)

processCommand

public void processCommand(java.lang.String arg)
Description copied from interface: MiiCommandHandler
Processes the given command.

Specified by:
processCommand in interface MiiCommandHandler

processCommand

public void processCommand(MiEditor editor,
                           MiAttributes newAttributes,
                           java.util.ArrayList currentAttributes,
                           MiParts parts)

processCommand

public void processCommand(MiEditor editor,
                           java.lang.String attName,
                           java.lang.Object attValue,
                           int attValueType,
                           java.util.ArrayList currentAttributes,
                           MiParts parts)

getName

public java.lang.String getName()
Gets the name of this transaction. This name is often displayed, for example, in the menubar's edit pulldown menu.

Specified by:
getName in interface MiiTransaction
Returns:
the name of this transaction.

getCommand

public java.lang.String getCommand()
Gets the command perfromed by this transaction. This name is often found in the MiiCommandNames file.

Specified by:
getCommand in interface MiiTransaction
Returns:
the command of this transaction.

redo

public void redo()
Redoes this transaction. This is only valid after an undo. This redoes the changes encapsulated by this transaction that were undone by the undo() method.

Specified by:
redo in interface MiiTransaction

undo

public void undo()
Undoes this transaction. This undoes any changes that were made by the changes encapsulated by this transaction.

Specified by:
undo in interface MiiTransaction

repeat

public void repeat()
Repeats this transaction. This re-applies the changes encapsulated by this transaction. For example, a translation of a shape can be repeated in order to move it further.

Specified by:
repeat in interface MiiTransaction

isUndoable

public boolean isUndoable()
Gets whether this transaction is undoable.

Specified by:
isUndoable in interface MiiTransaction

isRepeatable

public boolean isRepeatable()
Gets whether this transaction is repeatable. If repeatable then calling this transaction's repeat() method is permitted.

Specified by:
isRepeatable in interface MiiTransaction

getTargets

public MiParts getTargets()
Gets the targets of this transaction.

Specified by:
getTargets in interface MiiTransaction

getSources

public MiParts getSources()
Gets the parts used by this transaction.

Specified by:
getSources in interface MiiTransaction