Search in sources :

Example 11 with GraphFragment

use of com.centurylink.mdw.designer.display.GraphFragment in project mdw-designer by CenturyLinkCloud.

the class GraphClipboard method getInstance.

public static GraphClipboard getInstance() {
    if (singleton == null) {
        graphFragmentFlavor = new DataFlavor(GraphFragment.class, "GraphFragment");
        singleton = new GraphClipboard();
    }
    return singleton;
}
Also used : GraphFragment(com.centurylink.mdw.designer.display.GraphFragment) DataFlavor(java.awt.datatransfer.DataFlavor)

Aggregations

GraphFragment (com.centurylink.mdw.designer.display.GraphFragment)11 Node (com.centurylink.mdw.designer.display.Node)10 SubGraph (com.centurylink.mdw.designer.display.SubGraph)8 Link (com.centurylink.mdw.designer.display.Link)7 TextNote (com.centurylink.mdw.designer.display.TextNote)5 Rectangle (java.awt.Rectangle)3 Graph (com.centurylink.mdw.designer.display.Graph)2 Label (com.centurylink.mdw.designer.display.Label)1 GraphClipboard (com.centurylink.mdw.designer.utils.GraphClipboard)1 Point (java.awt.Point)1 DataFlavor (java.awt.datatransfer.DataFlavor)1 HashMap (java.util.HashMap)1 ImageIcon (javax.swing.ImageIcon)1 JCheckBox (javax.swing.JCheckBox)1 JComboBox (javax.swing.JComboBox)1 JPopupMenu (javax.swing.JPopupMenu)1 JTextArea (javax.swing.JTextArea)1