public class GraphConnection extends Object
Constructor and Description |
---|
GraphConnection(GraphNode from,
GraphNode to) |
GraphConnection(GraphNode from,
Point to) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g) |
void |
finishDragging(GraphNode other) |
Point |
getCurrentDragPos() |
GraphNode |
getFrom() |
GraphNode |
getTo() |
void |
remove() |
void |
setCurrentDragPos(Point pos) |
void |
setFrom(GraphNode node) |
void |
setTo(GraphNode node) |
public void draw(Graphics2D g)
public void remove()
public void finishDragging(GraphNode other)
public GraphNode getFrom()
public void setFrom(GraphNode node)
public GraphNode getTo()
public void setTo(GraphNode node)
public Point getCurrentDragPos()
public void setCurrentDragPos(Point pos)
Copyright © 2024. All rights reserved.