|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.monkeycoder.monkeyfractal.base.FractalBuffer
public class FractalBuffer
This class represents a buffer full of calculated fractal data.
Originally part of the MonkeyFractal project.
| Constructor Summary | |
|---|---|
FractalBuffer(int inWidth,
int inHeight)
Creates a new FractalBuffer initialized to hold inWidth by inHeight worth of data. |
|
| Method Summary | |
|---|---|
FractalBuffer |
copy()
Produces a full copy of this FractalBuffer. |
double |
get(int inX,
int inY)
Gets the value at a a specific position in the buffer. |
int |
getHeight()
Gets the height of the buffer. |
int |
getWidth()
Gets the width of the buffer. |
boolean |
isEmpty()
Does a scan of the entire buffer to determine if it is empty. |
boolean |
merge(FractalBuffer inSourceFb,
java.awt.Point inUpperLeft)
Merges an entire FractalBuffer into this one. |
boolean |
merge(FractalBuffer inSourceFb,
java.awt.Rectangle inSection,
java.awt.Point inUpperLeft)
Merges a partial FractalBuffer into this one. |
void |
set(int inX,
int inY,
double inValue)
Sets a specific position in the buffer to the supplied value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FractalBuffer(int inWidth,
int inHeight)
inWidth - The width of the FractalBuffer.inHeight - The height of the FractalBuffer.| Method Detail |
|---|
public void set(int inX,
int inY,
double inValue)
inX - The X coordinate of the position to set.inY - The Y coordinate of the position to set.inValue - The value to be placed in that position.
public double get(int inX,
int inY)
inX - The X coordinate of the position to get.inY - The Y coordinate of the position to get.
public int getWidth()
public int getHeight()
public boolean isEmpty()
public FractalBuffer copy()
public boolean merge(FractalBuffer inSourceFb,
java.awt.Point inUpperLeft)
merge( inSourceFb, new Rectangle( 0, 0, inSourceFb.getWidth(), inSourceFb.getHeight() ), inUpperLeft )
inSourceFb - The source FractalBuffer that will be entirely merged into this one.inUpperLeft - The point that will be the upper left position of the passed in FractalBuffer.
merge( FractalBuffer, Rectangle, Point )
public boolean merge(FractalBuffer inSourceFb,
java.awt.Rectangle inSection,
java.awt.Point inUpperLeft)
inSourceFb - The source FractalBuffer that will be entirely merged into this one.inSection - The area within the source FractalBuffer to use in the merge.inUpperLeft - The point that will be the upper left position of the passed in FractalBuffer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||