org.fraid.projects.PredictionMarkets
Class PMChartThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.fraid.plugin.PaintAlgorithmThread
          extended by org.fraid.plugin.BufferedImagePaintAlgorithmThread
              extended by org.fraid.projects.PredictionMarkets.PMChartThread
All Implemented Interfaces:
java.lang.Runnable

public class PMChartThread
extends BufferedImagePaintAlgorithmThread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 java.util.Vector<java.lang.Integer> mCombinedChartVector
           
 int mCombinedChartVectorMax
           
 java.util.Vector<java.lang.Integer> mExactByNumberVector
           
 int mExactByNumberVectorMax
           
 java.util.Vector<java.lang.Integer> mExactByVolumeVector
           
 int mExactByVolumeVectorMax
           
 java.util.Vector<java.lang.Integer> mLimitByNumberVector
           
 int mLimitByNumberVectorMax
           
 java.util.Vector<java.lang.Integer> mLimitByVolumeVector
           
 int mLimitByVolumeVectorMax
           
 java.util.Vector<java.lang.Integer> mPeopleSalesByNumberVector
           
 int mPeopleSalesByNumberVectorMax
           
 java.util.Vector<java.lang.Integer> mPeopleSalesByVolumeVector
           
 int mPeopleSalesByVolumeVectorMax
           
 
Fields inherited from class org.fraid.plugin.BufferedImagePaintAlgorithmThread
pixels
 
Fields inherited from class org.fraid.plugin.PaintAlgorithmThread
mFirstTime, mProgressVar, mTime, owner, screenHeight, screenWidth, state
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PMChartThread(GraphicsUser aOwner, BehaviorBean aPlugIn)
           
 
Method Summary
 void applyAlgorithm()
          This is the actual algorithm.
 int max(java.util.Vector<java.lang.Integer> aVector)
           
 
Methods inherited from class org.fraid.plugin.BufferedImagePaintAlgorithmThread
allocateNewImage, createImage, drawGridLines, fillBackground, getPixels
 
Methods inherited from class org.fraid.plugin.PaintAlgorithmThread
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

mCombinedChartVector

public java.util.Vector<java.lang.Integer> mCombinedChartVector

mExactByNumberVector

public java.util.Vector<java.lang.Integer> mExactByNumberVector

mExactByVolumeVector

public java.util.Vector<java.lang.Integer> mExactByVolumeVector

mLimitByNumberVector

public java.util.Vector<java.lang.Integer> mLimitByNumberVector

mLimitByVolumeVector

public java.util.Vector<java.lang.Integer> mLimitByVolumeVector

mPeopleSalesByNumberVector

public java.util.Vector<java.lang.Integer> mPeopleSalesByNumberVector

mPeopleSalesByVolumeVector

public java.util.Vector<java.lang.Integer> mPeopleSalesByVolumeVector

mCombinedChartVectorMax

public int mCombinedChartVectorMax

mExactByNumberVectorMax

public int mExactByNumberVectorMax

mExactByVolumeVectorMax

public int mExactByVolumeVectorMax

mLimitByNumberVectorMax

public int mLimitByNumberVectorMax

mLimitByVolumeVectorMax

public int mLimitByVolumeVectorMax

mPeopleSalesByNumberVectorMax

public int mPeopleSalesByNumberVectorMax

mPeopleSalesByVolumeVectorMax

public int mPeopleSalesByVolumeVectorMax
Constructor Detail

PMChartThread

public PMChartThread(GraphicsUser aOwner,
                     BehaviorBean aPlugIn)
Method Detail

applyAlgorithm

public void applyAlgorithm()
Description copied from class: PaintAlgorithmThread
This is the actual algorithm. The image is generated here.

Specified by:
applyAlgorithm in class PaintAlgorithmThread

max

public int max(java.util.Vector<java.lang.Integer> aVector)


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.