public class GraphNode extends Object
Constructor and Description |
---|
GraphNode(ShuffleInfo shuffle,
ShuffleGraph graph) |
GraphNode(ShuffleInfo shuffle,
ShuffleGraph graph,
int x,
int y) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
void |
drag(Point rel) |
void |
draw(Graphics2D g) |
boolean |
equals(Object o) |
ShuffleGraph |
getGraph() |
Point |
getPos() |
GraphConnection |
getPostConnection() |
GraphConnection |
getPreConnection() |
protected String |
getShuffleName() |
ShuffleInfo |
getValue() |
int |
getX() |
int |
getY() |
boolean |
inArea(Point pos) |
boolean |
inStartDrag(Point pos) |
void |
setGraph(ShuffleGraph graph) |
void |
setPostConnection(GraphConnection connection) |
void |
setPreConnection(GraphConnection connection) |
void |
setX(int x) |
void |
setY(int y) |
public static final int WIDTH
public static final int HEIGHT
public GraphNode(ShuffleInfo shuffle, ShuffleGraph graph, int x, int y)
public GraphNode(ShuffleInfo shuffle, ShuffleGraph graph)
protected String getShuffleName()
public void draw(Graphics2D g)
public void drag(Point rel)
public boolean inArea(Point pos)
public boolean inStartDrag(Point pos)
public void delete()
public Point getPos()
public ShuffleInfo getValue()
public int getX()
public int getY()
public ShuffleGraph getGraph()
public GraphConnection getPreConnection()
public GraphConnection getPostConnection()
public void setX(int x)
public void setY(int y)
public void setGraph(ShuffleGraph graph)
public void setPreConnection(GraphConnection connection)
public void setPostConnection(GraphConnection connection)
Copyright © 2024. All rights reserved.