|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.umd.cs.jazz.util.ZDebug
ZDebug provides static methods for maintaining/setting/retrieving global debugging state. It is not inteneded to be instantiated.
ZNode, Serialized Form| Field Summary | |
static boolean |
debug
Flag denoting whether debugging in general should be enabled. |
static boolean |
debugPick
Flag denoting whether to print debugging info related to picking |
static boolean |
debugRegionMgmt
Flag denoting whether there is a display to help debug region management |
static boolean |
debugRender
Flag denoting whether to print debugging info related to render operations |
static boolean |
debugRepaint
Flag denoting whether to print debugging info related to repaint operations |
static boolean |
debugTiming
Flag denoting whether to print debugging info related to timing |
static boolean |
showBounds
Flag denoting whether the bounds of each object are being rendered Don't set this directly - rather call @link{#setShowBounds}. |
| Constructor Summary | |
ZDebug()
|
|
| Method Summary | |
static void |
clearPaintCount()
Clears the paint count. |
static void |
dump(ZNode node)
Debugging function to dump the scenegraph rooted at the specified node to stdout. |
protected static void |
dump(ZSceneGraphObject sgo,
int level)
Internal method for dump(ZNode node). |
protected static void |
dumpElement(java.lang.String space,
java.lang.String origHeader,
java.lang.String element)
Print the element for the scenegraph dump. |
static int |
getPaintCount()
Returns the number of nodes that painted themselves during the last render |
static void |
incPaintCount()
Call this method whenever a node paints itself |
static void |
setShowBounds(boolean showBounds,
ZCamera camera)
Controls whether the bounds of each object should be drawn as a debugging aid. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final boolean debug
public static boolean showBounds
public static boolean debugRegionMgmt
public static boolean debugRender
public static boolean debugRepaint
public static boolean debugTiming
public static boolean debugPick
| Constructor Detail |
public ZDebug()
| Method Detail |
public static void setShowBounds(boolean showBounds,
ZCamera camera)
showBounds - true to show bounds, or false to hide boundscamera - The camera the bounds should be scaled for.public static void clearPaintCount()
incPaintCount(),
getPaintCount()public static void incPaintCount()
clearPaintCount(),
getPaintCount()public static int getPaintCount()
clearPaintCount(),
incPaintCount()public static void dump(ZNode node)
node - The root of the subtree to display
protected static void dump(ZSceneGraphObject sgo,
int level)
node - level -
protected static void dumpElement(java.lang.String space,
java.lang.String origHeader,
java.lang.String element)
|
Jazz API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||