|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Theme
Theme est une classe conteneur pour un thème utilisée pour le coloriage de textes.
ThemeEditor 1.0 est un éditeur de thèmes au format XML.
Copyright © 2000 David MASCLE et Damien BOUCHARD.
Constructor Summary | |
Theme(java.lang.String definition)
Défini un nouveau thème. |
Method Summary | |
void |
addWord(java.lang.String word)
Méthode servant à ajouter un mot au thème. |
int |
compareTo(java.lang.Object o)
Redéfinition de la mèthode de comparaison pour la classe Thème. |
boolean |
containsWord(java.lang.String word)
Méthode retournant true si le mot passé en paramètre appartient au thème et false dans le cas contraire. |
java.lang.String |
getColor()
Méthode retournant la couleur associée au thème. |
java.lang.String |
getDefinition()
Méthode retournant la définition associée au thème. |
int |
getNumberOfWordsColored()
Méthode retournant le nombre de mots coloriés avec ce thème. |
int |
getNumberOfWordsInTheTheme()
Méthode retournant le nombre de mots appartenant au thème. |
int |
getNumberOfWordsUsedToColor()
Méthode retournant le nombre de mots différents du thème utilisés pour colorier. |
void |
incrementNumberOfWordsColored()
Méthode incrémentant le nombre de mots coloriés avec le thème. |
void |
incrementNumberOfWordsColoredWith(java.lang.String word)
Méthode servant à incrémenter le nombre d'utilisations du mot passé en paramètre lors du coloriage. |
void |
setDefinition(java.lang.String definition)
Méthode servant à redéfinir la définitiondu thème. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Theme(java.lang.String definition)
definition
- la définition du thème.Method Detail |
public int compareTo(java.lang.Object o)
o
- un object qui doit etre de type Theme.public void addWord(java.lang.String word)
word
- le mot à ajouter.public void setDefinition(java.lang.String definition)
definition
- la nouvelle définition pour le thème.public java.lang.String getDefinition()
public java.lang.String getColor()
public int getNumberOfWordsInTheTheme()
public int getNumberOfWordsColored()
public int getNumberOfWordsUsedToColor()
public void incrementNumberOfWordsColored()
public void incrementNumberOfWordsColoredWith(java.lang.String word)
word
- le mot.public boolean containsWord(java.lang.String word)
word
- le mot dont nous voulons vérifier l'appartenance au thème.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |