The default implementation is a java.awt.Pane. It Registers itself with a CompositeRenderer and
obtains the image from the CompositeRenderer if the CompositeRenderer is "ready"
Models: CompositeRenderer and Viewport
View: ViewportPane
Control: RenderManager
Viewport is responsible for:
Image Creation for CompositeRenderer an renders
Listening to redraw requests from CompositeRenderer
Isolating everyone from SWT / AWT graphics pipeline
public void enableDrawCommands(boolean enable)(Code)
Switches ViewportPainter to run custom IDrawCommands
during map repainting or disable them.
Parameters: enable - true is to run custom draw commands, false otherwise
Returns the SWT Control that listeners, including drag and drop, can be added to.
the SWT Control that listeners, including drag and drop, can be added to.
Requests a repaint actually - may not occur right away.
repaint
public void repaint(int x, int y, int width, int height)(Code)
Requests that the area indicated is repainted
Requests a repaint actually - may not occur right away.
Parameters: x - x coordinate of the top left corner of the box to repaint Parameters: y - y coordinate of the top left corner of the box to repaint Parameters: width - width of the box to repaint Parameters: height - height of the box to repaint
setCursor
public void setCursor(org.eclipse.swt.graphics.Cursor cursor)(Code)
Sets the mouse cursor.
Limited to System cursors at the moment. Custom cursors will be forthcoming.