|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunbbayes.prs.Edge
public class Edge
This class represents an edge between two nodes.
Constructor Summary | |
---|---|
Edge(Node no1,
Node no2)
Creates an edge from node1 to node2. |
Method Summary | |
---|---|
void |
changeDirection()
Muda a direÔøΩÔøΩo do arco. |
boolean |
equals(Object obj)
|
static Color |
getColor()
Get the edge's color. |
Node |
getDestinationNode()
Retorna o segundo nÔøΩ associado ao arco. |
Point2D.Double |
getDestinationPosition()
|
Node |
getOriginNode()
Retorna o primeiro nÔøΩ associado ao arco. |
Point2D.Double |
getOriginPosition()
|
boolean |
hasDirection()
Retorna o status de direÔøΩÔøΩo do arco. |
boolean |
isPointInDrawableArea(int x,
int y)
|
boolean |
isSelected()
|
static void |
setColor(int rgb)
Set the edge's color. |
void |
setDestinationPosition(double x,
double y)
|
void |
setDirection(boolean direction)
Modifica o status de direÔøΩÔøΩo do arco. |
void |
setOriginPosition(double x,
double y)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Edge(Node no1, Node no2)
node1
- starting nodenode2
- destination nodeMethod Detail |
---|
public void setDirection(boolean direction)
direction
- status de existÔøΩncia de direÔøΩÔøΩo.public Node getOriginNode()
public Node getDestinationNode()
public boolean hasDirection()
public void changeDirection()
public String toString()
toString
in class Object
Object.toString()
public static Color getColor()
public static void setColor(int rgb)
rgb
- The edge's RGB color.public boolean isPointInDrawableArea(int x, int y)
public boolean isSelected()
public Point2D.Double getOriginPosition()
public void setOriginPosition(double x, double y)
public Point2D.Double getDestinationPosition()
public void setDestinationPosition(double x, double y)
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |