Pounamu
v1.0

pounamu.command
Class ResizeShape

java.lang.Object
  |
  +--pounamu.command.ResizeShape
All Implemented Interfaces:
PounamuCommand

public class ResizeShape
extends java.lang.Object
implements PounamuCommand

an command to resize a shape on the drawing canvas.


Field Summary
 
Fields inherited from interface pounamu.command.PounamuCommand
EXCUTE, REDO, UNDO
 
Constructor Summary
ResizeShape(ModellerPanel panel, PounamuPanel shape, int oldX, int oldY, int newX, int newY, int startX, int startY)
          constructor
 
Method Summary
 void excute()
          excute this command
 java.lang.String getDescription()
          get the description of this command
 void redo()
          redo this command
 void undo()
          undo this command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeShape

public ResizeShape(ModellerPanel panel,
                   PounamuPanel shape,
                   int oldX,
                   int oldY,
                   int newX,
                   int newY,
                   int startX,
                   int startY)
constructor

Parameters:
panel - the drawing panel where this shape is moving on
shape - the shape to be moved
oldX - the coordinate x of the mouse caret when mouse pressed down
oldY - the coordinate y of the mouse caret when mouse release
newX - the coordinate x of the mouse caret when mouse pressed down
newY - the coordinate y of the mouse caret when mouse release
Method Detail

excute

public void excute()
excute this command

Specified by:
excute in interface PounamuCommand

undo

public void undo()
undo this command

Specified by:
undo in interface PounamuCommand

redo

public void redo()
redo this command

Specified by:
redo in interface PounamuCommand

getDescription

public java.lang.String getDescription()
get the description of this command

Specified by:
getDescription in interface PounamuCommand
Returns:
the string decribing this command

Pounamu
v1.0

Submit a bug or feature

Pounamu is a research project of Auckland UniServices Limited, in New Zealand
Copyright 2003 Auckland UniServices Limited. 70 Samond Street, Auckland, New Zealand.
All Rights Reserved.