ikbs.graphics
Class AttributGraph

java.lang.Object
  extended by ikbs.tools.trees.Attribut
      extended by ikbs.graphics.AttributGraph
All Implemented Interfaces:
DescAttributeInterface, DescElementInterface, Selectable, java.lang.Cloneable, java.util.Observer
Direct Known Subclasses:
AttributDesc, AttributValeur

public abstract class AttributGraph
extends Attribut
implements java.lang.Cloneable, DescAttributeInterface

Noeud graphique qui fait la liaison entre les attributs et leur représentation graphique IKBS v2.6 Implémente la vue graphique des attributs descriptifs et des attributs valeur

Since:
15 Janvier 2000
Author:
David Grosser

Field Summary
protected static java.awt.Color NUMERIC
           
protected static java.awt.Color SYMBOLIC
           
protected static java.awt.Color TAXONOMIC
           
protected static java.awt.Color TEXT
           
protected  DescriptiveAttribute type
           
 
Fields inherited from class ikbs.tools.trees.Attribut
cible, clicked, label, num, pere, selected
 
Constructor Summary
AttributGraph(Noeud pere, DescriptiveAttribute attDesc)
          Constructeur Lorsque l'attribut existe déjà et qu'il faut construire la vue graphique
 
Method Summary
 DescriptiveAttribute getAttribute()
          Accès au type avec casting
 boolean getCible()
          Retourne true si this est la cible
 java.awt.Color getColorType()
           
 java.lang.String getCommentaire()
          Accès au commentaire
 boolean getDecision()
          Return true si l'attribut est discriminant
 java.lang.String getIdentificateur()
          Accès à l'identificateur
 java.lang.String getInfo()
          Information associée au type
 java.lang.String getLabel()
          Surcharge de l'accès au label, remplacé par le libelle
 java.lang.String getLibelle()
          Récupérer le libellé de l'élément descriptif
 float getPoids()
          Accès au poids de l'élément
 java.lang.String getQuestion()
          Accès à la question
 DescriptiveElement getType()
          Accès au type
 java.lang.String getUrl()
          Accès à l'URL
protected  void init()
           
 boolean isThereIllustration()
          s'il y a des illustrations associées
 int nbIllustration()
          Par défaut, cette méthode retourne 0.
 void setCible()
          Affectation de la cible
 void setCommentaire(java.lang.String c)
          Affectation du commentaire
 void setDecision(boolean b)
          Modification de la variable discriminant
 void setIdentificateur(java.lang.String s)
          Modification du type
 void setLibelle(java.lang.String libelle)
          Affecter le libellé de l'élément descriptif
 void setPoids(float f)
          Affectation du poids associé à l'élément
 void setQuestion(java.lang.String s)
          Affectation de la question
 void setType(DescriptiveElement de)
          Affectation du type, modification du modèle sous-jacent
 void setUrl(java.lang.String url)
          Affectation de l'URL
 java.lang.String toString()
           
 void update(java.util.Observable o, java.lang.Object args)
          Implémente Observer
 
Methods inherited from class ikbs.tools.trees.Attribut
clone, getClicked, getPere, getSelected, initNewPere, setCible, setClicked, setLabel, setPere, setSelected
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NUMERIC

protected static java.awt.Color NUMERIC

SYMBOLIC

protected static java.awt.Color SYMBOLIC

TEXT

protected static java.awt.Color TEXT

TAXONOMIC

protected static java.awt.Color TAXONOMIC

type

protected DescriptiveAttribute type
Constructor Detail

AttributGraph

public AttributGraph(Noeud pere,
                     DescriptiveAttribute attDesc)
Constructeur Lorsque l'attribut existe déjà et qu'il faut construire la vue graphique

Method Detail

init

protected void init()

getColorType

public java.awt.Color getColorType()
Overrides:
getColorType in class Attribut

isThereIllustration

public boolean isThereIllustration()
Description copied from class: Attribut
s'il y a des illustrations associées

Overrides:
isThereIllustration in class Attribut

nbIllustration

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

Overrides:
nbIllustration in class Attribut

update

public void update(java.util.Observable o,
                   java.lang.Object args)
Description copied from class: Attribut
Implémente Observer

Specified by:
update in interface java.util.Observer
Overrides:
update in class Attribut

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLibelle

public java.lang.String getLibelle()
Récupérer le libellé de l'élément descriptif

Specified by:
getLibelle in interface DescElementInterface

getLabel

public java.lang.String getLabel()
Surcharge de l'accès au label, remplacé par le libelle

Specified by:
getLabel in interface Selectable
Overrides:
getLabel in class Attribut

setLibelle

public void setLibelle(java.lang.String libelle)
Affecter le libellé de l'élément descriptif

Specified by:
setLibelle in interface DescElementInterface

getType

public DescriptiveElement getType()
Accès au type

Specified by:
getType in interface DescElementInterface

setType

public void setType(DescriptiveElement de)
Affectation du type, modification du modèle sous-jacent

Specified by:
setType in interface DescElementInterface

getIdentificateur

public java.lang.String getIdentificateur()
Accès à l'identificateur

Specified by:
getIdentificateur in interface DescElementInterface

setIdentificateur

public void setIdentificateur(java.lang.String s)
Modification du type

Specified by:
setIdentificateur in interface DescElementInterface

getCommentaire

public java.lang.String getCommentaire()
Accès au commentaire

Specified by:
getCommentaire in interface DescElementInterface

setCommentaire

public void setCommentaire(java.lang.String c)
Affectation du commentaire

Specified by:
setCommentaire in interface DescElementInterface

getUrl

public java.lang.String getUrl()
Accès à l'URL

Specified by:
getUrl in interface DescElementInterface

setUrl

public void setUrl(java.lang.String url)
Affectation de l'URL

Specified by:
setUrl in interface DescElementInterface

getQuestion

public java.lang.String getQuestion()
Accès à la question

Specified by:
getQuestion in interface DescElementInterface

setQuestion

public void setQuestion(java.lang.String s)
Affectation de la question

Specified by:
setQuestion in interface DescElementInterface

getDecision

public boolean getDecision()
Return true si l'attribut est discriminant

Specified by:
getDecision in interface DescElementInterface

setDecision

public void setDecision(boolean b)
Modification de la variable discriminant

Specified by:
setDecision in interface DescElementInterface

getPoids

public float getPoids()
Accès au poids de l'élément

Specified by:
getPoids in interface DescElementInterface

setPoids

public void setPoids(float f)
Affectation du poids associé à l'élément

Specified by:
setPoids in interface DescElementInterface

getInfo

public java.lang.String getInfo()
Information associée au type

Specified by:
getInfo in interface DescElementInterface
Overrides:
getInfo in class Attribut

getAttribute

public DescriptiveAttribute getAttribute()
Description copied from interface: DescAttributeInterface
Accès au type avec casting

Specified by:
getAttribute in interface DescAttributeInterface

getCible

public boolean getCible()
Retourne true si this est la cible

Specified by:
getCible in interface DescAttributeInterface
Overrides:
getCible in class Attribut

setCible

public void setCible()
Affectation de la cible

Specified by:
setCible in interface DescAttributeInterface