Package ptolemy.vergil.basic
Class BasicGraphFrameExtension
- java.lang.Object
-
- ptolemy.vergil.basic.BasicGraphFrameExtension
-
- All Implemented Interfaces:
java.io.Serializable
public class BasicGraphFrameExtension extends java.lang.Object implements java.io.Serializable
This class provides default extensions points which are overridden in the Kepler Comad module.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Sven Koehler, Christopher Brooks.
- See Also:
- Serialized Form
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
alternateDelete(java.lang.Object[] selection, AbstractBasicGraphModel graphModel, NamedObj container)
Delete the Ptolemy objects represented by the selection.static void
alternatePaste(NamedObj container, java.lang.StringBuffer moml)
Paste the Ptolemy objects represented by the value of the moml argument into the container.static void
alternatePasteMomlModification(NamedObj container, java.lang.StringBuffer moml)
Paste the Ptolemy objects represented by the value of the moml argument into the container.static java.lang.Object[]
filterDeletedObjects(AbstractBasicGraphModel graphModel, java.lang.Object[] selection)
Filter the array of objects selected for deletion.static void
filterDeleteMoml(AbstractBasicGraphModel graphModel, java.lang.Object[] selection, java.lang.StringBuffer moml)
Filter the moml to be deleted.static EditorDropTarget
getDropTarget(JGraph jGraph)
Return the drop target for a JGraph.
-
-
-
Method Detail
-
alternateDelete
public static void alternateDelete(java.lang.Object[] selection, AbstractBasicGraphModel graphModel, NamedObj container) throws IllegalActionException
Delete the Ptolemy objects represented by the selection. This method is typically called by BasicGraphFrame.delete().- Parameters:
selection
- The objects to be deleted.graphModel
- The graphical model.container
- The container in which the Ptolemy objects reside- Throws:
IllegalActionException
- If there is a problem deleting.
-
alternatePasteMomlModification
public static void alternatePasteMomlModification(NamedObj container, java.lang.StringBuffer moml) throws IllegalActionException
Paste the Ptolemy objects represented by the value of the moml argument into the container.- Parameters:
container
- The container in to which the Ptolemy objects are pasted.moml
- The moml used to create the objects.- Throws:
IllegalActionException
- If there is a problem pasting.
-
alternatePaste
public static void alternatePaste(NamedObj container, java.lang.StringBuffer moml) throws IllegalActionException
Paste the Ptolemy objects represented by the value of the moml argument into the container.- Parameters:
container
- The container in to which the Ptolemy objects are pasted.moml
- The moml used to create the objects.- Throws:
IllegalActionException
- If there is a problem pasting.
-
filterDeletedObjects
public static java.lang.Object[] filterDeletedObjects(AbstractBasicGraphModel graphModel, java.lang.Object[] selection)
Filter the array of objects selected for deletion.- Parameters:
graphModel
- The graphical model.selection
- The objects to be deleted.- Returns:
- a new array that contains objects to be deleted.
-
filterDeleteMoml
public static void filterDeleteMoml(AbstractBasicGraphModel graphModel, java.lang.Object[] selection, java.lang.StringBuffer moml)
Filter the moml to be deleted.- Parameters:
graphModel
- The graphical model.selection
- The objects to be deleted.moml
- The moml to be filtered.
-
getDropTarget
public static EditorDropTarget getDropTarget(JGraph jGraph)
Return the drop target for a JGraph.- Parameters:
jGraph
- The Jgraph of interest- Returns:
- The drop target.
-
-