Package edu.umd.cs.piccolo
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 TypeMethodDescriptionvoidSends a repaint notification the repaint manager if PComponent is not already painting immediately.voidPops the topmost cursor from the stack and sets it as the current one.voidpushCursor(Cursor cursor) Pushes the given cursor onto the cursor stack and sets the current cursor to the one provided.voidCalled to notify PComponent that given bounds need repainting.voidsetInteracting(boolean interacting) Sets whether the component is currently being interacted with.
-
Method Details
-
repaint
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
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
-