com.croftsoft.core.animation.collector
Class BooleanRepaintCollector

java.lang.Object
  extended by com.croftsoft.core.animation.collector.BooleanRepaintCollector
All Implemented Interfaces:
RepaintCollector

public class BooleanRepaintCollector
extends Object
implements RepaintCollector

Repaints entire component if there is a repaint request of any size.

Another way to think of this RepaintCollector implementation is "all-or-nothing".

Since:
2002-11-30
Version:
2002-12-01
Author:
David Wallace Croft

Constructor Summary
BooleanRepaintCollector()
           
 
Method Summary
 int getCount()
           
 Rectangle[] getRepaintRegions()
           
 void repaint()
           
 void repaint(int x, int y, int width, int height)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanRepaintCollector

public BooleanRepaintCollector()
Method Detail

getCount

public int getCount()
Specified by:
getCount in interface RepaintCollector

getRepaintRegions

public Rectangle[] getRepaintRegions()
Specified by:
getRepaintRegions in interface RepaintCollector

repaint

public void repaint(int x,
                    int y,
                    int width,
                    int height)
Specified by:
repaint in interface RepaintCollector

repaint

public void repaint()
Specified by:
repaint in interface RepaintCollector

reset

public void reset()
Specified by:
reset in interface RepaintCollector

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)