public class MandelbrotSet extends ImageEffect
Constructor and Description |
---|
MandelbrotSet()
Creates a
MandelbrotSet object with the default parameters. |
MandelbrotSet(MandelbrotSetParameters pParameters)
Creates a
MandelbrotSet object that draws a part of the mandelbrot set according to the specified parameters. |
Modifier and Type | Method and Description |
---|---|
ComplexNumber |
getComplexNumberAt(int iXPos,
int iYPos)
Returns the complex number that it is represented by the specified position in the image.
|
EffectParameters |
getEffectParameters()
Returns the parameters that are currently used for the Mandelbrot set effect.
|
java.awt.image.BufferedImage |
process()
Returns an image of the Mandelbrot set according to the parameters that were set.
|
void |
setEffectParameters(EffectParameters pEffectParameters)
Sets the parameters for the Mandelbrot set effect.
|
void |
setMandelbrotSetParameters(MandelbrotSetParameters pParameters)
Sets the parameters for the Mandelbrot set effect.
|
isRunning, processAsThread, run
public MandelbrotSet()
MandelbrotSet
object with the default parameters.public MandelbrotSet(MandelbrotSetParameters pParameters)
MandelbrotSet
object that draws a part of the mandelbrot set according to the specified parameters.pParameters
- The parameters that configure the Mandelbrot set image.public void setMandelbrotSetParameters(MandelbrotSetParameters pParameters)
pParameters
- The parameters that configure the effect.public void setEffectParameters(EffectParameters pEffectParameters)
MandelbrotSetParameters
.setEffectParameters
in class ImageEffect
pEffectParameters
- The parameters that configure the effect.public ComplexNumber getComplexNumberAt(int iXPos, int iYPos)
iXPos
- The horizontal position as integer.iYPos
- The vertical position as integer.ComplexNumber
object representing the complex number of the position in the image.public EffectParameters getEffectParameters()
getEffectParameters
in class ImageEffect
public java.awt.image.BufferedImage process() throws java.lang.Exception
process
in class ImageEffect
java.lang.Exception
- if there are errors when processing the image effect.