dods.clients.importwizard.TMAP.map
Class PointRegion

java.lang.Object
  extended by java.awt.geom.RectangularShape
      extended by java.awt.geom.Rectangle2D
          extended by java.awt.Rectangle
              extended by dods.clients.importwizard.TMAP.map.MapRegion
                  extended by dods.clients.importwizard.TMAP.map.PointRegion
All Implemented Interfaces:
Shape, Serializable, Cloneable

public class PointRegion
extends MapRegion

A region on the map which can be drawn and which may listen to mouse events. The abstract method which makes this class abstract is the draw(Graphics g) method.

Version:
3.0 Sept 09 1999
Author:
Jonathan Callahan
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
Rectangle2D.Double, Rectangle2D.Float
 
Field Summary
 int radius
           
 
Fields inherited from class dods.clients.importwizard.TMAP.map.MapRegion
canvas_clipRect, color, grid, sensitiveArea, user_X, user_Y
 
Fields inherited from class java.awt.Rectangle
height, width, x, y
 
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
 
Constructor Summary
PointRegion(double x, double y, Color color)
          Constructs a new PointRegion.
PointRegion(int x, int y, Color color)
          Constructs a new PointRegion.
 
Method Summary
 void draw(Graphics g)
          Draws a PointRegion.
 
Methods inherited from class dods.clients.importwizard.TMAP.map.MapRegion
getColor, getGrid, mouseDown, mouseMove, mouseUp, setColor, setGrid, setLocation, setUserLocation, setUserLocation, toString
 
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setRect, setSize, setSize, translate, union
 
Methods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
 

Field Detail

radius

public int radius
Constructor Detail

PointRegion

public PointRegion(int x,
                   int y,
                   Color color)
Constructs a new PointRegion.

Parameters:
x - the x coordinate in pixel values
y - the y coordinate in pixel values
color - the color of the MapRegion

PointRegion

public PointRegion(double x,
                   double y,
                   Color color)
Constructs a new PointRegion.

Parameters:
x - the x coordinate in "user" values
y - the y coordinate in "user" values
color - the color of the MapRegion
Method Detail

draw

public void draw(Graphics g)
Draws a PointRegion. This method overrides the abstract method in MapRegion and allows us to instantiate an PointRegion.

Specified by:
draw in class MapRegion
Parameters:
g - the graphics context for the drawing operation.