public class RubberbandRectangleHandles extends Rubberband
Modifier and Type | Field and Description |
---|---|
static double |
handleSizePixels |
anchorPt, component, endPt, firstStretch, lastPt, stretchedPt
Constructor and Description |
---|
RubberbandRectangleHandles(java.awt.Component c,
boolean listen) |
Modifier and Type | Method and Description |
---|---|
boolean |
anchor(java.awt.Point p)
Set the anchor point.
|
static void |
drawHandledRect(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D rect,
double handleSize) |
void |
drawLast(java.awt.Graphics2D graphics) |
void |
drawNext(java.awt.Graphics2D graphics) |
void |
move(int deltax,
int deltay)
Erase the last rectangle and shift the rectangle and redraw
deltax, deltay: position from original position
|
void |
setRectangle(java.awt.Rectangle current) |
done, end, getAnchor, getBounds, getEnd, getLast, getStretched, isActive, lastBounds, setActive, stretch
public RubberbandRectangleHandles(java.awt.Component c, boolean listen)
public void setRectangle(java.awt.Rectangle current)
public void move(int deltax, int deltay)
public boolean anchor(java.awt.Point p)
Rubberband
anchor
in class Rubberband
public void drawLast(java.awt.Graphics2D graphics)
drawLast
in class Rubberband
public void drawNext(java.awt.Graphics2D graphics)
drawNext
in class Rubberband
public static void drawHandledRect(java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D rect, double handleSize)