Package PamView.zoomer
Class ZoomPolygon
java.lang.Object
PamView.zoomer.ZoomShape
PamView.zoomer.ZoomPolygon
A zoom polygon created by the zoomer.
- Author:
- Doug Gillespie
-
Field Summary
Fields inherited from class PamView.zoomer.ZoomShape
fillColor, outlineColor -
Constructor Summary
ConstructorsConstructorDescriptionZoomPolygon(Zoomer zoomer, Point startPoint, int coordinateType, 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) drawShapeSolid(Graphics g, Component component) intdoubledouble[]doubledoubledouble[]doublevoidnewPoint(double x, double y) New point to add to the shape - or update old point if it's a rectangle.booleanvoidsetCurrentMousePoint(Point currentMousePoint) zoomShapeToOverlayMark(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
-
ZoomPolygon
-
-
Method Details
-
drawShape
Description copied from class:ZoomShapeDraw the shape using the given graphics handle on the given component. -
drawShapeOutline
-
drawShapeSolid
-
getBounds
-
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.
-
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. -
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.
-
setCurrentMousePoint
- Parameters:
currentMousePoint- the currentMousePoint to set
-
getStartPoint
- Returns:
- the startPoint
-
getNumPoints
public int getNumPoints() -
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() -
getxPoints
public double[] getxPoints()- Returns:
- the xPoints
-
getyPoints
public double[] getyPoints()- Returns:
- the yPoints
-
zoomShapeToOverlayMark
Description copied from class:ZoomShapeConvert the obsolete zoom shapes into newer overlay marks.- Specified by:
zoomShapeToOverlayMarkin classZoomShape- Parameters:
overlayMarker-- Returns:
-