performanceTests
Class GraphicsDotTest

java.lang.Object
  extended by performanceTests.GraphicsDotTest
All Implemented Interfaces:
PerformanceTest
Direct Known Subclasses:
GraphicsDotTest2, GraphicsDotTestBuffered

public class GraphicsDotTest
extends java.lang.Object
implements PerformanceTest


Field Summary
protected  int dotSize
           
protected  int nDots
           
protected  PerformanceWindow performanceWindow
           
protected  java.lang.String resultString
           
 
Constructor Summary
GraphicsDotTest()
           
 
Method Summary
 void cleanup()
          Called when dialog closes to give the test an opportunity to free andy remaining resources (close graphics windows, etc.);
protected  void drawDots(java.awt.Graphics2D g, javax.swing.JPanel panel)
           
 java.lang.String getName()
           
 java.lang.String getResultString()
           
 boolean runTest()
          Run the test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultString

protected java.lang.String resultString

dotSize

protected int dotSize

nDots

protected int nDots

performanceWindow

protected PerformanceWindow performanceWindow
Constructor Detail

GraphicsDotTest

public GraphicsDotTest()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface PerformanceTest
Returns:
The name of the test

getResultString

public java.lang.String getResultString()
Specified by:
getResultString in interface PerformanceTest
Returns:
a text based results string to display.

runTest

public boolean runTest()
Description copied from interface: PerformanceTest
Run the test

Specified by:
runTest in interface PerformanceTest
Returns:
true if executed successfully

drawDots

protected void drawDots(java.awt.Graphics2D g,
                        javax.swing.JPanel panel)

cleanup

public void cleanup()
Description copied from interface: PerformanceTest
Called when dialog closes to give the test an opportunity to free andy remaining resources (close graphics windows, etc.);

Specified by:
cleanup in interface PerformanceTest