public abstract class RubberBand extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Point |
endPoint |
protected Point |
startPoint |
| Constructor and Description |
|---|
RubberBand(RubberBandCanvasIF c) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
draw() |
protected abstract void |
drawBoundingShape(Graphics g,
int startx,
int starty,
int width,
int height) |
protected void |
drawRubberBand(Graphics g) |
protected void |
erase() |
RubberBandCanvasIF |
getCanvas() |
protected Point |
getEndPoint() |
protected boolean |
getEraseSomething() |
protected Point |
getStartPoint() |
protected boolean |
isAreaSelected() |
boolean |
isDragging() |
protected void |
notifyRubberBandCanvas() |
protected void |
reset() |
void |
setCanvas(RubberBandCanvasIF c) |
protected void |
setEndPoint(Point newValue) |
protected void |
setEraseSomething(boolean newValue) |
protected void |
setStartPoint(Point newValue) |
protected void |
start(Point p) |
protected void |
stop(Point p) |
protected volatile Point startPoint
protected volatile Point endPoint
public RubberBand(RubberBandCanvasIF c)
public boolean isDragging()
protected void draw()
protected abstract void drawBoundingShape(Graphics g, int startx, int starty, int width, int height)
protected void drawRubberBand(Graphics g)
protected void erase()
public final RubberBandCanvasIF getCanvas()
protected Point getEndPoint()
protected Point getStartPoint()
protected final boolean getEraseSomething()
protected void notifyRubberBandCanvas()
public final void setCanvas(RubberBandCanvasIF c)
protected final void setEndPoint(Point newValue)
protected final void setEraseSomething(boolean newValue)
protected final void setStartPoint(Point newValue)
protected void start(Point p)
protected void stop(Point p)
protected void reset()
protected final boolean isAreaSelected()
Copyright © 2018. All rights reserved.