|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.UpdateManager
Update managers handle the job of repainting and laying out figures. A desirable implementation is one that batches work to be done and collapses any redundant work. Update managers may contain 0 or more nested update managers. Some optimizations can only be performed after all requests have been batched. For this reason, an UpdateManager should call performUpdate() on its nested UpdateManagers prior to doing its own update. During the nested updates, new requests may be added.
Constructor Summary | |
UpdateManager()
|
Method Summary | |
abstract void |
addDirtyRegion(IFigure figure,
int x,
int y,
int w,
int h)
Adds the dirty region defined by the coordinates on the IFigure figure. |
void |
addDirtyRegion(IFigure figure,
Rectangle rect)
|
abstract void |
addInvalidFigure(IFigure figure)
The receiver should call validate() on the IFigure figure in a timely fashion. |
void |
addUpdateListener(UpdateListener listener)
|
void |
dispose()
|
protected void |
firePainting(Rectangle damage,
Map dirtyRegions)
|
protected void |
fireValidating()
|
protected boolean |
isDisposed()
|
abstract void |
performUpdate()
|
abstract void |
performUpdate(Rectangle exposed)
|
void |
removeUpdateListener(UpdateListener listener)
|
abstract void |
setGraphicsSource(GraphicsSource gs)
|
abstract void |
setRoot(IFigure figure)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UpdateManager()
Method Detail |
public abstract void addDirtyRegion(IFigure figure, int x, int y, int w, int h)
public void addDirtyRegion(IFigure figure, Rectangle rect)
public abstract void addInvalidFigure(IFigure figure)
public void addUpdateListener(UpdateListener listener)
public void dispose()
protected void firePainting(Rectangle damage, Map dirtyRegions)
protected void fireValidating()
protected boolean isDisposed()
public abstract void performUpdate()
public abstract void performUpdate(Rectangle exposed)
public void removeUpdateListener(UpdateListener listener)
public abstract void setGraphicsSource(GraphicsSource gs)
public abstract void setRoot(IFigure figure)
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |