Class JmtClipboard
java.lang.Object
jsimgraph.controller.JmtClipboard
Title: Jmt Clipboard
Description: This class provides clipboard facility to copy and paste selected sections of current model. It will operate both on data structure (JmodelStationDefinition) end and on graphic representation (Jgraph through mediator calls).
- Author:
- Bertoli Marco Date: 21-giu-2005 Time: 11.49.57
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classInner class used to store pairs of sourceKey/targetKey objects. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Vector<JmtClipboard.Connection> protected Mediatorprotected static final intprotected Point2D -
Constructor Summary
ConstructorsConstructorDescriptionJmtClipboard(Mediator mediator) Initializes a new JmtClipboard with the given mediator. -
Method Summary
Modifier and TypeMethodDescriptionvoidCopies the given elements into clipboard.voidCopies the given station into clipboard.voidCopies the given elements into clipboard and deletes them from graph.voidflush()Flushes the clipboard.voidpaste()Pastes previously copied elements into graph at the original point.Object[]Pastes previously copied elements into graph at the given point.Pastes a previously copied station into graph at the given point.
-
Field Details
-
move
protected static final int move- See Also:
-
mediator
-
classes
-
stations
-
stationPositions
-
connections
-
regions
-
regionStations
-
zero
-
-
Constructor Details
-
JmtClipboard
Initializes a new JmtClipboard with the given mediator.- Parameters:
mediator- mediator to be referenced
-
-
Method Details
-
flush
public void flush()Flushes the clipboard. -
cut
Copies the given elements into clipboard and deletes them from graph. -
copy
Copies the given elements into clipboard. -
paste
public void paste()Pastes previously copied elements into graph at the original point. -
paste
-
copyCell
Copies the given station into clipboard. -
pasteCell
-