bluegammon.gui.animation
Interface RepaintRequestable

All Known Implementing Classes:
BoardCanvas

public interface RepaintRequestable

Interface for a repaint requestable graphics container, normally a Canvas. Used by animations and the animation engine to update the screen.

Author:
Peter Andersson

Method Summary
 void commitRepaint()
          Commits all repaint requests to the graphics context.
 boolean isShown()
          Returns true if the graphics context is visible.
 void repaint()
          Repaints whole graphics context.
 void requestRepaint()
          Requests a repaint of whole graphics context.
 

Method Detail

isShown

public boolean isShown()
Returns true if the graphics context is visible.

Returns:
true if visible, false otherwise

repaint

public void repaint()
Repaints whole graphics context.


requestRepaint

public void requestRepaint()
Requests a repaint of whole graphics context.


commitRepaint

public void commitRepaint()
Commits all repaint requests to the graphics context.