Package PamView.zoomer
Class ZoomRectangle
java.lang.Object
PamView.zoomer.ZoomShape
PamView.zoomer.ZoomRectangle
- 
Field Summary
Fields inherited from class PamView.zoomer.ZoomShape
fillColor, outlineColor - 
Constructor Summary
ConstructorsConstructorDescriptionZoomRectangle(Zoomer zoomer, int coordindateType, double xStart, double yStart)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidShape is complete for whatever reason.booleancontainsPoint(Component component, Point pt) Shape contains the point pt.Draw the shape using the given graphics handle on the given component.drawShapeOutline(Graphics g, Component component, Rectangle r) drawShapeSolid(Graphics g, Component component, Rectangle r) doubledoubledoubledoublevoidnewPoint(double x, double y) New point to add to the shape - or update old point if it's a rectangle.booleanzoomShapeToOverlayMark(OverlayMarker overlayMarker) Convert the obsolete zoom shapes into newer overlay marks.Methods inherited from class PamView.zoomer.ZoomShape
getCoordinateType, getZoomer, isClosed, setZoomShapeFill, setZoomShapeOutline 
- 
Constructor Details
- 
ZoomRectangle
 
 - 
 - 
Method Details
- 
drawShape
Description copied from class:ZoomShapeDraw the shape using the given graphics handle on the given component. - 
drawShapeOutline
 - 
drawShapeSolid
 - 
containsPoint
Description copied from class:ZoomShapeShape contains the point pt.Note that these are in screen pixel coordinates.
- Specified by:
 containsPointin classZoomShape- Parameters:
 pt- point- Returns:
 - true if the point is within the shape.
 
 - 
closeShape
public void closeShape()Description copied from class:ZoomShapeShape is complete for whatever reason.- Overrides:
 closeShapein classZoomShape
 - 
removeOnZoom
public boolean removeOnZoom()- Specified by:
 removeOnZoomin classZoomShape- Returns:
 - true if the object should no longer be displayed after zooming
 
Basically true for rectangles, false for polygons.
 
 - 
newPoint
public void newPoint(double x, double y) Description copied from class:ZoomShapeNew point to add to the shape - or update old point if it's a rectangle. - 
getBounds
 - 
getXLength
public double getXLength()- Specified by:
 getXLengthin classZoomShape- Returns:
 - the difference between the minimum and maximum x values.
 
 - 
getXStart
public double getXStart() - 
getYLength
public double getYLength()- Specified by:
 getYLengthin classZoomShape- Returns:
 - the difference between the minimum and maximum y values.
 
 - 
getYStart
public double getYStart() - 
zoomShapeToOverlayMark
Description copied from class:ZoomShapeConvert the obsolete zoom shapes into newer overlay marks.- Specified by:
 zoomShapeToOverlayMarkin classZoomShape- Parameters:
 overlayMarker-- Returns:
 
 
 -