|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdraw.sources.formats.Image
draw.sources.formats.Draw
public class Draw
Image DRAW.
La structure d'un fichier *.draw est très simple.
Ce format est pris en compte par le cadre de l'application.
C'est le format par défaut. Le fichier se décompose en 7 parties.
2 couches suffisent à définir ces parties.
Types utilisées :
| Field Summary | |
|---|---|
static java.lang.String |
drawAuthor
COLIN Mathieu. |
private int |
drawDate
Date de création de l'image. |
private int |
drawHeight
Hauteur de l'image. |
static java.lang.String |
drawName
DRAW. |
private java.awt.Color[][] |
drawPixels
Tableau 2D des pixels en couleur. |
private int |
drawSize
Taille de l'image en octet. |
private int |
drawWidth
Largeur de l'image. |
| Constructor Summary | |
|---|---|
Draw()
Crée une image DRAW. |
|
Draw(Cadre cadre)
Crée une image DRAW. |
|
| Method Summary | |
|---|---|
int |
computeSize()
Calcule la taille de l'image en octet. |
Draw |
convert()
Aucune convertion. |
int |
getDrawDate()
Retourne drawDate. |
java.awt.Color |
getDrawPixel(int x,
int y)
Retourne un pixel de drawPixels. |
int |
getDrawSize()
Retourne drawSize. |
int |
getHeight()
Retourne drawHeight. |
java.lang.String |
getName()
Retourne drawName. |
int |
getWidth()
Retourne drawWidth. |
void |
read(java.lang.String fichier)
Lit un fichier DRAW. |
void |
setDrawPixels(java.awt.Color[][] pixels)
Modifie drawPixels. |
int |
setHeight(int height)
Modifie drawHeight. |
int |
setWidth(int width)
Modifie drawWidth. |
void |
write(java.lang.String fichier)
Ecrit un fichier DRAW. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String drawName
public static final java.lang.String drawAuthor
private int drawDate
private int drawWidth
private int drawHeight
private int drawSize
private java.awt.Color[][] drawPixels
| Constructor Detail |
|---|
public Draw(Cadre cadre)
cadre - Cadre.public Draw()
| Method Detail |
|---|
public int computeSize()
public void read(java.lang.String fichier)
read in class Imagefichier - Nom du fichier.public void write(java.lang.String fichier)
write in class Imagefichier - Nom du fichier.public Draw convert()
convert in class Imagepublic java.lang.String getName()
getName in class Imagepublic int getDrawDate()
public int getWidth()
getWidth in class Imagepublic int setWidth(int width)
width - Largeur.public int setHeight(int height)
height - Hauteur.public int getHeight()
getHeight in class Imagepublic int getDrawSize()
public java.awt.Color getDrawPixel(int x,
int y)
x - Abscisse.y - Ordonnée.
public void setDrawPixels(java.awt.Color[][] pixels)
pixels - Nouveau pixels.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||