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

public static class ImageDisplay.VisRect extends Rectangle
Manage the visible rectangle of an image with full bounds stored in init.
Since:
13127
See Also:
  • Field Details

    • init

      private final Rectangle init
    • isDragUpdate

      public boolean isDragUpdate
      set when this VisRect is updated by a mouse drag operation and unset on mouse release
  • Constructor Details

    • VisRect

      public VisRect(int x, int y, int width, int height)
      Constructs a new VisRect.
      Parameters:
      x - the specified X coordinate
      y - the specified Y coordinate
      width - the width of the rectangle
      height - the height of the rectangle
    • VisRect

      public VisRect(int x, int y, int width, int height, ImageDisplay.VisRect peer)
      Constructs a new VisRect.
      Parameters:
      x - the specified X coordinate
      y - the specified Y coordinate
      width - the width of the rectangle
      height - the height of the rectangle
      peer - share full bounds with this peer VisRect
    • VisRect

      Constructs a new VisRect from another one.
      Parameters:
      v - rectangle to copy
    • VisRect

      public VisRect()
      Constructs a new empty VisRect.
  • Method Details