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, stretchpublic 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)
Rubberbandanchor in class Rubberbandpublic void drawLast(java.awt.Graphics2D graphics)
drawLast in class Rubberbandpublic void drawNext(java.awt.Graphics2D graphics)
drawNext in class Rubberbandpublic static void drawHandledRect(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D rect,
double handleSize)