Serialized Form


Package edu.umd.cs.piccolo

Class edu.umd.cs.piccolo.PCamera extends PNode implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Deserializes this PCamera from the ObjectInputStream.

Throws:
IOException - when error occurs during read
ClassNotFoundException - if the stream attempts to deserialize a missing class

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Write this camera and all its children out to the given stream. Note that the cameras layers are written conditionally, so they will only get written out if someone else writes them unconditionally.

Throws:
IOException - if an error occured writing to the output stream
Serialized Fields

viewTransform

PAffineTransform viewTransform
Transform applied to layers before they are rendered. This transform differs from the transform applied to the children of this PCamera (sticky objects).


viewConstraint

int viewConstraint
Constraints to apply to the viewing area.

Class edu.umd.cs.piccolo.PCanvas extends JComponent implements Serializable

serialVersionUID: 1L

Serialized Fields

camera

PCamera camera
The camera though which this Canvas is viewing.


cursorStack

PStack cursorStack
Stack of cursors used to keep track of cursors as they change through interactions.


interacting

int interacting
Whether the canvas is considered to be interacting, will probably mean worse render quality.


normalRenderQuality

int normalRenderQuality
The render quality to use when the scene is not being interacted or animated.


animatingRenderQuality

int animatingRenderQuality
The quality to use while the scene is being animated.


interactingRenderQuality

int interactingRenderQuality
The quality to use while the scene is being interacted with.


paintingImmediately

boolean paintingImmediately

animatingOnLastPaint

boolean animatingOnLastPaint
Used to track whether the last paint operation was during an animation.


isButton1Pressed

boolean isButton1Pressed
Tracks whether button1 of the mouse is down.


isButton2Pressed

boolean isButton2Pressed
Tracks whether button2 of the mouse is down.


isButton3Pressed

boolean isButton3Pressed
Tracks whether button3 of the mouse is down.


repaintBounds

PBounds repaintBounds

Class edu.umd.cs.piccolo.PLayer extends PNode implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Deserializes PLayer from the provided ObjectInputStream.

Throws:
IOException - since it involves quite a bit of IO
ClassNotFoundException - may occur is serialized stream has been renamed after serialization

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Write this layer and all its children out to the given stream. Note that the layer writes out any cameras that are viewing it conditionally, so they will only get written out if someone else writes them unconditionally.

Throws:
IOException - may occur while serializing to stream

Class edu.umd.cs.piccolo.PNode extends Object implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Read this node and all of its descendants in from the given input stream.

Throws:
IOException - when an error occurs speaking to underlying ObjectOutputStream
ClassNotFoundException - when a class is deserialized that no longer exists. This can happen if it's renamed or deleted.

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Write this node and all of its descendant nodes to the given outputsteam. This stream must be an instance of PObjectOutputStream or serialization will fail. This nodes parent is written out conditionally, that is it will only be written out if someone else writes it out unconditionally.

Throws:
IOException - when an error occurs speaking to underlying ObjectOutputStream
Serialized Fields

children

List children
Tracks all immediate child nodes.


bounds

PBounds bounds
Bounds of the PNode.


transform

PAffineTransform transform
Transform that applies to this node in relation to its parent.


paint

Paint paint
The paint to use for the background of this node.


transparency

float transparency
How Opaque this node should be 1f = fully opaque, 0f = completely transparent.


clientProperties

MutableAttributeSet clientProperties
A modifiable set of client properties.


fullBoundsCache

PBounds fullBoundsCache
An optimization that remembers the full bounds of a node rather than computing it every time.


propertyChangeParentMask

int propertyChangeParentMask
Mask used when deciding whether to bubble up property change events to parents.


pickable

boolean pickable
Whether this node is pickable or not.


childrenPickable

boolean childrenPickable
Whether to stop processing pick at this node and not bother drilling down into children.


visible

boolean visible
Whether this node will be rendered.


childBoundsVolatile

boolean childBoundsVolatile

paintInvalid

boolean paintInvalid
Whether this node needs to be repainted.


childPaintInvalid

boolean childPaintInvalid
Whether children need to be repainted.


boundsChanged

boolean boundsChanged
Whether this node's bounds have changed, and so needs to be relaid out.


fullBoundsInvalid

boolean fullBoundsInvalid
Whether this node's full bounds need to be recomputed.


childBoundsInvalid

boolean childBoundsInvalid
Whether this node's child bounds need to be recomputed.


occluded

boolean occluded

name

String name
Stores the name associated to this node.

Class edu.umd.cs.piccolo.PRoot extends PNode implements Serializable

serialVersionUID: 1L

Serialized Fields

activityScheduler

PActivityScheduler activityScheduler
Object responsible for scheduling activities, regardless of where in the scene they take place.


Package edu.umd.cs.piccolo.activities

Class edu.umd.cs.piccolo.activities.PActivityScheduler extends Object implements Serializable

serialVersionUID: 1L

Serialized Fields

root

PRoot root

activities

List activities

activitiesChanged

boolean activitiesChanged

animating

boolean animating

processingActivities

ArrayList processingActivities

Package edu.umd.cs.piccolo.nodes

Class edu.umd.cs.piccolo.nodes.PHtmlView extends PNode implements Serializable

serialVersionUID: 1L

Serialized Fields

label

JLabel label
Underlying JLabel used to handle the rendering logic.

Class edu.umd.cs.piccolo.nodes.PImage extends PNode implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Deserializes a PImage from the input stream provided.

Throws:
IOException - if problem occurs while reading from input stream
ClassNotFoundException - occurs is no mapping from the bytes in the stream can be found to classes available

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Serializes this PImage to the stream provided. The java.awt.Image wrapped by this PImage is converted into a BufferedImage when serialized.

Throws:
IOException - if error occurs while writing to the output stream

Class edu.umd.cs.piccolo.nodes.PPath extends PNode implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Deserializes a PPath object from the provided input stream. This method is required since Strokes and GeneralPaths are not serializable by default.

Throws:
IOException - when exception occurs reading from input stream
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Writes this PPath object to the output stream provided. Necessary since stroke and path are not serializable by default.

Throws:
IOException - if serialiazing to output stream fails
Serialized Fields

strokePaint

Paint strokePaint

Class edu.umd.cs.piccolo.nodes.PText extends PNode implements Serializable

serialVersionUID: 1L

Serialized Fields

text

String text
Text for this text node.


textPaint

Paint textPaint
Text paint for this text node.


font

Font font
Font for this text node.


greekThreshold

double greekThreshold
Greek threshold in screen font size for this text node. Will be made private in version 2.0.


horizontalAlignment

float horizontalAlignment
Horizontal alignment for this text node.


constrainHeightToTextHeight

boolean constrainHeightToTextHeight
True if this text node should constrain its height to the height of its text.


constrainWidthToTextWidth

boolean constrainWidthToTextWidth
True if this text node should constrain its height to the height of its text.


Package edu.umd.cs.piccolo.util

Class edu.umd.cs.piccolo.util.PAffineTransform extends AffineTransform implements Serializable

serialVersionUID: 1L

Class edu.umd.cs.piccolo.util.PAffineTransformException extends RuntimeException implements Serializable

serialVersionUID: 1L

Serialized Fields

errantTransform

PAffineTransform errantTransform

Class edu.umd.cs.piccolo.util.PBounds extends Rectangle2D.Double implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Throws:
IOException
ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream out)
                  throws IOException
Throws:
IOException
Serialized Fields

isEmpty

boolean isEmpty

Class edu.umd.cs.piccolo.util.PDimension extends Dimension2D implements Serializable

serialVersionUID: 1L

Serialized Fields

width

double width
The width of the dimension.


height

double height
The height of the dimension.

Class edu.umd.cs.piccolo.util.PStack extends ArrayList implements Serializable

serialVersionUID: 1L



Copyright © 1995-2011 Piccolo2D. All Rights Reserved.