dods.clients.importwizard.TMAP.map
Class PTcXYTool
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.Rectangle
dods.clients.importwizard.TMAP.map.MapTool
dods.clients.importwizard.TMAP.map.XYTool
dods.clients.importwizard.TMAP.map.PTcXYTool
- All Implemented Interfaces:
- MapConstants, Shape, Serializable, Cloneable
public class PTcXYTool
- extends XYTool
A rectangular map tool defined by x, y, width and height.
This tool draws a rubber-band box on the screen.
- Version:
- 0.1, 15 Aug 1996
- Author:
- Jonathan Callahan
- See Also:
- Serialized Form
Fields inherited from class dods.clients.importwizard.TMAP.map.MapTool |
active, bottom_edge_scroll, boundingRect, canvas_clipRect, color, delta_X, delta_Y, drawHandles, grid, handle, left_edge_scroll, mouseDownHandle, needsRange_X, needsRange_Y, numHandles, range_X, range_Y, right_edge_scroll, snap_X, snap_Y, top_edge_scroll, user_X, user_Y |
Fields inherited from interface dods.clients.importwizard.TMAP.map.MapConstants |
DEPTH_AXIS, HEIGHT_AXIS, HI, LATITUDE_AXIS, LO, LONGITUDE_AXIS, MID, PT, SNAP_MID, SNAP_ON, TIME_AXIS |
Constructor Summary |
PTcXYTool(int x,
int y,
int width,
int height,
Color color)
Constructs and initializes an PTcXYTool with the specified parameters. |
PTcXYTool(Rectangle rect,
Color color)
Constructs an PTcXYTool and initializes it to the specified rectangle. |
Methods inherited from class dods.clients.importwizard.TMAP.map.MapTool |
adjustWidthHeight, applyClipRect, applyClipRect, bump_against_sides, check_for_zero_range, getColor, getDelta_X, getDelta_Y, getGrid, getRectangle, getSnap_X, getSnap_Y, handle_reshape, intersect, is_active, mouseDown, mouseDrag, mouseMove, mouseUp, saveHandles, setBounds, setBounds, setColor, setDelta_X, setDelta_Y, setGrid, setLocation, setRange_X, setRange_Y, setSnapping, setUser_X, setUser_X, setUser_XY, setUser_XY, setUser_Y, setUser_Y, setUserBounds, 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, 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 |
PTcXYTool
public PTcXYTool(int x,
int y,
int width,
int height,
Color color)
- Constructs and initializes an PTcXYTool with the specified parameters.
- Parameters:
x
- the x coordinatey
- the y coordinatewidth
- the width of the PTcXYToolheight
- the height of the PTcXYTool
PTcXYTool
public PTcXYTool(Rectangle rect,
Color color)
- Constructs an PTcXYTool and initializes it to the specified rectangle.
- Parameters:
rect
- the rectangle of the PTcXYTool
draw
public void draw(Graphics g)
- Draws an PTcXYTool.
This method overrides the
abstract
method in
MapTool and allows us to instantiate an PTcXYTool.
- Overrides:
draw
in class XYTool
- Parameters:
g
- the graphics context for the drawing operation.