Serialized Form

  • Package edu.umd.cs.piccolo

    • Class edu.umd.cs.piccolo.PCamera

      class PCamera extends PNode implements Serializable
      serialVersionUID:
      1L
      • Serialization Methods

        • readObject
          private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
          Deserializes this PCamera from the ObjectInputStream.
          Parameters:
          in - the source 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.
          Parameters:
          out - the PObjectOutputStream to which this camera should be serialized
          Throws:
          IOException - if an error occured writing to the output stream
      • Serialized Fields

        • viewConstraint
          int viewConstraint
          Constraints to apply to the viewing area.
        • 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).
    • Class edu.umd.cs.piccolo.PCanvas

      class PCanvas extends JComponent implements Serializable
      serialVersionUID:
      1L
      • Serialized Fields

        • animatingOnLastPaint
          boolean animatingOnLastPaint
          Used to track whether the last paint operation was during an animation.
        • animatingRenderQuality
          int animatingRenderQuality
          The quality to use while the scene is being animated.
        • 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.
        • interactingRenderQuality
          int interactingRenderQuality
          The quality to use while the scene is being interacted with.
        • 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.
        • normalRenderQuality
          int normalRenderQuality
          The render quality to use when the scene is not being interacted or animated.
        • paintingImmediately
          boolean paintingImmediately
        • repaintBounds
          PBounds repaintBounds
    • Class edu.umd.cs.piccolo.PLayer

      class PLayer extends PNode implements Serializable
      serialVersionUID:
      1L
      • Serialization Methods

        • readObject
          private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
          Deserializes PLayer from the provided ObjectInputStream.
          Parameters:
          in - stream from which PLayer should be read
          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.
          Parameters:
          out - object to which the layer should be streamed
          Throws:
          IOException - may occur while serializing to stream
    • Class edu.umd.cs.piccolo.PNode

      class 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.
          Parameters:
          in - the stream to read from
          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.
          Parameters:
          out - the output stream to write to, must be an instance of PObjectOutputStream
          Throws:
          IOException - when an error occurs speaking to underlying ObjectOutputStream
      • Serialized Fields

        • bounds
          PBounds bounds
          Bounds of the PNode.
        • boundsChanged
          boolean boundsChanged
          Whether this node's bounds have changed, and so needs to be relaid out.
        • childBoundsInvalid
          boolean childBoundsInvalid
          Whether this node's child bounds need to be recomputed.
        • childBoundsVolatile
          boolean childBoundsVolatile
        • childPaintInvalid
          boolean childPaintInvalid
          Whether children need to be repainted.
        • children
          List children
          Tracks all immediate child nodes.
        • childrenPickable
          boolean childrenPickable
          Whether to stop processing pick at this node and not bother drilling down into children.
        • 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.
        • fullBoundsInvalid
          boolean fullBoundsInvalid
          Whether this node's full bounds need to be recomputed.
        • name
          String name
          Stores the name associated to this node.
        • occluded
          boolean occluded
        • paint
          Paint paint
          The paint to use for the background of this node.
        • paintInvalid
          boolean paintInvalid
          Whether this node needs to be repainted.
        • pickable
          boolean pickable
          Whether this node is pickable or not.
        • propertyChangeParentMask
          int propertyChangeParentMask
          Mask used when deciding whether to bubble up property change events to parents.
        • transform
          PAffineTransform transform
          Transform that applies to this node in relation to its parent.
        • transparency
          float transparency
          How Opaque this node should be 1f = fully opaque, 0f = completely transparent.
        • visible
          boolean visible
          Whether this node will be rendered.
    • Class edu.umd.cs.piccolo.PRoot

      class 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

  • Package edu.umd.cs.piccolo.nodes

    • Class edu.umd.cs.piccolo.nodes.PHtmlView

      class 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

      class 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.
          Parameters:
          in - stream from which the PImage should be read
          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.
          Parameters:
          out - stream into which serialized object will be serialized
          Throws:
          IOException - if error occurs while writing to the output stream
    • Class edu.umd.cs.piccolo.nodes.PPath

      class 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.
          Parameters:
          in - stream from which to read this PPath's state
          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.
          Parameters:
          out - output stream into which objects are to be serialized
          Throws:
          IOException - if serialiazing to output stream fails
      • Serialized Fields

        • strokePaint
          Paint strokePaint
    • Class edu.umd.cs.piccolo.nodes.PText

      class PText extends PNode implements Serializable
      serialVersionUID:
      1L
      • Serialized Fields

        • 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.
        • 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.
        • text
          String text
          Text for this text node.
        • textPaint
          Paint textPaint
          Text paint for this text node.
  • Package edu.umd.cs.piccolo.util