public class JIPipeAnnotationGraphNodeTool<T extends JIPipeAnnotationGraphNode> extends Object implements JIPipeToggleableGraphEditorTool, JIPipeWorkbenchAccess
Constructor and Description |
---|
JIPipeAnnotationGraphNodeTool(Class<T> nodeClass) |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
boolean |
allowsDragConnections() |
boolean |
allowsDragNodes() |
protected T |
createAndConfigureNode(Point firstPoint,
Point secondPoint) |
void |
deactivate() |
int |
getCategory() |
Cursor |
getCursor() |
JIPipeGraphEditorUI |
getGraphEditor() |
Icon |
getIcon() |
String |
getName() |
Class<T> |
getNodeClass() |
String |
getTooltip() |
JIPipeWorkbench |
getWorkbench() |
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
paintAfterNodesAndEdges(Graphics2D graphics2D) |
protected void |
paintDragOverlay(Graphics2D graphics2D,
int x0,
int y0,
int x1,
int y1) |
void |
setGraphEditor(JIPipeGraphEditorUI graphEditorUI) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRenderEdge, paintBelowNodesAfterEdges, paintBelowNodesAndEdges, paintMouse
getGraphCanvas, getKeyBinding, getPriority, supports
public String getName()
getName
in interface JIPipeGraphEditorTool
public String getTooltip()
getTooltip
in interface JIPipeGraphEditorTool
public Icon getIcon()
getIcon
in interface JIPipeGraphEditorTool
public JIPipeGraphEditorUI getGraphEditor()
getGraphEditor
in interface JIPipeGraphEditorTool
public void setGraphEditor(JIPipeGraphEditorUI graphEditorUI)
setGraphEditor
in interface JIPipeGraphEditorTool
public Cursor getCursor()
getCursor
in interface JIPipeGraphEditorTool
public void activate()
activate
in interface JIPipeGraphEditorTool
public int getCategory()
getCategory
in interface JIPipeGraphEditorTool
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void deactivate()
deactivate
in interface JIPipeToggleableGraphEditorTool
public boolean allowsDragNodes()
allowsDragNodes
in interface JIPipeToggleableGraphEditorTool
public boolean allowsDragConnections()
allowsDragConnections
in interface JIPipeToggleableGraphEditorTool
public void paintAfterNodesAndEdges(Graphics2D graphics2D)
paintAfterNodesAndEdges
in interface JIPipeToggleableGraphEditorTool
protected void paintDragOverlay(Graphics2D graphics2D, int x0, int y0, int x1, int y1)
public JIPipeWorkbench getWorkbench()
getWorkbench
in interface JIPipeWorkbenchAccess
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.