|
|||||||||
| 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
The ZDebug class is not inteneded to be instantiated. Rather it provides static methods for maintaining/setting/retrieving global debugging state.
ZNode| Field Summary | |
protected static ZCamera |
boundsCamera
Camera that is associated with bounds. |
protected static int |
debug
Flag denoting the current debug state. |
static int |
DEBUG_ALL
|
static int |
DEBUG_DAMAGE
|
static int |
DEBUG_NONE
|
static int |
DEBUG_PAINT
|
static int |
DEBUG_TIME
|
protected static boolean |
debugRegionMgmt
Flag denoting whether there is a display to help debug region management |
protected static int |
paintCount
Tally of the number of ZNodes (that contain a visual) that have been painted |
protected static boolean |
showBounds
Flag denoting whether the bounds of each object are being rendered |
protected static boolean |
trackNodePaint
Flag denoting whether a counter should be kept and incremented each time a ZNode (that contains a visual) is painted |
| Constructor Summary | |
ZDebug()
|
|
| Method Summary | |
static void |
clearPaintCount(java.lang.Object g)
Clears the paint count. |
static void |
dump(ZNode subGraph)
Dump the subGraph passed in to stdout |
protected static void |
dump(ZNode subGraph,
int level)
Helper method for Dump(ZNode subGraph). |
protected static void |
dumpElement(java.lang.String space,
java.lang.String origHeader,
java.lang.String element)
Print the element for the scenegraph dump. |
static ZCamera |
getBoundsCamera()
Returns the camera associated with the bounds. |
static int |
getDebug()
Returns the current state of debugging output |
static boolean |
getDebugRegionMgmt()
Returns the current state of debugRegionMgmt |
static int |
getPaintCount(java.lang.Object g)
Returns the number of nodes that painted themselves during the last render |
static boolean |
getShowBounds()
Returns the current state of showBounds |
static void |
incPaintCount(java.lang.Object g)
Call this method whenever a node paints itself |
static void |
setDebug(int value)
Controls whether debug statements should be sent to stdout for various kinds of internal debugging. |
static void |
setDebugRegionMgmt(boolean value)
Controls whether the region currently being painted should be indicated with a shadowed area on the screen. |
static void |
setShowBounds(boolean showBounds,
ZCamera camera)
Controls whether the bounds of each object should be drawn as a debugging aid. |
static void |
setTrackNodePaint(boolean value)
Pass true to this method to enable gathering info relating to how many nodes are painted each render. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int DEBUG_NONE
public static final int DEBUG_ALL
public static final int DEBUG_DAMAGE
public static final int DEBUG_PAINT
public static final int DEBUG_TIME
protected static int debug
protected static boolean showBounds
protected static ZCamera boundsCamera
protected static boolean debugRegionMgmt
protected static boolean trackNodePaint
protected static int paintCount
| Constructor Detail |
public ZDebug()
| Method Detail |
public static void setDebug(int value)
value - public static int getDebug()
setDebug for legal values
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 boolean getShowBounds()
true if showBounds is on, or false otherwisepublic static ZCamera getBoundsCamera()
public static void setDebugRegionMgmt(boolean value)
value - public static boolean getDebugRegionMgmt()
true if debugRegionMgmt is on, or false otherwisepublic static void dump(ZNode subGraph)
subGraph -
protected static void dump(ZNode subGraph,
int level)
level - subGraph -
protected static void dumpElement(java.lang.String space,
java.lang.String origHeader,
java.lang.String element)
public static void setTrackNodePaint(boolean value)
value - clearPaintCount(Object),
incPaintCount(Object),
getPaintCount(Object)public static void clearPaintCount(java.lang.Object g)
g - setTrackNodePaint(boolean),
incPaintCount(java.lang.Object),
getPaintCount(java.lang.Object)public static void incPaintCount(java.lang.Object g)
g - setTrackNodePaint(boolean),
clearPaintCount(java.lang.Object),
getPaintCount(java.lang.Object)public static int getPaintCount(java.lang.Object g)
g - setTrackNodePaint(boolean),
clearPaintCount(java.lang.Object),
incPaintCount(java.lang.Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||