dods.clients.importwizard.TMAP.map
Class PointRegion
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.Rectangle
dods.clients.importwizard.TMAP.map.MapRegion
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
Constructor Summary |
PointRegion(double x,
double y,
Color color)
Constructs a new PointRegion. |
PointRegion(int x,
int y,
Color color)
Constructs a new 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 |
radius
public int radius
PointRegion
public PointRegion(int x,
int y,
Color color)
- Constructs a new PointRegion.
- Parameters:
x
- the x coordinate in pixel valuesy
- the y coordinate in pixel valuescolor
- 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" valuesy
- the y coordinate in "user" valuescolor
- the color of the MapRegion
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.