ikbs.graphics.model
Class NoeudDescriptif

java.lang.Object
  extended by java.util.Observable
      extended by ikbs.tools.trees.Composant
          extended by ikbs.tools.trees.Node
              extended by ikbs.graphics.NoeudRef
                  extended by ikbs.graphics.model.NoeudDescriptif
All Implemented Interfaces:
DescComponentInterface, DescElementInterface, Noeud, Selectable, java.util.Observer

public final class NoeudDescriptif
extends NoeudRef
implements DescComponentInterface

IKBS - Editeur de modèle Définition de la classe NoeudDescriptif extends Noeud David Grosser - Aout 1997 - IREMIA, Université de la Réunion Version 1.0 Revu le 16/04/97


Field Summary
 
Fields inherited from class ikbs.graphics.NoeudRef
component
 
Fields inherited from class ikbs.tools.trees.Node
activeNode, affAttributs, affMenu, angleArrow, attributs, bordered, clicked, defaultColor, marque, marque2, num, racine, racineColor, rect3, relationArrive, relationDepart, selected, visible, widthArrow
 
Fields inherited from class ikbs.tools.trees.Composant
bgColor, cible_color, dimension, heightLabel, label, labelColor, shadow_color, shadowSize, show, widthLabel, x, y
 
Method Summary
 void addAttribut(DescriptiveElement de)
          Pour ajouter un attribut descriptif L'attribut est créé et rajouté au noeud
 void addRelationArrive(Relation uneRelation)
          Pour ajouter une relation qui arrive sur this
 void addRelationDepart(Relation uneRelation)
          Pour ajouter une nouvelle relation qui part sur this
 java.lang.Object clone()
          Retourne une copie profonde de this (sans les relations)
 boolean controlRelation(Relation uneRelation, Relation r)
          Control si une relation est déjà présente afin d'éviter les multiples relations et n'est pas un auto-lien (un lien d'un objet sur lui meme)
 void copyProperties(NoeudDescriptif origine)
           
 Attribut createAttribute()
          Permet de créer un nouvel attribut (symbolic, choix par défaut)
 Attribut createAttribute(DescriptiveAttribute att)
          Permet de créer un nouvel attribut à partir d'un DescriptiveAttribute
 void effacerRelation()
          Lorsque l'on efface une relation
protected  void init()
           
 void paint(java.awt.Graphics g, int xRel, int yRel)
          Dessin du noeud à des coordonnées relatives
 java.awt.Rectangle rect()
          * Les méthodes pour s'afficher **
 void removeAttribut(java.lang.String s)
          Pour effacer un attribut.
 void removeRelationDepart(Relation uneRelation)
           
 void setRacine(boolean b)
           
 
Methods inherited from class ikbs.graphics.NoeudRef
description, dispose, find, getAbsencePossible, getCommentaire, getComponent, getDecision, getFictif, getIdentificateur, getIllustration, getInfo, getLabel, getLibelle, getMultiple, getPoids, getQuestion, getType, getUrl, nbIllustration, removeElement, replaceElement, setAbsencePossible, setCommentaire, setDecision, setFictif, setIdentificateur, setLibelle, setMultiple, setPoids, setQuestion, setType, setUrl, update
 
Methods inherited from class ikbs.tools.trees.Node
addAttribut, addObserver, affAttributs, affMenu, attribut, attribut, attributs, bouge, calculDimension, calculDimensionAtt, calculDimensionMButton, calculDimensionObj, calculDimensionRel, changeFormeRelation, dansAttributs, fils, fils, find, getActiveNode, getClicked, getMarque, getMarque2, getRacine, getSelected, infDroit, infDroitX, infDroitY, initColor, isFilsVisible, largeur, maxHauteur, maxLargeur, nbAtt, nbFils, nbRelationArrive, nbRelationDepart, paintActive, paintArrow, paintAtt, paintAttShadow, paintLabel, paintRelations, paintShadow, racine, rechAttPrecedent, rechAttribut, rechAttSuivant, rechIndiceRelArrive, rechIndiceRelDepart, rechRelationArrive, rechRelationDepart, rechRelationDepart, rect2, rect3, rectRels, relationArrive, relationArrive, relationDepart, relationDepart, relations, removeRelation, removeRelationArrive, removeRelationArrive, removeRelationDepart, removeRelations, selectAttributs, setActiveNode, setAffAttributs, setAffMenu, setAttributs, setBgColor, setBgColorAtt, setBordered, setClicked, setDefaultColor, setLabelColorAtt, setMarque, setMarque2, setPosLien, setPosSup, setRacineColor, setRelationArrive, setRelationDepart, setSelected, setShowArrow, setVisible, showLabelRelations, supGauche, supGaucheX, supGaucheY, updateAttribut, visible
 
Methods inherited from class ikbs.tools.trees.Composant
bgColor, dansRect, dimension, 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.rco.element.DescComponentInterface
getAbsencePossible, getComponent, getFictif, getMultiple, setAbsencePossible, setFictif, setMultiple
 
Methods inherited from interface ikbs.rco.element.DescElementInterface
getCommentaire, getDecision, getIdentificateur, getInfo, getLibelle, getPoids, getQuestion, getType, getUrl, setCommentaire, setDecision, setIdentificateur, setLibelle, setPoids, setQuestion, setType, setUrl
 
Methods inherited from interface ikbs.tools.trees.Noeud
dansRect, height, setLabel, setLabelColor, setPos, sourisDans, width, x, y
 

Method Detail

init

protected void init()
Overrides:
init in class Node

createAttribute

public final Attribut createAttribute()
Permet de créer un nouvel attribut (symbolic, choix par défaut)

Specified by:
createAttribute in interface Noeud
Overrides:
createAttribute in class Node

createAttribute

public final Attribut createAttribute(DescriptiveAttribute att)
Permet de créer un nouvel attribut à partir d'un DescriptiveAttribute

Specified by:
createAttribute in class NoeudRef

addAttribut

public void addAttribut(DescriptiveElement de)
Pour ajouter un attribut descriptif L'attribut est créé et rajouté au noeud

Specified by:
addAttribut in class NoeudRef

removeAttribut

public final void removeAttribut(java.lang.String s)
Pour effacer un attribut. Le composant est informé du retrait

Specified by:
removeAttribut in interface Noeud
Overrides:
removeAttribut in class Node

effacerRelation

public final void effacerRelation()
Lorsque l'on efface une relation


removeRelationDepart

public final void removeRelationDepart(Relation uneRelation)
Specified by:
removeRelationDepart in interface Noeud
Overrides:
removeRelationDepart in class Node

controlRelation

public boolean controlRelation(Relation uneRelation,
                               Relation r)
Control si une relation est déjà présente afin d'éviter les multiples relations et n'est pas un auto-lien (un lien d'un objet sur lui meme)


addRelationDepart

public final void addRelationDepart(Relation uneRelation)
Pour ajouter une nouvelle relation qui part sur this

Specified by:
addRelationDepart in interface Noeud
Overrides:
addRelationDepart in class NoeudRef

addRelationArrive

public final void addRelationArrive(Relation uneRelation)
Pour ajouter une relation qui arrive sur this

Specified by:
addRelationArrive in interface Noeud
Overrides:
addRelationArrive in class Node

setRacine

public final void setRacine(boolean b)
Specified by:
setRacine in interface Noeud
Overrides:
setRacine in class Node

clone

public java.lang.Object clone()
Retourne une copie profonde de this (sans les relations)

Specified by:
clone in interface Noeud
Overrides:
clone in class Node

copyProperties

public void copyProperties(NoeudDescriptif origine)

rect

public final java.awt.Rectangle rect()
* Les méthodes pour s'afficher **

Specified by:
rect in interface Noeud
Overrides:
rect in class Node

paint

public final void paint(java.awt.Graphics g,
                        int xRel,
                        int yRel)
Dessin du noeud à des coordonnées relatives

Specified by:
paint in interface Noeud
Overrides:
paint in class Node