|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
draw.sources.Cadre
public class Cadre
Définit le cadre d'affichage des images.
| Field Summary | |
|---|---|
private int |
height
Hauteur du cadre. |
private java.awt.Color[][] |
lastPixels
Cadre temporaire pour optimisation. |
private boolean |
load
Chargement. |
private java.awt.Color[][] |
pixels
Pixels du cadre. |
private int |
width
Largeur du cadre. |
private int |
x
Abscisse de la souris. |
private int |
y
Ordonnée de la souris. |
private int |
zoom
Niveau du zoom. |
| Constructor Summary | |
|---|---|
Cadre()
Cadre par défaut. |
|
Cadre(int width,
int height)
Cadre par défaut. |
|
| Method Summary | |
|---|---|
void |
effacer()
Efface le cadre. |
int |
getHeight()
Retourne la hauteur du cadre. |
java.awt.Color |
getPixel(int x,
int y)
Retourne la couleur d'un pixel. |
java.awt.Color[][] |
getPixels()
Retourne les pixels. |
int |
getWidth()
Retourne la largeur du cadre. |
int |
getX()
Retourne l'abscisse de la souris. |
int |
getY()
Retourne l'ordonnée de la souris. |
int |
getZoom()
Retourne le niveau de zoom. |
boolean |
isIn(int x,
int y)
Vérifie si on peut dessiner dans le cadre. |
boolean |
isLoading()
Vérifie si le fichier est chargé. |
void |
load(Draw image)
Charge une image du type DRAW dans le cadre. |
void |
nouveau(int largeur,
int hauteur)
Nouveau cadre. |
void |
setLoad(boolean load)
Modifie le chargement. |
void |
setPixel(int x,
int y,
java.awt.Color c)
Change la couleur d'un pixel. |
void |
zoom(int niveau)
Augmente la taille du cadre. |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int width
private int height
private java.awt.Color[][] pixels
private java.awt.Color[][] lastPixels
private int x
private int y
private int zoom
private boolean load
| Constructor Detail |
|---|
public Cadre()
public Cadre(int width,
int height)
| Method Detail |
|---|
public void load(Draw image)
public java.awt.Color[][] getPixels()
public boolean isLoading()
public void setLoad(boolean load)
load - Chargement.
public void nouveau(int largeur,
int hauteur)
largeur - Largeur.hauteur - Hauteur.public void effacer()
public void zoom(int niveau)
niveau - Niveau de zoom.public int getZoom()
public boolean isIn(int x,
int y)
x - Abscisse.y - Ordonnée.
public int getWidth()
public int getHeight()
public java.awt.Color getPixel(int x,
int y)
x - Abscisse.y - Ordonné.
public int getX()
public int getY()
public void setPixel(int x,
int y,
java.awt.Color c)
x - Abscisse.y - Ordonné.c - Couleur.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||