public class ViewportPaneSWT extends Canvas implements ViewportPane(Code)
The ViewportPaneImpl is a java.awt.Panel that is the display area for a Map. It Registers itself
with a RenderStack and obtains the image from the RenderStack if the RenderStack is "ready"
author: Jesse Eichar version: $Revision: 1.9 $
public ViewportPaneSWT(Composite comp, MapEditor editor)(Code)
Creates a new ViewportPaneImpl object.
Parameters: comp - The Composite that this pane will be embedded into Parameters: renderStack - The renderstack that is rendering onto this viewport Parameters: vmodel - The Viewport model that models this viewport
Create a image that is compatible with this ViewportPane.
This image is a large block of memory that will be blitted into an SWT Image. Currently this
is BufferedImage.TYPE_4BYTE_ABGR although you should never depend on the Image type directly.
This image is *not* expected to be hardware accelarated, althought the blit process will be.
See Also: net.refractions.udig.project.render.ViewportPane.acquireImage(intint) Parameters: w - width Parameters: h - height BufferedImage with same color model as SWT Image.