edu.umd.cs.piccolo.util
Class PDebug

java.lang.Object
  extended by edu.umd.cs.piccolo.util.PDebug

public class PDebug
extends java.lang.Object

PDebug is used to set framework wide debugging flags.

Version:
1.0
Author:
Jesse Grosjean

Field Summary
static boolean debugBounds
           
static boolean debugFullBounds
           
static boolean debugPaintCalls
           
static boolean debugPrintFrameRate
           
static boolean debugPrintUsedMemory
           
static boolean debugRegionManagement
           
static boolean debugThreads
           
static int printResultsFrameRate
           
 
Method Summary
static void endProcessingInput()
           
static void endProcessingOutput(java.awt.Graphics g)
           
static long getApproximateUsedMemory()
           
static java.awt.Color getDebugPaintColor()
           
 long getFramesProcessed()
          Return the number of frames that have been processed since the last time resetFPSTiming was called.
static double getInputFPS()
          Return the frames per second used to process input events and activities.
static double getOutputFPS()
          Return the frames per seconds used to paint graphics to the screen.
static boolean getProcessingOutput()
           
static double getTotalFPS()
          Return how many frames are processed and painted per second.
static void processRepaint()
           
static void resetFPSTiming()
          Reset the variables used to track FPS.
static void scheduleProcessInputs()
           
static void startProcessingInput()
           
static void startProcessingOutput()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugRegionManagement

public static boolean debugRegionManagement

debugPaintCalls

public static boolean debugPaintCalls

debugPrintFrameRate

public static boolean debugPrintFrameRate

debugPrintUsedMemory

public static boolean debugPrintUsedMemory

debugBounds

public static boolean debugBounds

debugFullBounds

public static boolean debugFullBounds

debugThreads

public static boolean debugThreads

printResultsFrameRate

public static int printResultsFrameRate
Method Detail

getDebugPaintColor

public static java.awt.Color getDebugPaintColor()

scheduleProcessInputs

public static void scheduleProcessInputs()

processRepaint

public static void processRepaint()

getProcessingOutput

public static boolean getProcessingOutput()

startProcessingOutput

public static void startProcessingOutput()

endProcessingOutput

public static void endProcessingOutput(java.awt.Graphics g)

startProcessingInput

public static void startProcessingInput()

endProcessingInput

public static void endProcessingInput()

getTotalFPS

public static double getTotalFPS()
Return how many frames are processed and painted per second. Note that since piccolo doesn't paint continuously this rate will be slow unless you are interacting with the system or have activities scheduled.


getInputFPS

public static double getInputFPS()
Return the frames per second used to process input events and activities.


getOutputFPS

public static double getOutputFPS()
Return the frames per seconds used to paint graphics to the screen.


getFramesProcessed

public long getFramesProcessed()
Return the number of frames that have been processed since the last time resetFPSTiming was called.


resetFPSTiming

public static void resetFPSTiming()
Reset the variables used to track FPS. If you reset seldom they you will get good average FPS values, if you reset more often only the frames recorded after the last reset will be taken into consideration.


getApproximateUsedMemory

public static long getApproximateUsedMemory()


Copyright © 2008 by University of Maryland, College Park, MD 20742, USA All rights reserved.