|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--graphelastic.Node
Représentation graphique d'un sommet.
Sommet
Field Summary | |
private static java.lang.String[] |
couleurs
Tableau des codes hexadécimaux des couleurs à utiliser. |
(package private) double |
dx
|
(package private) double |
dy
|
(package private) boolean |
fixed
Indique si ce sommet peut bouger pour respecter les contraintes des arcs, ou pas. |
private static int |
marge
|
(package private) SommetInterface |
sommet
Sommet réel. |
(package private) double |
x
Abscisse du sommet. |
(package private) double |
y
Ordonnée du point. |
Constructor Summary | |
(package private) |
Node()
|
Method Summary | |
java.awt.Color |
getBorderCouleur()
Accés à la couleur du bord du sommet (rouge si élu, noir sinon). |
java.awt.Color |
getCouleur()
Accés à la couleur de ce sommet. |
void |
paint(java.awt.Graphics g,
java.awt.FontMetrics fm)
|
void |
positionne(java.awt.Dimension d)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.lang.String[] couleurs
private static final int marge
double x
double y
double dx
double dy
boolean fixed
SommetInterface sommet
Constructor Detail |
Node()
Method Detail |
public final java.awt.Color getCouleur()
public final java.awt.Color getBorderCouleur()
public void positionne(java.awt.Dimension d)
public void paint(java.awt.Graphics g, java.awt.FontMetrics fm)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |