|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.monkeycoder.monkeyfractal.base.FractalPlugin
public abstract class FractalPlugin
This is the interface that all FractalPlugin's must implement. The behavior of
each function should follow that which is outlined below very carefully but the
specific implementation is up to the developer of the FractalPlugin. Functions
that do not work as described will likely fail when used by MonkeyFractal.
Originally part of the MonkeyFractal project.
| Field Summary | |
|---|---|
protected ParameterList |
params
Holds the configuration of this plugin in the form of a ParameterList. |
protected FractalThreadManager |
threadManager
Holds a reference to the containing FractalThreadManager. |
| Constructor Summary | |
|---|---|
FractalPlugin()
FractalPlugin is abstract and cannot be directly constructed. |
|
| Method Summary | |
|---|---|
abstract FractalBuffer |
generateFractal()
This function generates the fractal represented by the FractalPlugin and configured by the current ParameterList. |
abstract ComplexRange |
getComplexRange()
This function gets the current ComplexRange used internally by the FractalPlugin. |
abstract ComplexRange |
getComplexRange(java.awt.Rectangle inPixelRect)
Calculates a new ComplexRange based on a Rectangle of pixels. |
abstract java.lang.String |
getHelpAboutInfo()
This method returns a String containing Help About information about this plugin. |
ParameterList |
getParameterList()
This function returns the current ParameterList being used by this FractalPlugin. |
abstract void |
resetParameterList()
This function creates a default ParameterList for this FractalPlugin. |
abstract void |
setComplexRange(ComplexRange inComplexRange)
This function sets the ComplexRange used internally by the FractalPlugin. |
abstract void |
setComplexRange(java.awt.Rectangle inPixelRect)
This function sets the ComplexRange used internally by the FractalPlugin. |
void |
setParameterList(ParameterList inParamList)
This function takes in a ParameterList that will replace the internal ParameterList being used by this FractalPlugin. |
abstract void |
setPixelDimensions(java.awt.Dimension inPixelDim)
This method sets the Dimensions of the FractalBuffer that will be generated by generateFractal(). |
void |
setThreadManager(FractalThreadManager inThreadManager)
This method accepts a reference to the containing FractalThreadManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ParameterList params
protected FractalThreadManager threadManager
| Constructor Detail |
|---|
public FractalPlugin()
| Method Detail |
|---|
public ParameterList getParameterList()
resetParameterList()public void setParameterList(ParameterList inParamList)
inParamList - The new ParameterList to be used by this FractalPlugin.getParameterList()public abstract void resetParameterList()
public abstract FractalBuffer generateFractal()
FractalThreadManager.getFractalBuffer()public abstract ComplexRange getComplexRange()
public abstract ComplexRange getComplexRange(java.awt.Rectangle inPixelRect)
public abstract void setComplexRange(ComplexRange inComplexRange)
inComplexRange - The new ComplexRange to be loaded into the internal ParameterList.generateFractal()public abstract void setComplexRange(java.awt.Rectangle inPixelRect)
inPixelRect - A Rectangle of pixels to use to create a new ComplexRange to be loaded into the internal ParameterList.getComplexRange(Rectangle),
setComplexRange(ComplexRange)public abstract void setPixelDimensions(java.awt.Dimension inPixelDim)
inPixelDim - A Dimension of pixels that represents how large a FractalBuffer will be generated.generateFractal()public void setThreadManager(FractalThreadManager inThreadManager)
inThreadManager - A reference to the containing FractalThreadManager that will be provided
by the thread manager itself when it is started.FractalThreadManager.run()public abstract java.lang.String getHelpAboutInfo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||