opale.m2d.object2d
Class Fractal
java.lang.Object
|
+--opale.m2d.ker.Object2D
|
+--opale.m2d.object2d.Fractal
- All Implemented Interfaces:
- java.lang.Cloneable, GObject2D
- public class Fractal
- extends Object2D
- implements GObject2D
This class represents a fractal generated by a motif and affines transformations.
- Version:
- 0.1
- Author:
- O.C.
|
Constructor Summary |
Fractal()
Constructor by default. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ntransf
protected int ntransf
NITER
protected int NITER
transf
protected AffineTransform2D[] transf
Fractal
public Fractal()
- Constructor by default.
- Since:
- Opale-2d 0.11
writeFileMore
public void writeFileMore(WFile f,
Pack2D p)
- Le constructeur de copie.
- Overrides:
writeFileMore in class Object2D
- Parameters:
Data2D - le nuage à copier.- Since:
- Opale 0.1
readKeyWord
public int readKeyWord(java.lang.String word,
RFile f,
Pack2D p)
throws java.io.IOException,
MalformedFileException
- Description copied from class:
Object2D
- Interpret a keyword read in a file.
- Overrides:
readKeyWord in class Object2D
- Following copied from class:
opale.m2d.ker.Object2D
- Parameters:
String - word, the keyword.RFile - f, the file in reading.Pack2D - p, instance of Pack2D that contains the requiered objects.- Returns:
- int, 0 if the keyword is good, -1 otherwise.
draw
public void draw(Pen2D c)
- Description copied from interface:
GObject2D
- Methode indiquant la procedure de dessin des objets de la classe
- Specified by:
draw in interface GObject2D
- Following copied from interface:
opale.m2d.ker.GObject2D
- Parameters:
Pen2D - crayon, le crayon pour dessiner en 2D dans un repere2D
getInfo
public InfoObject getInfo()
- Description copied from interface:
GObject2D
- Renvoie les infos de l'instance
- Specified by:
getInfo in interface GObject2D
- Following copied from interface:
opale.m2d.ker.GObject2D
- Returns:
- InfoObjet, info sur l'objet
changeOIJ
public void changeOIJ(OIJ rep)
- Effectue un changement de repere de l'objet.
- Overrides:
changeOIJ in class Object2D
- Parameters:
OIJ - rep, le nouveau repere.- Since:
- Opale 0.1
toString
public java.lang.String toString()
- Description copied from interface:
GObject2D
- Surcharge de toString()
- Specified by:
toString in interface GObject2D- Overrides:
toString in class Object2D
main
public static void main(java.lang.String[] arg)