Class ImageDisplay.VisRect
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
java.awt.Rectangle
org.openstreetmap.josm.gui.layer.geoimage.ImageDisplay.VisRect
- All Implemented Interfaces:
Shape,Serializable,Cloneable
- Enclosing class:
- ImageDisplay
Manage the visible rectangle of an image with full bounds stored in init.
- Since:
- 13127
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
Rectangle2D.Double, Rectangle2D.Float -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Rectanglebooleanset when thisVisRectis updated by a mouse drag operation and unset on mouse releaseFields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP -
Constructor Summary
ConstructorsConstructorDescriptionVisRect()Constructs a new emptyVisRect.VisRect(int x, int y, int width, int height) Constructs a newVisRect.VisRect(int x, int y, int width, int height, ImageDisplay.VisRect peer) Constructs a newVisRect.Constructs a newVisRectfrom another one. -
Method Summary
Methods inherited from class java.awt.Rectangle
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, 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, unionMethods inherited from class java.awt.geom.Rectangle2D
add, add, add, contains, contains, getPathIterator, getPathIterator, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, unionMethods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.Shape
contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
-
Field Details
-
init
-
isDragUpdate
set when thisVisRectis updated by a mouse drag operation and unset on mouse release
-
-
Constructor Details
-
VisRect
Constructs a newVisRect.- Parameters:
x- the specified X coordinatey- the specified Y coordinatewidth- the width of the rectangleheight- the height of the rectangle
-
VisRect
Constructs a newVisRect.- Parameters:
x- the specified X coordinatey- the specified Y coordinatewidth- the width of the rectangleheight- the height of the rectanglepeer- share full bounds with this peerVisRect
-
VisRect
Constructs a newVisRectfrom another one.- Parameters:
v- rectangle to copy
-
VisRect
public VisRect()Constructs a new emptyVisRect.
-
-
Method Details
-
isFullView
-
isFullView1D
-
reset
-
checkRectPos
-
checkRectSize
-
checkPointInside
-
hashCode
- Overrides:
hashCodein classRectangle2D
-
equals
-