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 doublehandleSizePixels-
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 booleananchor(Point p)Set the anchor point.static voiddrawHandledRect(Graphics2D graphics, Rectangle2D rect, double handleSize)voiddrawLast(Graphics2D graphics)voiddrawNext(Graphics2D graphics)voidmove(int deltax, int deltay)Erase the last rectangle and shift the rectangle and redraw deltax, deltay: position from original positionvoidsetRectangle(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:RubberbandSet the anchor point.- Overrides:
anchorin classRubberband
-
drawLast
public void drawLast(Graphics2D graphics)
- Specified by:
drawLastin classRubberband
-
drawNext
public void drawNext(Graphics2D graphics)
- Specified by:
drawNextin classRubberband
-
drawHandledRect
public static void drawHandledRect(Graphics2D graphics, Rectangle2D rect, double handleSize)
-
-