org.fraid.function
Class GraphicsFunction
java.lang.Object
org.fraid.function.ComplexFunction
org.fraid.function.GraphicsFunction
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- aggregation, cobweb, color3d, consumption, iterFract, julia, mandelbrot, newton, orbit, orbit2, phase, plot, plot2, plot3, plot3d, plot3f, plotMap, spectrum, transform, transform3
public abstract class GraphicsFunction
- extends ComplexFunction
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mPlugInName
protected java.lang.String mPlugInName
mFun
protected ComplexFunction mFun
mWindowNumber
protected int mWindowNumber
mArgsOffset
protected int mArgsOffset
mPlugIn
protected BehaviorBean mPlugIn
mPanel
protected GraphicsPanel mPanel
mFrameWidth
protected int mFrameWidth
mFrameHeight
protected int mFrameHeight
GraphicsFunction
public GraphicsFunction()
setPlugInName
public void setPlugInName(java.lang.String aName)
resetGlobals
protected void resetGlobals()
doGraphics
public abstract Complex doGraphics(Complex[] aArgs)
throws java.lang.Exception
- Throws:
java.lang.Exception
doGraphics
public Complex doGraphics(java.lang.String aPluginName,
Complex[] aArgs)
throws ComplexFunctionException
- Throws:
ComplexFunctionException
invoke
public Complex invoke(Complex[] aArgs)
throws java.lang.Exception
- Description copied from class:
ComplexFunction
- The actual call to the function.
- Specified by:
invoke
in class ComplexFunction
- Parameters:
aArgs
- the arguments, can be (and usualy are) SimpleNode's
- Returns:
- a
Complex
value
- Throws:
java.lang.Exception
- if an error occurs- See Also:
SimpleNode
getWindowNumberFromArgs
protected void getWindowNumberFromArgs(Complex[] aArgs)
throws ComplexFunctionException
- Throws:
ComplexFunctionException
getWindowAndPlugIn
protected Complex getWindowAndPlugIn()
throws GraphicsStoreException,
PlugInException
- Throws:
GraphicsStoreException
PlugInException
processCoreArgs
protected void processCoreArgs(Complex[] aArgs)
throws java.lang.Exception
- Throws:
java.lang.Exception
processLocationAndSizeArgs
protected void processLocationAndSizeArgs(Complex[] aArgs)
throws GraphicsException
- Throws:
GraphicsException
displayGraphics
protected void displayGraphics(int vWindowNumber)
throws GraphicsStoreException
- Throws:
GraphicsStoreException
Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.