public static class ImageDisplay.VisRect extends java.awt.Rectangle
Modifier and Type | Field and Description |
---|---|
private java.awt.Rectangle |
init |
boolean |
isDragUpdate
set when this
VisRect is updated by a mouse drag operation and
unset on mouse release |
Constructor and Description |
---|
VisRect()
Constructs a new empty
VisRect . |
VisRect(ImageDisplay.VisRect v)
Constructs a new
VisRect from another one. |
VisRect(int x,
int y,
int width,
int height)
Constructs a new
VisRect . |
VisRect(int x,
int y,
int width,
int height,
ImageDisplay.VisRect peer)
Constructs a new
VisRect . |
Modifier and Type | Method and Description |
---|---|
void |
checkPointInside(java.awt.Point p) |
void |
checkRectPos() |
void |
checkRectSize() |
boolean |
isFullView() |
boolean |
isFullView1D() |
void |
reset() |
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, setLocation, setLocation, setRect, setSize, setSize, toString, translate, union
add, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
private final java.awt.Rectangle init
public boolean isDragUpdate
VisRect
is updated by a mouse drag operation and
unset on mouse releasepublic VisRect(int x, int y, int width, int height)
VisRect
.x
- the specified X coordinatey
- the specified Y coordinatewidth
- the width of the rectangleheight
- the height of the rectanglepublic VisRect(int x, int y, int width, int height, ImageDisplay.VisRect peer)
VisRect
.x
- the specified X coordinatey
- the specified Y coordinatewidth
- the width of the rectangleheight
- the height of the rectanglepeer
- share full bounds with this peer VisRect
public VisRect(ImageDisplay.VisRect v)
VisRect
from another one.v
- rectangle to copypublic VisRect()
VisRect
.public boolean isFullView()
public boolean isFullView1D()
public void reset()
public void checkRectPos()
public void checkRectSize()
public void checkPointInside(java.awt.Point p)