Class GraphicsDotTest

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

public class GraphicsDotTest extends Object implements PerformanceTest
  • Field Details

    • resultString

      protected String resultString
    • dotSize

      protected int dotSize
    • nDots

      protected int nDots
    • performanceWindow

      protected PerformanceWindow performanceWindow
  • Constructor Details

    • GraphicsDotTest

      public GraphicsDotTest()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface PerformanceTest
      Returns:
      The name of the test
    • getResultString

      public 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(Graphics2D g, 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