org.apache.chemistry.opencmis.util.content.fractal
Class FractalGenerator
java.lang.Object
org.apache.chemistry.opencmis.util.content.fractal.FractalGenerator
public class FractalGenerator
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FractalGenerator
public FractalGenerator()
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 setjuliaPoint
- 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.