datum.viewer
Class GridLayer
java.lang.Object
|
+--datum.util.layer.Layer
|
+--datum.viewer.GridLayer
- public class GridLayer
- extends Layer
|
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. |
GridLayer
public GridLayer(String name,
Datum columnSize,
Datum rowSize,
Color color)
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