|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.DamageRegion
public abstract class DamageRegion
A damage region represents a region of the canvas that has been "damaged" and hence needs to be repainted. Damage regions are passed up from a component that creates the damage until they reach the JCanvas, at which point the Swing RepaintManager gets called.
Method Summary | |
---|---|
abstract void |
apply(JCanvas canvas)
Tell the damage region to inflict itself on the given JCanvas. |
void |
checkCacheValid(TransformContext c)
Check transform cache validity. |
static DamageRegion |
createDamageRegion(TransformContext c,
double x,
double y,
double w,
double h)
Create a damage region in this context over the given rectangle. |
static DamageRegion |
createDamageRegion(TransformContext c,
Rectangle2D r)
Create a damage region in this context over the given rectangle. |
abstract void |
extend(Rectangle2D r)
Extend the damage region with the given rectangle. |
TransformContext |
getContext()
Get the transform context in which this damage region was created. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public abstract void apply(JCanvas canvas)
public void checkCacheValid(TransformContext c)
public static DamageRegion createDamageRegion(TransformContext c, Rectangle2D r)
public static DamageRegion createDamageRegion(TransformContext c, double x, double y, double w, double h)
public abstract void extend(Rectangle2D r)
public TransformContext getContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |