org.apache.chemistry.opencmis.util.content.fractal
Class FractalGenerator

java.lang.Object
  extended by org.apache.chemistry.opencmis.util.content.fractal.FractalGenerator

public class FractalGenerator
extends Object


Constructor Summary
FractalGenerator()
           
 
Method Summary
protected  void expandRectToFitImage(ComplexRectangle complexRect)
           
 ByteArrayOutputStream generateFractal()
           
 ByteArrayOutputStream genFractal(ComplexRectangle rect, ComplexPoint juliaPoint)
          Create a fractal image as JPEG in memory and return it
protected  String getColor()
           
protected  int[] getCurrentColorMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FractalGenerator

public FractalGenerator()
Method Detail

generateFractal

public ByteArrayOutputStream generateFractal()
                                      throws IOException
Throws:
IOException

genFractal

public ByteArrayOutputStream genFractal(ComplexRectangle rect,
                                        ComplexPoint juliaPoint)
                                 throws IOException
Create a fractal image as JPEG in memory and return it

Parameters:
rect - rectangle of mandelbrot or julia set
juliaPoint - point in Julia set or null
Returns:
byte array with JPEG stream
Throws:
IOException

getCurrentColorMap

protected int[] getCurrentColorMap()

getColor

protected String getColor()

expandRectToFitImage

protected void expandRectToFitImage(ComplexRectangle complexRect)


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.