|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FractalGenerator
The FractalGenerator interface provides a means of controlling the operation of a fractal generator.
Method Summary | |
---|---|
Complex |
calculateComplexFromScreenCoordinates(int x,
int y)
Calculates the point on the complex plane that corresponds to the given pixel. |
Complex |
getComplexOrigin()
Gets the complex point located at the center of the visible area of the fractal. |
int |
getNumberOfIterationsAtPixel(int x,
int y)
Returns the number of required iterations to determine divergence of a certain sequence at the specified pixel converted to a complex number. |
double |
getRealDimension()
Gets the minimum diameter of the visible part of the fractal. |
int |
getScreenHeight()
Gets the height of the area that is drawn in pixels. |
int |
getScreenWidth()
Gets the width of the area that is drawn in pixels. |
void |
setComplexOrigin(Complex complexOrigin)
Sets the center of the visible part of the fractal to the specified point on the complex plane. |
void |
setRealDimension(double realDimension)
Sets the minimum diameter of the visible part of the fractal to the specified diameter. |
void |
setScreenDimension(int width,
int height)
Sets the size of the area to be displayed in pixels. |
Method Detail |
---|
Complex getComplexOrigin()
void setComplexOrigin(Complex complexOrigin)
complexOrigin
- the point on the complex plane about which to
center the visible partdouble getRealDimension()
void setRealDimension(double realDimension)
realDimension
- the specified diameterint getScreenWidth()
int getScreenHeight()
void setScreenDimension(int width, int height)
width
- the width of the area to be displayed in pixelsheight
- the height of the area to be displayed in pixelsint getNumberOfIterationsAtPixel(int x, int y)
x
- the x coordinate of the specified pixely
- the y coordinate of the specified pixel
Complex calculateComplexFromScreenCoordinates(int x, int y)
x
- the x coordinate of the specified pixely
- the y coordinate of the specified pixel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |