|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.piccolo.util.PUtil
public class PUtil
PUtil util methods for the Piccolo framework.
Field Summary | |
---|---|
static int |
ACTIVITY_SCHEDULER_FRAME_DELAY
|
static long |
DEFAULT_ACTIVITY_STEP_RATE
PActivities are broken into steps, this is how many milliseconds should pass between steps. |
static java.util.Enumeration |
NULL_ENUMERATION
|
static java.util.Iterator |
NULL_ITERATOR
|
static java.io.OutputStream |
NULL_OUTPUT_STREAM
Deprecated. This has been moved into a private static class of PObjectOutputStream |
Constructor Summary | |
---|---|
PUtil()
|
Method Summary | |
---|---|
static PCamera |
createBasicScenegraph()
Creates the simplest possible scene graph. |
static java.awt.geom.GeneralPath |
readPath(java.io.ObjectInputStream in)
Reads a path from the provided inputStream in accordance with the serialization policy defined in writePath. |
static java.awt.Stroke |
readStroke(java.io.ObjectInputStream in)
Reconstitutes a stroke from the provided Object Input Stream. |
static void |
writePath(java.awt.geom.GeneralPath path,
java.io.ObjectOutputStream out)
Serializes the given path to the provided Object Output Stream. |
static void |
writeStroke(java.awt.Stroke stroke,
java.io.ObjectOutputStream out)
Serializes the given stroke object to the object output stream provided. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static long DEFAULT_ACTIVITY_STEP_RATE
public static int ACTIVITY_SCHEDULER_FRAME_DELAY
public static java.util.Iterator NULL_ITERATOR
public static java.util.Enumeration NULL_ENUMERATION
public static java.io.OutputStream NULL_OUTPUT_STREAM
Constructor Detail |
---|
public PUtil()
Method Detail |
---|
public static PCamera createBasicScenegraph()
public static void writeStroke(java.awt.Stroke stroke, java.io.ObjectOutputStream out) throws java.io.IOException
stroke
- stroke to be serializedout
- stream to which the stroke is to be serialized.
java.io.IOException
public static java.awt.Stroke readStroke(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
in
- stream from which Stroke is to be read
java.io.IOException
java.lang.ClassNotFoundException
public static java.awt.geom.GeneralPath readPath(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
in
- stream from which to read the path.
java.io.IOException
java.lang.ClassNotFoundException
public static void writePath(java.awt.geom.GeneralPath path, java.io.ObjectOutputStream out) throws java.io.IOException
path
- path to be serializedout
- stream to which the path should be serialized
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |