ikbs.tools.trees
Class Attribut

java.lang.Object
  extended by ikbs.tools.trees.Attribut
All Implemented Interfaces:
Selectable, java.lang.Cloneable, java.util.Observer
Direct Known Subclasses:
AttributDecision, AttributGraph

public class Attribut
extends java.lang.Object
implements java.util.Observer, java.lang.Cloneable, Selectable


Field Summary
protected  boolean cible
           
protected  boolean clicked
           
protected  java.lang.String label
           
protected static int num
           
protected  Noeud pere
           
protected  boolean selected
           
 
Constructor Summary
Attribut(Noeud unNoeud)
           
Attribut(Noeud unNoeud, java.lang.String libelle)
           
 
Method Summary
 java.lang.Object clone()
          Implémente Cloneable
 boolean getCible()
           
 boolean getClicked()
          L'objet est-il cliqué
 java.awt.Color getColorType()
           
 java.lang.String getInfo()
          Retourne l'info associée
 java.lang.String getLabel()
          Le label de l'objet sélectionné
 Noeud getPere()
           
 boolean getSelected()
          Interface Selectable *
 void initNewPere(Noeud pere)
           
 boolean isThereIllustration()
          s'il y a des illustrations associées
 int nbIllustration()
          Par défaut, cette méthode retourne 0.
 void setCible(boolean cible)
           
 void setClicked(boolean clicked)
          L'objet est cliqué
 void setLabel(java.lang.String libelle)
           
 void setPere(Noeud pere)
           
 void setSelected(boolean selected)
          L'objet est sélectionné
 void update(java.util.Observable o, java.lang.Object args)
          Implémente Observer
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

num

protected static int num

selected

protected boolean selected

clicked

protected boolean clicked

cible

protected boolean cible

label

protected java.lang.String label

pere

protected Noeud pere
Constructor Detail

Attribut

public Attribut(Noeud unNoeud)

Attribut

public Attribut(Noeud unNoeud,
                java.lang.String libelle)
Method Detail

getSelected

public boolean getSelected()
Interface Selectable *

Specified by:
getSelected in interface Selectable

setSelected

public void setSelected(boolean selected)
Description copied from interface: Selectable
L'objet est sélectionné

Specified by:
setSelected in interface Selectable

getClicked

public boolean getClicked()
Description copied from interface: Selectable
L'objet est-il cliqué

Specified by:
getClicked in interface Selectable

setClicked

public void setClicked(boolean clicked)
Description copied from interface: Selectable
L'objet est cliqué

Specified by:
setClicked in interface Selectable

getCible

public boolean getCible()

setCible

public void setCible(boolean cible)

getLabel

public java.lang.String getLabel()
Description copied from interface: Selectable
Le label de l'objet sélectionné

Specified by:
getLabel in interface Selectable

setLabel

public void setLabel(java.lang.String libelle)

setPere

public void setPere(Noeud pere)

getPere

public Noeud getPere()

getColorType

public java.awt.Color getColorType()

initNewPere

public void initNewPere(Noeud pere)

isThereIllustration

public boolean isThereIllustration()
s'il y a des illustrations associées


nbIllustration

public int nbIllustration()
Par défaut, cette méthode retourne 0. Elle doit être surchargée pour retourner autre chose que 0


update

public void update(java.util.Observable o,
                   java.lang.Object args)
Implémente Observer

Specified by:
update in interface java.util.Observer

clone

public java.lang.Object clone()
Implémente Cloneable

Overrides:
clone in class java.lang.Object

getInfo

public java.lang.String getInfo()
Retourne l'info associée