datum API Documentation

datum.viewer
Class GridLayer

java.lang.Object
  |
  +--datum.util.layer.Layer
        |
        +--datum.viewer.GridLayer

public class GridLayer
extends Layer


Constructor Summary
GridLayer(String name, Datum columnSize, Datum rowSize, Color color)
           
 
Method Summary
 void draw(Graphics g, Area a)
          This method is called each time the parent LayerDisplay is redrawn, so make this routine fast.
 boolean handleClick(MouseEvent e, Area a)
          This method is called when ever a mouse click occurs in a LayerDisplay.
 
Methods inherited from class datum.util.layer.Layer
configure, getName, isVisible, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GridLayer

public GridLayer(String name,
                 Datum columnSize,
                 Datum rowSize,
                 Color color)
Method Detail

draw

public void draw(Graphics g,
                 Area a)
Description copied from class: Layer
This method is called each time the parent LayerDisplay is redrawn, so make this routine fast. Use the Area parameter to translate double coordinates to integer pixel coordinates for drawing to the Graphics parameter.
Overrides:
draw in class Layer

handleClick

public boolean handleClick(MouseEvent e,
                           Area a)
Description copied from class: Layer
This method is called when ever a mouse click occurs in a LayerDisplay. Each layer is given a change to handle the click starting from the topmost layer. A return value of true means that the click was handled, and no more layers should be given the chance to handle a given click.

Overrides:
handleClick in class Layer

Up to datum