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 java.lang.Object


Constructor Summary
FractalGenerator()
           
 
Method Summary
protected  void expandRectToFitImage(ComplexRectangle complexRect)
           
 java.io.ByteArrayOutputStream generateFractal()
           
 java.io.ByteArrayOutputStream genFractal(ComplexRectangle rect, ComplexPoint juliaPoint)
          Create a fractal image as JPEG in memory and return it
protected  java.lang.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 java.io.ByteArrayOutputStream generateFractal()
                                              throws java.io.IOException
Throws:
java.io.IOException

genFractal

public java.io.ByteArrayOutputStream genFractal(ComplexRectangle rect,
                                                ComplexPoint juliaPoint)
                                         throws java.io.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:
java.io.IOException

getCurrentColorMap

protected int[] getCurrentColorMap()

getColor

protected java.lang.String getColor()

expandRectToFitImage

protected void expandRectToFitImage(ComplexRectangle complexRect)


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