org.fraid.plugin
Class BufferedImagePaintAlgorithmThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.fraid.plugin.PaintAlgorithmThread
          extended by org.fraid.plugin.BufferedImagePaintAlgorithmThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
CobWebThread, Color3DThread, ConsumptionDiagramThread, FunctionPlotThread, IterFractThread, MapPlotThread, OrbitDiagram2Thread, OrbitDiagramThread, PhaseThread, Plot2Thread, Plot3DThread, PMChartThread, SpectrumThread, TransformThread

public abstract class BufferedImagePaintAlgorithmThread
extends PaintAlgorithmThread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.awt.image.BufferedImage pixels
           
 
Fields inherited from class org.fraid.plugin.PaintAlgorithmThread
mFirstTime, mPlugIn, mProgressVar, mTime, owner, screenHeight, screenWidth, state
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BufferedImagePaintAlgorithmThread(GraphicsUser aOwner, BehaviorBean aPlugIn)
           
 
Method Summary
protected  void allocateNewImage()
          Depending what the underlying image is (BufferedImage or int array) storrage is allocated.
 java.awt.image.BufferedImage createImage()
          Turns its internal representation to a BufferedImage.
 void drawGridLines(DoublePoint aP)
          Plots the grid (if there was created one).
 void fillBackground()
           
 java.awt.image.BufferedImage getPixels()
           
 
Methods inherited from class org.fraid.plugin.PaintAlgorithmThread
applyAlgorithm, fillModel, getOwner, getProgressStatistics, getThreadName, getThreadState, goToWait, goToWork, printDebugMessage, requestStop, restart, run, subjectChanged
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pixels

protected java.awt.image.BufferedImage pixels
Constructor Detail

BufferedImagePaintAlgorithmThread

public BufferedImagePaintAlgorithmThread(GraphicsUser aOwner,
                                         BehaviorBean aPlugIn)
Method Detail

getPixels

public java.awt.image.BufferedImage getPixels()

allocateNewImage

protected void allocateNewImage()
Description copied from class: PaintAlgorithmThread
Depending what the underlying image is (BufferedImage or int array) storrage is allocated.

Specified by:
allocateNewImage in class PaintAlgorithmThread

createImage

public java.awt.image.BufferedImage createImage()
Description copied from class: PaintAlgorithmThread
Turns its internal representation to a BufferedImage.

Specified by:
createImage in class PaintAlgorithmThread
Returns:
a BufferedImage value

drawGridLines

public void drawGridLines(DoublePoint aP)
Description copied from class: PaintAlgorithmThread
Plots the grid (if there was created one).

Specified by:
drawGridLines in class PaintAlgorithmThread
Parameters:
aP - a DoublePoint value

fillBackground

public void fillBackground()


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.