|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
ikbs.tools.trees.Composant
ikbs.tools.trees.Node
public class Node
| Field Summary | |
|---|---|
boolean |
activeNode
|
protected boolean |
affAttributs
|
protected boolean |
affMenu
|
static double |
angleArrow
|
protected AttributsList |
attributs
|
protected boolean |
bordered
|
protected boolean |
clicked
|
static java.awt.Color |
defaultColor
|
protected boolean |
marque
|
protected boolean |
marque2
|
protected static int |
num
|
protected boolean |
racine
|
static java.awt.Color |
racineColor
|
protected java.awt.Rectangle |
rect3
|
protected java.util.Vector |
relationArrive
|
protected java.util.Vector |
relationDepart
|
protected boolean |
selected
|
protected boolean |
visible
|
int |
widthArrow
|
| Fields inherited from class ikbs.tools.trees.Composant |
|---|
bgColor, cible_color, dimension, heightLabel, label, labelColor, shadow_color, shadowSize, show, widthLabel, x, y |
| Constructor Summary | |
|---|---|
Node()
Constructeur de la classe noeud. |
|
Node(java.awt.Point position)
|
|
Node(java.lang.String nom)
|
|
Node(java.lang.String nom,
java.awt.Point position)
|
|
| Method Summary | |
|---|---|
void |
addAttribut(Attribut unAttribut)
* Les méthodes pour gerer les attributs ** |
void |
addObserver(java.util.Observer o)
|
void |
addRelationArrive(Relation uneRelation)
|
void |
addRelationDepart(Relation uneRelation)
|
boolean |
affAttributs()
|
boolean |
affMenu()
|
Attribut |
attribut(int i)
|
Attribut |
attribut(java.lang.String nomAtt)
|
AttributsList |
attributs()
|
void |
bouge(int dx,
int dy)
|
void |
calculDimension(java.awt.FontMetrics fmObj,
java.awt.FontMetrics fmAtt,
java.awt.FontMetrics fmRel)
Pour calculer la dimension de this, de ses attributs et de ses relations |
void |
calculDimensionAtt(java.awt.FontMetrics fm)
Pour calculer la dimension des attributs |
void |
calculDimensionMButton(java.awt.FontMetrics fm)
Calcul de la dimension des MButton |
void |
calculDimensionObj(java.awt.FontMetrics fm)
Pour calculer la dimension des objets de l'arbre |
void |
calculDimensionRel(java.awt.FontMetrics fm)
Pour calculer la dimension des relations |
void |
changeFormeRelation(int forme)
* Les méthodes pour s'afficher ** |
java.lang.Object |
clone()
Retourne une copie profonde de this (sans les relations) |
Attribut |
createAttribute()
|
Attribut |
dansAttributs(int x,
int y)
|
java.util.Vector |
fils()
|
Noeud |
fils(int i)
|
int |
find(Attribut att)
Retourne l'index de l'attribut de label label |
boolean |
getActiveNode()
Accès à la variable qui détermine si le noeud affiche ouu pas une flêche pouur le masquage des fils |
boolean |
getClicked()
L'objet est-il cliqué |
boolean |
getMarque()
|
boolean |
getMarque2()
|
boolean |
getRacine()
|
boolean |
getSelected()
retourne true si l'objet est sélectionné |
java.awt.Point |
infDroit()
|
int |
infDroitX()
|
int |
infDroitY()
|
protected void |
init()
|
void |
initColor()
|
boolean |
isFilsVisible()
|
int |
largeur(Noeud n)
|
int |
maxHauteur()
|
int |
maxLargeur()
|
int |
nbAtt()
|
int |
nbFils()
|
int |
nbRelationArrive()
|
int |
nbRelationDepart()
|
void |
paint(java.awt.Graphics g,
int xRel,
int yRel)
On dessine le noeud |
void |
paintActive(java.awt.Graphics g,
int xRel,
int yRel)
Dessin de la flêche pour développer/masquer les noeuds |
void |
paintArrow(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Pour dessiner la flêche (x1, y1) : coordonnées du point d'origine (x2, y2) : coordonnées du point destination |
void |
paintAtt(java.awt.Graphics g,
int xRel,
int yRel)
|
void |
paintAttShadow(java.awt.Graphics g,
int xRel,
int yRel)
|
protected void |
paintLabel(java.awt.Graphics g,
java.awt.FontMetrics fm,
int xRel,
int yRel)
|
void |
paintRelations(java.awt.Graphics g,
int xRel,
int yRel)
Dessin des relations |
void |
paintShadow(java.awt.Graphics g,
int xRel,
int yRel)
|
boolean |
racine()
|
Attribut |
rechAttPrecedent(java.lang.String label)
|
Attribut |
rechAttribut(java.lang.String label)
|
Attribut |
rechAttSuivant(java.lang.String label)
|
int |
rechIndiceRelArrive(Noeud n)
|
int |
rechIndiceRelDepart(Noeud n)
|
Relation |
rechRelationArrive(Noeud n)
|
Relation |
rechRelationDepart(Noeud n)
|
Relation |
rechRelationDepart(java.lang.String s)
|
java.awt.Rectangle |
rect()
|
java.awt.Rectangle |
rect2()
|
java.awt.Rectangle |
rect3()
|
java.awt.Rectangle |
rectRels()
|
java.util.Vector |
relationArrive()
|
Relation |
relationArrive(int i)
|
java.util.Vector |
relationDepart()
|
Relation |
relationDepart(int i)
|
java.util.Vector |
relations()
|
void |
removeAttribut(java.lang.String s)
|
void |
removeRelation(Relation uneRelation)
|
void |
removeRelationArrive(Noeud unNoeud)
|
void |
removeRelationArrive(Relation uneRelation)
|
void |
removeRelationDepart(Noeud unNoeud)
|
void |
removeRelationDepart(Relation uneRelation)
|
void |
removeRelations()
On efface toutes les relations du noeud |
Attribut |
selectAttributs(int x,
int y)
|
void |
setActiveNode(boolean b)
Le noeud est actif pour le masquage/démasquage de ses fils |
void |
setAffAttributs(boolean b)
|
void |
setAffMenu(boolean b)
|
void |
setAttributs(AttributsList attributs)
|
void |
setBgColor(java.awt.Color c)
|
void |
setBgColorAtt(java.awt.Color c)
|
void |
setBordered(boolean b)
|
void |
setClicked(boolean b)
L'objet est cliqué |
static void |
setDefaultColor(java.awt.Color c)
Affectation de la couleur du noeud |
void |
setLabelColorAtt(java.awt.Color c)
|
void |
setMarque(boolean b)
|
void |
setMarque2(boolean b)
|
void |
setPosLien(int pos)
|
void |
setPosSup(java.awt.Point p)
|
void |
setRacine(boolean b)
|
static void |
setRacineColor(java.awt.Color c)
Affectation de la couleur de la racine |
void |
setRelationArrive(int i,
Relation rel)
|
void |
setRelationDepart(int i,
Relation rel)
|
void |
setSelected(boolean b)
Interface selectable * |
void |
setShowArrow(boolean b)
|
void |
setVisible(boolean v)
|
void |
showLabelRelations(boolean b)
|
java.awt.Point |
supGauche()
|
int |
supGaucheX()
|
int |
supGaucheY()
|
void |
update(java.util.Observable o,
java.lang.Object args)
Implémente Observer Retransmet directement aux observateurs (l'environnement graphique) les paramètres de update |
void |
updateAttribut(int index,
Attribut newAttribut)
|
boolean |
visible()
|
| Methods inherited from class ikbs.tools.trees.Composant |
|---|
bgColor, dansRect, dimension, getInfo, getLabel, height, heightLabel, hideLabel, labelColor, pos, setDimension, setHeight, setHeightLabel, setLabel, setLabelColor, setPos, setPos, setPos, setWidth, setWidthLabel, setX, setY, showed, showLabel, sourisDans, toString, width, widthLabel, x, xd, y |
| Methods inherited from class java.util.Observable |
|---|
clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ikbs.tools.trees.Noeud |
|---|
dansRect, getInfo, getLabel, height, setLabel, setLabelColor, setPos, sourisDans, width, x, y |
| Methods inherited from interface ikbs.tools.trees.Selectable |
|---|
getLabel |
| Field Detail |
|---|
public static java.awt.Color defaultColor
public static java.awt.Color racineColor
public static double angleArrow
public boolean activeNode
protected static int num
protected boolean selected
protected boolean clicked
protected boolean racine
protected boolean marque
protected boolean marque2
protected java.util.Vector relationDepart
protected java.util.Vector relationArrive
protected AttributsList attributs
protected boolean affAttributs
protected boolean visible
protected boolean affMenu
protected boolean bordered
protected java.awt.Rectangle rect3
public int widthArrow
| Constructor Detail |
|---|
public Node()
ikbs.graphics.Composantpublic Node(java.lang.String nom)
public Node(java.lang.String nom,
java.awt.Point position)
public Node(java.awt.Point position)
| Method Detail |
|---|
public boolean getActiveNode()
public void setActiveNode(boolean b)
setActiveNode in interface Noeudpublic static void setDefaultColor(java.awt.Color c)
public void setAttributs(AttributsList attributs)
public static void setRacineColor(java.awt.Color c)
protected void init()
public void initColor()
initColor in interface Noeudpublic void addObserver(java.util.Observer o)
addObserver in interface NoeudaddObserver in class java.util.Observablepublic void setRacine(boolean b)
setRacine in interface Noeudpublic boolean getRacine()
public boolean affMenu()
public void setAffMenu(boolean b)
public void setBordered(boolean b)
public void update(java.util.Observable o,
java.lang.Object args)
update in interface java.util.Observer
public void bouge(int dx,
int dy)
bouge in interface Noeudpublic void setPosSup(java.awt.Point p)
setPosSup in interface Noeudpublic java.util.Vector relations()
public java.util.Vector relationDepart()
relationDepart in interface Noeudpublic java.util.Vector relationArrive()
relationArrive in interface Noeudpublic int maxLargeur()
maxLargeur in interface Noeudpublic int largeur(Noeud n)
largeur in interface Noeudpublic int maxHauteur()
maxHauteur in interface Noeudpublic Relation relationDepart(int i)
relationDepart in interface Noeudpublic Relation relationArrive(int i)
relationArrive in interface Noeud
public void setRelationDepart(int i,
Relation rel)
public void setRelationArrive(int i,
Relation rel)
public void addRelationDepart(Relation uneRelation)
addRelationDepart in interface Noeudpublic void addRelationArrive(Relation uneRelation)
addRelationArrive in interface Noeudpublic int nbRelationDepart()
public int nbRelationArrive()
nbRelationArrive in interface Noeudpublic int rechIndiceRelDepart(Noeud n)
public Relation rechRelationDepart(Noeud n)
public Relation rechRelationDepart(java.lang.String s)
public int rechIndiceRelArrive(Noeud n)
public Relation rechRelationArrive(Noeud n)
rechRelationArrive in interface Noeudpublic void removeRelation(Relation uneRelation)
public void removeAttribut(java.lang.String s)
removeAttribut in interface Noeudpublic void removeRelations()
removeRelations in interface Noeudpublic void removeRelationDepart(Relation uneRelation)
removeRelationDepart in interface Noeudpublic void removeRelationDepart(Noeud unNoeud)
public void removeRelationArrive(Relation uneRelation)
removeRelationArrive in interface Noeudpublic void removeRelationArrive(Noeud unNoeud)
public java.util.Vector fils()
fils in interface Noeudpublic Noeud fils(int i)
fils in interface Noeudpublic int nbFils()
nbFils in interface Noeudpublic boolean isFilsVisible()
isFilsVisible in interface Noeudpublic boolean racine()
public void setMarque(boolean b)
setMarque in interface Noeudpublic boolean getMarque()
getMarque in interface Noeudpublic void setMarque2(boolean b)
setMarque2 in interface Noeudpublic boolean getMarque2()
getMarque2 in interface Noeudpublic boolean affAttributs()
affAttributs in interface Noeudpublic boolean visible()
visible in interface Noeudpublic void setVisible(boolean v)
setVisible in interface Noeudpublic void setAffAttributs(boolean b)
setAffAttributs in interface Noeudpublic AttributsList attributs()
attributs in interface Noeudpublic Attribut attribut(java.lang.String nomAtt)
public Attribut attribut(int i)
public Attribut rechAttribut(java.lang.String label)
rechAttribut in interface Noeudpublic Attribut rechAttSuivant(java.lang.String label)
rechAttSuivant in interface Noeudpublic Attribut rechAttPrecedent(java.lang.String label)
rechAttPrecedent in interface Noeudpublic void calculDimensionObj(java.awt.FontMetrics fm)
calculDimensionObj in interface Noeudpublic void calculDimensionMButton(java.awt.FontMetrics fm)
public void calculDimension(java.awt.FontMetrics fmObj,
java.awt.FontMetrics fmAtt,
java.awt.FontMetrics fmRel)
calculDimension in interface Noeudpublic void calculDimensionAtt(java.awt.FontMetrics fm)
calculDimensionAtt in interface Noeudpublic void calculDimensionRel(java.awt.FontMetrics fm)
calculDimensionRel in interface Noeudpublic java.awt.Rectangle rect()
rect in interface Noeudrect in class Composantpublic java.awt.Rectangle rect2()
rect2 in interface Noeudpublic java.awt.Rectangle rect3()
rect3 in interface Noeudpublic java.awt.Rectangle rectRels()
rectRels in interface Noeudpublic void setSelected(boolean b)
setSelected in interface NoeudsetSelected in interface Selectablepublic boolean getSelected()
Selectable
getSelected in interface Selectablepublic void setClicked(boolean b)
Selectable
setClicked in interface Selectablepublic boolean getClicked()
Selectable
getClicked in interface Selectablepublic int supGaucheX()
supGaucheX in interface Noeudpublic int supGaucheY()
supGaucheY in interface Noeudpublic java.awt.Point supGauche()
public int infDroitX()
infDroitX in interface Noeudpublic int infDroitY()
infDroitY in interface Noeudpublic java.awt.Point infDroit()
public void addAttribut(Attribut unAttribut)
addAttribut in interface Noeudpublic Attribut createAttribute()
createAttribute in interface Noeud
public void updateAttribut(int index,
Attribut newAttribut)
public int find(Attribut att)
find in interface Noeudpublic int nbAtt()
public void setBgColor(java.awt.Color c)
setBgColor in interface NoeudsetBgColor in class Composantpublic void setBgColorAtt(java.awt.Color c)
setBgColorAtt in interface Noeudpublic void setLabelColorAtt(java.awt.Color c)
setLabelColorAtt in interface Noeud
public Attribut dansAttributs(int x,
int y)
dansAttributs in interface Noeud
public Attribut selectAttributs(int x,
int y)
public void changeFormeRelation(int forme)
changeFormeRelation in interface Noeudpublic void showLabelRelations(boolean b)
showLabelRelations in interface Noeudpublic void setPosLien(int pos)
setPosLien in interface Noeudpublic void setShowArrow(boolean b)
setShowArrow in interface Noeud
public void paintShadow(java.awt.Graphics g,
int xRel,
int yRel)
paintShadow in interface NoeudpaintShadow in class Composant
public void paint(java.awt.Graphics g,
int xRel,
int yRel)
paint in interface Noeud
public void paintAttShadow(java.awt.Graphics g,
int xRel,
int yRel)
paintAttShadow in interface Noeud
public void paintAtt(java.awt.Graphics g,
int xRel,
int yRel)
paintAtt in interface Noeud
protected void paintLabel(java.awt.Graphics g,
java.awt.FontMetrics fm,
int xRel,
int yRel)
public void paintRelations(java.awt.Graphics g,
int xRel,
int yRel)
paintRelations in interface Noeud
public void paintActive(java.awt.Graphics g,
int xRel,
int yRel)
public void paintArrow(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
public java.lang.Object clone()
clone in interface Noeudclone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||