net.refractions.udig.project.ui.render.glass
Class GlassPane

java.lang.Object
  extended by net.refractions.udig.project.ui.render.glass.GlassPane

public abstract class GlassPane
extends java.lang.Object

A glass pane that draws onto the image drawn on the screen.

The draw command is drawn after the background image has been drawn and before the draw commands are executed:

Since:
1.1.0
Author:
Emily Gouge (Refractions Research, Inc)

Field Summary
protected  ViewportPane parent
          The viewport pane that does the drawing on the screen.
 
Constructor Summary
GlassPane(ViewportPane parent)
          Creates a new glass pane with a given parent viewport.
 
Method Summary
abstract  void draw(GC graphics)
          This function does the drawing.
 GlassPaneSite getSite()
          Gets the site associated with the glasspane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected ViewportPane parent
The viewport pane that does the drawing on the screen.

Constructor Detail

GlassPane

public GlassPane(ViewportPane parent)
Creates a new glass pane with a given parent viewport.

A new glasspane site is created using the map and render manager associated with the viewportpane

Parameters:
parent -
Method Detail

getSite

public GlassPaneSite getSite()
Gets the site associated with the glasspane.

Returns:

draw

public abstract void draw(GC graphics)
This function does the drawing. This is called whenever the viewport is redrawn.

This should contain the draw commands of the items you want drawn on the glass pane. All draw commands are pixel draw commands therefore any location information needs to be converted to screen coordinates. This can be done using the GlassPaneSite information

Parameters:
graphics -