Package ucar.nc2.ui.geoloc
Class RubberbandRectangleHandles
- java.lang.Object
-
- ucar.nc2.ui.geoloc.Rubberband
-
- ucar.nc2.ui.geoloc.RubberbandRectangleHandles
-
- All Implemented Interfaces:
Serializable
public class RubberbandRectangleHandles extends Rubberband
Rectangle Rubberbanding.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static double
handleSizePixels
-
Fields inherited from class ucar.nc2.ui.geoloc.Rubberband
anchorPt, component, endPt, firstStretch, lastPt, stretchedPt
-
-
Constructor Summary
Constructors Constructor Description RubberbandRectangleHandles(Component c, boolean listen)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
anchor(Point p)
Set the anchor point.static void
drawHandledRect(Graphics2D graphics, Rectangle2D rect, double handleSize)
void
drawLast(Graphics2D graphics)
void
drawNext(Graphics2D graphics)
void
move(int deltax, int deltay)
Erase the last rectangle and shift the rectangle and redraw deltax, deltay: position from original positionvoid
setRectangle(Rectangle current)
-
Methods inherited from class ucar.nc2.ui.geoloc.Rubberband
done, end, getAnchor, getBounds, getEnd, getLast, getStretched, isActive, lastBounds, setActive, stretch
-
-
-
-
Constructor Detail
-
RubberbandRectangleHandles
public RubberbandRectangleHandles(Component c, boolean listen)
-
-
Method Detail
-
setRectangle
public void setRectangle(Rectangle current)
-
move
public void move(int deltax, int deltay)
Erase the last rectangle and shift the rectangle and redraw deltax, deltay: position from original position
-
anchor
public boolean anchor(Point p)
Description copied from class:Rubberband
Set the anchor point.- Overrides:
anchor
in classRubberband
-
drawLast
public void drawLast(Graphics2D graphics)
- Specified by:
drawLast
in classRubberband
-
drawNext
public void drawNext(Graphics2D graphics)
- Specified by:
drawNext
in classRubberband
-
drawHandledRect
public static void drawHandledRect(Graphics2D graphics, Rectangle2D rect, double handleSize)
-
-