Eclipse Draw2d
2.1

org.eclipse.draw2d
Class SubordinateUpdateManager

java.lang.Object
  |
  +--org.eclipse.draw2d.UpdateManager
        |
        +--org.eclipse.draw2d.SubordinateUpdateManager

public abstract class SubordinateUpdateManager
extends UpdateManager


Field Summary
protected  GraphicsSource graphicsSource
           
protected  IFigure root
           
 
Constructor Summary
SubordinateUpdateManager()
           
 
Method Summary
 void addDirtyRegion(IFigure f, int x, int y, int w, int h)
          Adds the dirty region defined by the coordinates on the IFigure figure.
 void addInvalidFigure(IFigure f)
          The receiver should call validate() on the IFigure figure in a timely fashion.
protected abstract  IFigure getHost()
           
protected  UpdateManager getSuperior()
           
 void performUpdate()
          Performs the update.
 void performUpdate(Rectangle rect)
          Performs an update on the given exposed rectangle.
 void setGraphicsSource(GraphicsSource gs)
          Sets the GraphicsSource for this update manager.
 void setRoot(IFigure f)
          Sets the root figure.
 
Methods inherited from class org.eclipse.draw2d.UpdateManager
addDirtyRegion, addUpdateListener, dispose, firePainting, fireValidating, isDisposed, removeUpdateListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected IFigure root

graphicsSource

protected GraphicsSource graphicsSource
Constructor Detail

SubordinateUpdateManager

public SubordinateUpdateManager()
Method Detail

addDirtyRegion

public void addDirtyRegion(IFigure f,
                           int x,
                           int y,
                           int w,
                           int h)
Description copied from class: UpdateManager
Adds the dirty region defined by the coordinates on the IFigure figure. The update manager should repaint the dirty region in a timely fashion.

Specified by:
addDirtyRegion in class UpdateManager
Parameters:
f - the dirty figure
x - the x coordinate of the dirty region
y - the y coordinate of the dirty region
w - the width of the dirty region
h - the height of the dirty region
See Also:
UpdateManager.addDirtyRegion(IFigure, int, int, int, int)

addInvalidFigure

public void addInvalidFigure(IFigure f)
Description copied from class: UpdateManager
The receiver should call validate() on the IFigure figure in a timely fashion.

Specified by:
addInvalidFigure in class UpdateManager
Parameters:
f - the invalid figure
See Also:
UpdateManager.addInvalidFigure(IFigure)

getHost

protected abstract IFigure getHost()

getSuperior

protected UpdateManager getSuperior()

performUpdate

public void performUpdate()
Description copied from class: UpdateManager
Performs the update.

Specified by:
performUpdate in class UpdateManager
See Also:
UpdateManager.performUpdate()

performUpdate

public void performUpdate(Rectangle rect)
Description copied from class: UpdateManager
Performs an update on the given exposed rectangle.

Specified by:
performUpdate in class UpdateManager
Parameters:
rect - the exposed rectangle
See Also:
UpdateManager.performUpdate(Rectangle)

setRoot

public void setRoot(IFigure f)
Description copied from class: UpdateManager
Sets the root figure.

Specified by:
setRoot in class UpdateManager
Parameters:
f - the new root figure
See Also:
UpdateManager.setRoot(IFigure)

setGraphicsSource

public void setGraphicsSource(GraphicsSource gs)
Description copied from class: UpdateManager
Sets the GraphicsSource for this update manager.

Specified by:
setGraphicsSource in class UpdateManager
Parameters:
gs - the new GraphicsSource
See Also:
UpdateManager.setGraphicsSource(GraphicsSource)

Eclipse Draw2d
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.