|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCH.ifa.draw.util.Command
CH.ifa.draw.standard.CutCommand
public class CutCommand
Delete the selection and move the selected figures to the clipboard.
Clipboard| Field Summary | |
|---|---|
protected DrawingView |
fView
|
| Constructor Summary | |
|---|---|
CutCommand(java.lang.String name,
DrawingView view)
Constructs a cut command. |
|
| Method Summary | |
|---|---|
protected void |
copySelection()
Copies the selection to the clipboard. |
protected void |
deleteSelection()
Deletes the selection from the drawing. |
void |
execute()
Executes the command. |
protected void |
insertFigures(java.util.Vector figures,
int dx,
int dy)
Inserts a vector of figures and translates them by the given offset. |
boolean |
isExecutable()
Tests if the command can be executed. |
| Methods inherited from class CH.ifa.draw.util.Command |
|---|
name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DrawingView fView
| Constructor Detail |
|---|
public CutCommand(java.lang.String name,
DrawingView view)
name - the command nameview - the target view| Method Detail |
|---|
public void execute()
Command
execute in class Commandpublic boolean isExecutable()
Command
isExecutable in class Commandprotected void deleteSelection()
protected void copySelection()
protected void insertFigures(java.util.Vector figures,
int dx,
int dy)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||