FileDocCategorySizeDatePackage
DebugGraphicsInfo.javaAPI DocJava SE 5 API1378Fri Aug 26 14:57:54 BST 2005javax.swing

DebugGraphicsInfo

public class DebugGraphicsInfo extends Object
Class used by DebugGraphics for maintaining information about how to render graphics calls.
version
1.13 12/19/03
author
Dave Karlton

Fields Summary
Color
flashColor
int
flashTime
int
flashCount
Hashtable
componentToDebug
JFrame
debugFrame
PrintStream
stream
Constructors Summary
Methods Summary
intgetDebugOptions(javax.swing.JComponent component)

        if (componentToDebug == null) {
            return 0;
        } else {
            Integer integer = (Integer)componentToDebug.get(component);

            return integer == null ? 0 : integer.intValue();
        }
    
voidlog(java.lang.String string)

        stream.println(string);
    
voidsetDebugOptions(javax.swing.JComponent component, int debug)


         
	if (debug == 0) {
	    return;
	}
        if (componentToDebug == null) {
            componentToDebug = new Hashtable();
        }
	if (debug > 0) {
	    componentToDebug.put(component, new Integer(debug));
	} else {
	    componentToDebug.remove(component);
	}