Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.fudaa.fudaa.reflux
Class SymboleIcon  view SymboleIcon download SymboleIcon.java

java.lang.Object
  extended byorg.fudaa.fudaa.reflux.SymboleIcon
All Implemented Interfaces:
javax.swing.Icon

public final class SymboleIcon
extends java.lang.Object
implements javax.swing.Icon

Un symbole représentable sous forme d'icône au sens Swing du terme (Affichable dans un bouton, etc.), avec une couleur de tracé et une taille.

Version:
$Revision: 1.1 $ $Date: 2002/12/23 11:34:17 $ by $Author: marchand $

Field Summary
private  java.awt.Color fgc_
          La couleur de tracé.
private  Symbole s_
          Le symbole
private  int taille_
          Taille de l'icone en pixels.
 
Constructor Summary
SymboleIcon(Symbole _s)
          Constructeur par défaut.
SymboleIcon(Symbole _s, java.awt.Color _fgc)
          Constructeur avec couleur.
SymboleIcon(Symbole _s, java.awt.Color _fgc, int _taille)
          Constructeur avec couleur et taille.
SymboleIcon(Symbole _s, int _taille)
          Constructeur avec taille seulement.
 
Method Summary
 java.awt.Color getCouleur()
          Retourne la couleur de tracé.
 int getIconHeight()
          Returns the height of the icon.
 int getIconWidth()
          Returns the width of the icon.
 Symbole getSymbole()
          Retourne le symbole associé.
 int getTaille()
          Retourne la taille de l'icone.
 void paintIcon(java.awt.Component _c, java.awt.Graphics _g, int _x, int _y)
          Draws the icon at the location (x, y) on the specified graphics device.
 void setCouleur(java.awt.Color _fgc)
          Définition de la couleur de tracé.
 void setTaille(int _taille)
          Définition de la taille de l'icone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_

private Symbole s_
Le symbole


fgc_

private java.awt.Color fgc_
La couleur de tracé. null signifie sans tracé.


taille_

private int taille_
Taille de l'icone en pixels.

Constructor Detail

SymboleIcon

public SymboleIcon(Symbole _s)
Constructeur par défaut.


SymboleIcon

public SymboleIcon(Symbole _s,
                   java.awt.Color _fgc)
Constructeur avec couleur.


SymboleIcon

public SymboleIcon(Symbole _s,
                   int _taille)
Constructeur avec taille seulement.


SymboleIcon

public SymboleIcon(Symbole _s,
                   java.awt.Color _fgc,
                   int _taille)
Constructeur avec couleur et taille.

Method Detail

getSymbole

public Symbole getSymbole()
Retourne le symbole associé.


setCouleur

public void setCouleur(java.awt.Color _fgc)
Définition de la couleur de tracé.


getCouleur

public java.awt.Color getCouleur()
Retourne la couleur de tracé.


setTaille

public void setTaille(int _taille)
Définition de la taille de l'icone.


getTaille

public int getTaille()
Retourne la taille de l'icone.


getIconHeight

public int getIconHeight()
Description copied from interface: javax.swing.Icon
Returns the height of the icon.

Specified by:
getIconHeight in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Description copied from interface: javax.swing.Icon
Returns the width of the icon.

Specified by:
getIconWidth in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component _c,
                      java.awt.Graphics _g,
                      int _x,
                      int _y)
Description copied from interface: javax.swing.Icon
Draws the icon at the location (x, y) on the specified graphics device.

Specified by:
paintIcon in interface javax.swing.Icon