Package | Description |
---|---|
com.yworks.yfiles.graph |
Definitions, default implementations, and support classes that represent graph structures and provide facilities for their programmatic modification.
|
Modifier and Type | Method and Description |
---|---|
protected IGraphClipboardContext |
GraphClipboard.createContext(IGraph sourceGraph,
IGraph targetGraph)
Factory method that creates the context for the upcoming calls to the
IClipboardHelper methods. |
Modifier and Type | Method and Description |
---|---|
Object |
IClipboardHelper.copy(IGraphClipboardContext context,
IModelItem item)
This method is called during the copy operation of the given item to retrieve additional state that can be later used
during a
IClipboardHelper.paste(IGraphClipboardContext, IModelItem, Object) operation. |
Object |
IClipboardHelper.cut(IGraphClipboardContext context,
IModelItem item)
This method is called during the cut operation of the given item to retrieve additional state that can be later used
during a
IClipboardHelper.paste(IGraphClipboardContext, IModelItem, Object) operation. |
Object |
IClipboardIdProvider.getId(IGraphClipboardContext context,
IModelItem originalItem)
Gets the ID for the given
originalItem . |
IModelItem |
IClipboardIdProvider.getItem(IGraphClipboardContext context,
Object id)
Gets the item which is represented by the given
id . |
void |
IClipboardHelper.paste(IGraphClipboardContext context,
IModelItem item,
Object userData)
This method is called after the item has been pasted from the clipboard.
|
boolean |
IClipboardHelper.shouldCopy(IGraphClipboardContext context,
IModelItem item)
Determines whether the given item can or should be copied to the clipboard.
|
boolean |
IClipboardHelper.shouldCut(IGraphClipboardContext context,
IModelItem item)
Determines whether the given item can or should be cut to the clipboard.
|
boolean |
IClipboardHelper.shouldPaste(IGraphClipboardContext context,
IModelItem item,
Object userData)
Determines whether the given item can or should be pasted from the clipboard to the target graph.
|