|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdraw.sources.Image
draw.sources.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(Cadre cadre)
Crée une image DRAW. |
|
| Method Summary | |
|---|---|
private int |
computeSize()
Calcule la taille de l'image en octet. |
protected Draw |
convert()
Aucune convertion. |
private int |
getDrawDate()
Retourne drawDate. |
private java.awt.Color[][] |
getDrawPixels()
Retourne drawPixels. |
private int |
getDrawSize()
Retourne drawSize. |
protected int |
getHeight()
Retourne drawHeight. |
protected java.lang.String |
getName()
Retourne drawName. |
protected int |
getWidth()
Retourne drawWidth. |
static void |
main(java.lang.String[] args)
|
protected void |
read(java.lang.String fichier)
Lit un fichier DRAW. |
protected 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.| Method Detail |
|---|
private int computeSize()
protected void read(java.lang.String fichier)
read in class Imagefichier - Nom du fichier.protected void write(java.lang.String fichier)
write in class Imagefichier - Nom du fichier.protected Draw convert()
convert in class Imageprotected java.lang.String getName()
getName in class Imageprivate int getDrawDate()
protected int getWidth()
getWidth in class Imageprotected int getHeight()
getHeight in class Imageprivate int getDrawSize()
private java.awt.Color[][] getDrawPixels()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||