Test
Class ArrayTaker

java.lang.Object
  extended by java.lang.Thread
      extended by Test.ArrayTaker
All Implemented Interfaces:
java.lang.Runnable

public class ArrayTaker
extends java.lang.Thread
implements java.lang.Runnable

This class describes and maintain main operations witch array of pixels of proccesed image.
It is also implements Runnable, to proccess the image as external process.

Author:
pdrabik

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 int akumulator
           
 javax.swing.event.ChangeEvent cc
           
 int ilB
           
 int ilP
           
 int ilPG
           
 int increm
           
 int ofs
           
 Awaiter progres
           
 javax.swing.JProgressBar step
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ArrayTaker(LastPictureData picData)
          Create this oject.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          Never used.
 int CheckQ()
          Checkin what is and what will be the next walking authomat status.
 void Finalize()
           
 java.awt.Dimension GetDownEdgeFromLeft()
          Walking mechanism.
 java.awt.Dimension GetDownEdgeFromRight()
          Walking mechanism.
 int GetFirePixel()
          This class main method - edition 0.9.
 java.awt.Dimension GetRightEdgeFromDown()
          Used to determine shape's max derivative point.
 void run()
           
 void SetAwaiter(Awaiter ar)
           
 void setPointSides()
          Indicates Pointer object values.
 void SetQ(int QQ)
          Used to stop the counting proccess.
 void stateChanged(javax.swing.event.ChangeEvent arg0)
          Cooperating with progress bar.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ofs

public int ofs

ilP

public int ilP

ilPG

public int ilPG

akumulator

public int akumulator

ilB

public int ilB

increm

public int increm

cc

public javax.swing.event.ChangeEvent cc

step

public javax.swing.JProgressBar step

progres

public Awaiter progres
Constructor Detail

ArrayTaker

public ArrayTaker(LastPictureData picData)
Create this oject.

Parameters:
picData - LastPictureData object
See Also:
LastPictureData
Method Detail

SetAwaiter

public void SetAwaiter(Awaiter ar)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

Finalize

public void Finalize()

GetFirePixel

public int GetFirePixel()
This class main method - edition 0.9.
It alows shape tracing, developing points for calculating derivative. It uses authomat status to develop shape detection.

Returns:
Current possition of tracking image. Usually recieved after succesful shape recognision.

CheckQ

public int CheckQ()
Checkin what is and what will be the next walking authomat status.


setPointSides

public void setPointSides()
Indicates Pointer object values.
(important to develop shape)


GetDownEdgeFromLeft

public java.awt.Dimension GetDownEdgeFromLeft()
Walking mechanism. Moving down and left

Returns:
Next jump possition.

GetDownEdgeFromRight

public java.awt.Dimension GetDownEdgeFromRight()
Walking mechanism. Moving down and right.

Returns:
Next jump coordinates.

GetRightEdgeFromDown

public java.awt.Dimension GetRightEdgeFromDown()
Used to determine shape's max derivative point.

Returns:
This point's coordinates.

SetQ

public void SetQ(int QQ)
Used to stop the counting proccess.

Parameters:
QQ - Actual authomat state.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Never used.

Parameters:
arg0 -

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent arg0)
Cooperating with progress bar.

Parameters:
arg0 - The cause.