public final class NodeEditor
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
acceptCopy() |
static boolean |
acceptCreateNode() |
static boolean |
acceptCut() |
static boolean |
acceptDeletedItem() |
static boolean |
acceptDuplicate() |
static boolean |
acceptNewItem() |
static boolean |
acceptNewItem(float r,
float g,
float b,
float a,
float thickness) |
static boolean |
acceptPaste() |
static boolean |
areShortcutsEnabled() |
static void |
begin(java.lang.String title) |
static boolean |
beginCreate() |
static boolean |
beginCreate(float r,
float g,
float b,
float a,
float thickness) |
static boolean |
beginDelete() |
static boolean |
beginGroupHint(long id) |
static void |
beginNode(long id) |
static void |
beginPin(long pin,
int imNodeEditorPinKind) |
static boolean |
beginShortcut() |
static void |
centerNodeOnScreen(long node) |
static void |
clearSelection() |
static NodeEditorContext |
createEditor()
This method exists for api consistency and you can just call NodeEditorContext manually
|
static NodeEditorContext |
createEditor(NodeEditorConfig config) |
static boolean |
deleteLink(long linkId) |
static boolean |
deleteNode(long nodeId) |
static void |
deselectLink(long id) |
static void |
deselectNode(long id) |
static void |
destroyEditor(NodeEditorContext editorContext)
This method exists for api consistency and you can just call NodeEditorContext.destroy() manually
|
static void |
enableShortcuts(boolean enable) |
static void |
end() |
static void |
endCreate() |
static void |
endDelete() |
static void |
endGroupHint() |
static void |
endNode() |
static void |
endPin() |
static void |
endShortcut() |
static void |
flow(long linkId) |
static int |
getActionContextLinks(long[] links,
int size) |
static int |
getActionContextNodes(long[] nodes,
int size) |
static int |
getActionContextSize() |
static float |
getCurrentZoom() |
static long |
getDoubleClickedLink() |
static long |
getDoubleClickedNode() |
static long |
getDoubleClickedPin() |
static float |
getGroupMaxX() |
static float |
getGroupMaxY() |
static float |
getGroupMinX() |
static float |
getGroupMinY() |
static ImDrawList |
getHintBackgroundDrawList() |
static ImDrawList |
getHintForegroundDrawList()
Binding notice: both getHintForegroundDrawList(), getHintBackgroundDrawList() and getNodeBackgroundDrawList(long)
return singleton objects which shouldn't be used outside of the scope of current hint/node
|
static long |
getLinkWithContextMenu() |
static ImDrawList |
getNodeBackgroundDrawList(long nodeId) |
static void |
getNodePosition(long node,
ImVec2 dst) |
static float |
getNodePositionX(long node) |
static float |
getNodePositionY(long node) |
static float |
getNodeSizeX(long node) |
static float |
getNodeSizeY(long node) |
static long |
getNodeWithContextMenu()
Binding notice: getNodeWithContextMenu(), getPinWithContextMenu() and getLinkWithContextMenu()
return id of the object for which context menu should be shown.
|
static long |
getPinWithContextMenu() |
static float |
getScreenSizeX() |
static float |
getScreenSizeY() |
static int |
getSelectedLinks(long[] links,
int size) |
static int |
getSelectedNodes(long[] nodes,
int size) |
static int |
getSelectedObjectCount() |
static NodeEditorStyle |
getStyle() |
static java.lang.String |
getStyleColorName(int imNodeEditorStyleColor) |
static void |
group(float w,
float h) |
static boolean |
hasSelectionChanged() |
static boolean |
isActive() |
static boolean |
isBackgroundClicked() |
static boolean |
isBackgroundDoubleClicked() |
static boolean |
isSuspended() |
static void |
link(long id,
long startPinId,
long endPinId) |
static void |
link(long id,
long startPinId,
long endPinId,
float r,
float g,
float b,
float a,
float thickness) |
static void |
navigateToContent(float duration) |
static void |
navigateToSelection(boolean zoomIn,
float duration) |
static boolean |
pinHadAnyLinks(long pinId) |
static void |
pinPivotAlignment(float x,
float y) |
static void |
pinPivotRect(float x,
float y,
float w,
float h) |
static void |
pinPivotScale(float w,
float h) |
static void |
pinPivotSize(float w,
float h) |
static void |
pinRect(float x,
float y,
float w,
float h) |
static void |
popStyleColor(int count) |
static void |
popStyleVar(int count) |
static void |
pushStyleColor(int imNodeEditorStyleColor,
float r,
float g,
float b,
float a) |
static void |
pushStyleVar(int imNodeEditorStyleVar,
float v) |
static void |
pushStyleVar(int imNodeEditorStyleVar,
float x,
float y) |
static void |
pushStyleVar(int imNodeEditorStyleVar,
float r,
float g,
float b,
float a) |
static boolean |
queryDeletedLink(ImLong linkId,
ImLong startId,
ImLong endId) |
static boolean |
queryDeletedNode(ImLong nodeId) |
static boolean |
queryNewLink(ImLong startId,
ImLong endId) |
static boolean |
queryNewLink(ImLong startId,
ImLong endId,
float r,
float g,
float b,
float a,
float thickness) |
static void |
rejectDeletedItem() |
static void |
rejectNewItem() |
static void |
rejectNewItem(float r,
float g,
float b,
float a,
float thickness) |
static void |
restoreNodeState(long node) |
static void |
resume() |
static void |
selectLink(long id,
boolean append) |
static void |
selectNode(long id,
boolean append) |
static void |
setCurrentEditor(NodeEditorContext editorContext) |
static void |
setNodePosition(long node,
float x,
float y) |
static boolean |
showBackgroundContextMenu() |
static boolean |
showLinkContextMenu(ImLong linkId) |
static boolean |
showNodeContextMenu(ImLong nodeId) |
static boolean |
showPinContextMenu(ImLong pinId) |
static void |
suspend() |
static float |
toCanvasX(float screenSpacePosX) |
static float |
toCanvasY(float screenSpacePosY) |
static float |
toScreenX(float canvasSpacePosX) |
static float |
toScreenY(float canvasSpacePosY) |
public static NodeEditorContext createEditor()
public static NodeEditorContext createEditor(NodeEditorConfig config)
public static void destroyEditor(NodeEditorContext editorContext)
public static void setCurrentEditor(NodeEditorContext editorContext)
public static void begin(java.lang.String title)
public static void beginNode(long id)
public static void group(float w, float h)
public static boolean beginGroupHint(long id)
public static void beginPin(long pin, int imNodeEditorPinKind)
public static void endGroupHint()
public static void endPin()
public static void endNode()
public static void end()
public static float getScreenSizeX()
public static float getScreenSizeY()
public static float toCanvasX(float screenSpacePosX)
public static float toCanvasY(float screenSpacePosY)
public static float toScreenX(float canvasSpacePosX)
public static float toScreenY(float canvasSpacePosY)
public static NodeEditorStyle getStyle()
public static java.lang.String getStyleColorName(int imNodeEditorStyleColor)
public static void pushStyleColor(int imNodeEditorStyleColor, float r, float g, float b, float a)
public static void popStyleColor(int count)
public static void pushStyleVar(int imNodeEditorStyleVar, float v)
public static void pushStyleVar(int imNodeEditorStyleVar, float x, float y)
public static void pushStyleVar(int imNodeEditorStyleVar, float r, float g, float b, float a)
public static void popStyleVar(int count)
public static float getGroupMinX()
public static float getGroupMinY()
public static float getGroupMaxX()
public static float getGroupMaxY()
public static ImDrawList getHintForegroundDrawList()
public static ImDrawList getHintBackgroundDrawList()
public static ImDrawList getNodeBackgroundDrawList(long nodeId)
public static long getDoubleClickedNode()
public static long getDoubleClickedPin()
public static long getDoubleClickedLink()
public static boolean isBackgroundClicked()
public static boolean isBackgroundDoubleClicked()
public static boolean pinHadAnyLinks(long pinId)
public static float getCurrentZoom()
public static void pinRect(float x, float y, float w, float h)
public static void pinPivotRect(float x, float y, float w, float h)
public static void pinPivotSize(float w, float h)
public static void pinPivotScale(float w, float h)
public static void pinPivotAlignment(float x, float y)
public static boolean showNodeContextMenu(ImLong nodeId)
public static boolean showPinContextMenu(ImLong pinId)
public static boolean showLinkContextMenu(ImLong linkId)
public static long getNodeWithContextMenu()
These methods implemented as convenient alternative to showNodeContextMenu(ImLong), showPinContextMenu(ImLong) and showLinkContextMenu(ImLong)
public static long getPinWithContextMenu()
public static long getLinkWithContextMenu()
public static boolean showBackgroundContextMenu()
public static void restoreNodeState(long node)
public static void suspend()
public static void resume()
public static boolean isSuspended()
public static boolean isActive()
public static void setNodePosition(long node, float x, float y)
public static void link(long id, long startPinId, long endPinId)
public static void link(long id, long startPinId, long endPinId, float r, float g, float b, float a, float thickness)
public static void flow(long linkId)
public static boolean beginCreate()
public static boolean beginCreate(float r, float g, float b, float a, float thickness)
public static boolean queryNewLink(ImLong startId, ImLong endId, float r, float g, float b, float a, float thickness)
public static boolean acceptNewItem()
public static boolean acceptNewItem(float r, float g, float b, float a, float thickness)
public static void rejectNewItem()
public static void rejectNewItem(float r, float g, float b, float a, float thickness)
public static void endCreate()
public static boolean beginDelete()
public static boolean queryDeletedLink(ImLong linkId, ImLong startId, ImLong endId)
public static boolean queryDeletedNode(ImLong nodeId)
public static boolean acceptDeletedItem()
public static void rejectDeletedItem()
public static void endDelete()
public static void navigateToContent(float duration)
public static void navigateToSelection(boolean zoomIn, float duration)
public static void getNodePosition(long node, ImVec2 dst)
public static float getNodePositionX(long node)
public static float getNodePositionY(long node)
public static float getNodeSizeX(long node)
public static float getNodeSizeY(long node)
public static void centerNodeOnScreen(long node)
public static boolean hasSelectionChanged()
public static int getSelectedObjectCount()
public static int getSelectedNodes(long[] nodes, int size)
public static int getSelectedLinks(long[] links, int size)
public static void clearSelection()
public static void selectNode(long id, boolean append)
public static void selectLink(long id, boolean append)
public static void deselectNode(long id)
public static void deselectLink(long id)
public static boolean deleteNode(long nodeId)
public static boolean deleteLink(long linkId)
public static void enableShortcuts(boolean enable)
public static boolean areShortcutsEnabled()
public static boolean beginShortcut()
public static boolean acceptCut()
public static boolean acceptCopy()
public static boolean acceptPaste()
public static boolean acceptDuplicate()
public static boolean acceptCreateNode()
public static int getActionContextSize()
public static int getActionContextNodes(long[] nodes, int size)
public static int getActionContextLinks(long[] links, int size)
public static void endShortcut()