Interface PComponent

All Known Implementing Classes:
PCanvas, POffscreenCanvas

public interface PComponent
Interface that a component needs to implement if it wants to act as a Piccolo canvas.
Version:
1.0
Author:
Lance Good
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sends a repaint notification the repaint manager if PComponent is not already painting immediately.
    void
    Pops the topmost cursor from the stack and sets it as the current one.
    void
    Pushes the given cursor onto the cursor stack and sets the current cursor to the one provided.
    void
    repaint(PBounds bounds)
    Called to notify PComponent that given bounds need repainting.
    void
    setInteracting(boolean interacting)
    Sets whether the component is currently being interacted with.
  • Method Details

    • repaint

      void repaint(PBounds bounds)
      Called to notify PComponent that given bounds need repainting.
      Parameters:
      bounds - bounds needing repaint
    • paintImmediately

      void paintImmediately()
      Sends a repaint notification the repaint manager if PComponent is not already painting immediately.
    • pushCursor

      void pushCursor(Cursor cursor)
      Pushes the given cursor onto the cursor stack and sets the current cursor to the one provided.
      Parameters:
      cursor - The cursor to set as the current one and push
    • popCursor

      void popCursor()
      Pops the topmost cursor from the stack and sets it as the current one.
    • setInteracting

      void setInteracting(boolean interacting)
      Sets whether the component is currently being interacted with.
      Parameters:
      interacting - whether the component is currently being interacted with