|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfpp.fractal.DoublePrecisionFractalGenerator
public abstract class DoublePrecisionFractalGenerator
The DoublePrecisionFractalGenerator class provides an abstract class that serves as a common base for FractalGenerators using double precision floating point arithmetic.
Constructor Summary | |
---|---|
DoublePrecisionFractalGenerator()
|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface infpp.fractal.FractalGenerator |
---|
getNumberOfIterationsAtPixel |
Constructor Detail |
---|
public DoublePrecisionFractalGenerator()
Method Detail |
---|
public Complex getComplexOrigin()
FractalGenerator
getComplexOrigin
in interface FractalGenerator
FractalGenerator.getComplexOrigin()
public void setComplexOrigin(Complex complexOrigin)
FractalGenerator
setComplexOrigin
in interface FractalGenerator
complexOrigin
- the point on the complex plane about which to
center the visible partFractalGenerator.setComplexOrigin(Complex)
public double getRealDimension()
FractalGenerator
getRealDimension
in interface FractalGenerator
FractalGenerator.getRealDimension()
public void setRealDimension(double realDimension)
FractalGenerator
setRealDimension
in interface FractalGenerator
realDimension
- the specified diameterFractalGenerator.setRealDimension(double)
public int getScreenWidth()
FractalGenerator
getScreenWidth
in interface FractalGenerator
FractalGenerator.getScreenWidth()
public int getScreenHeight()
FractalGenerator
getScreenHeight
in interface FractalGenerator
FractalGenerator.getScreenHeight()
public void setScreenDimension(int width, int height)
FractalGenerator
setScreenDimension
in interface FractalGenerator
width
- the width of the area to be displayed in pixelsheight
- the height of the area to be displayed in pixelsFractalGenerator.setScreenDimension(int, int)
public Complex calculateComplexFromScreenCoordinates(int x, int y)
FractalGenerator
calculateComplexFromScreenCoordinates
in interface FractalGenerator
x
- the x coordinate of the specified pixely
- the y coordinate of the specified pixel
FractalGenerator.calculateComplexFromScreenCoordinates(int, int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |