Interfaces graphiques en Master d'informatique 2004/2005
- Présentation du cours
- Cours n° 1 : introduction au système X-window
- Cours n° 2 : configuration
- Cours n° 3 : fonctionnement (plus intime)
- Sécurité
- Autorisation par machines et client xhost
- Autorisation par utilisateur et client xauth
- Couleurs
- Notion de profondeur, colormap et
de visual
- Fontes
- Nomenclature
- Serveurs de fontes
- Un aperçu de la Programmation X
- Cours n° 4 : introduction à
AWT/Swing : survol des possibilités
- Avantages et difficultés des API AWT/Swing
- Liens entre AWT et SWING
- Hiérarchie des objets : classes abstraites Component et
JComponent
- Conteneurs et composants
- Gestionnaires de disposition
- Événements
- Notion d'action
- Applettes
- Images
- Possibilités graphiques
- Contexte graphique
- Look and Feel
- Cours n° 5 : Événements et l'architecture Modèle/Vue/Contrôleur
- Cours n° 6 : gestionnaires de
disposition
- Revue des principaux gestionnaires disposition disponibles en SWING
- FlowLayout
- BorderLayout
- GridLayout
- BoxLayout (glue et strut)
- GridBagLayout
- Combinaisons des gestionnaires de disposition
- Centrage d'un objet
- Alignement d'étiquettes et de champs
- Utilisation d'une ComboBox
- Cours n° 7 : actions
- JavaBeans
- Actions
- Interface Action et classe abstraite
AbstractAction
- Utilisation dans les menus et boutons
- Application à un programme de
Labyrinthe
- Utilisation d'un popup menu
- Utilisation d'un MouseAdapter pour implémenter un
MouseListener
- Cours n° 8 : conteneurs
- JPanel
- JRootPane
- JLayeredPane
- JTabbedPane
- JSplitPane
- JScrollPane
- JDesktopPane
- Cours n° 9 : undo/redo
- Interface UndoableEdit et classe
AbtsractUndoableEdit pour implémenter les
modifications (ou opérations) qui peuvent être annulées et
refaites. Les méthodes sont les suivantes.
- boolean canUndo() indique que la modification peut être
annulée
- boolean canRedo() indique que la modification peut être
refaite
- void die() la modification devient inactive. Elle ne peut
plus être ni annulée ni refaite
- void undo() annule la modification
- void redo() refait la modification
- Classes CompoundEdit et UndoManager pour gérer
les séquences de modifications. Cette dernière classe facilite
grandement l'implémentation d'un undo/redo multiple.
- La classe UndoableEditSupport facilite l'implémentation
d'une classe qui génère des événements UndoableEditEvent.
Elle gère l'enregistrement des écouteurs UndoableEditListener
et l'envoi des événements. Elle possède les méthodes.
- void addUndoableEditListener(UndoableEditListener listener)
pour enregistrer un écouteur d'événements
- void removeUndoableEditListener(UndoableEditListener
listener) pour désenregistrer un écouteur d'événements
- postEdit(UndoableEditEvent e) pour envoyer un
événement
- Cours n° 10 : listes, tables et arbres
- Listes
- Classe JList pour les listes et interface
ListModel pour le modèle de données des listes.
- Classes AbstractListModel et DefaultListModel
pour implémenter les modèles de données.
- Interface ListSelectionModel et classe
DefaultListSelectionModel pour les modèles de sélection.
- Tables
- Classe JTable pour les tables et interface
TableModel pour le modèle de données des tables.
- Classes AbstractTableModel et DefaultTableModel
pour implémenter les modèles de données.
- Arbres
- Classe JTree pour les arbres et interface
TreeModel pour le modèle de données des arbres.
- Interfaces TreeNode et MutableTreeNode et classe
DefaultMutableTreeNode pour les noeuds de ces arbres.
- Cours n° 11 : images
- Chargement simple d'une image
- Caractère asynchrone du chargement des images. Interface
ImageObserver et la méthode imageUpdate.
- Utilisation d'un objet MediaTracker pour attendre la fin
du chargement d'une image.
- Utilisation des filtres ImageFilter.
- Cours n° 12 : ouvertures