Class ImageDisplay.VisRect

  • All Implemented Interfaces:
    java.awt.Shape, java.io.Serializable, java.lang.Cloneable
    Enclosing class:
    ImageDisplay

    public static class ImageDisplay.VisRect
    extends java.awt.Rectangle
    Manage the visible rectangle of an image with full bounds stored in init.
    Since:
    13127
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D

        java.awt.geom.Rectangle2D.Double, java.awt.geom.Rectangle2D.Float
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.awt.Rectangle init  
      boolean isDragUpdate
      set when this VisRect is updated by a mouse drag operation and unset on mouse release
      • Fields inherited from class java.awt.Rectangle

        height, width, x, y
      • Fields inherited from class java.awt.geom.Rectangle2D

        OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
    • Constructor Summary

      Constructors 
      Constructor Description
      VisRect()
      Constructs a new empty VisRect.
      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.
      VisRect​(ImageDisplay.VisRect v)
      Constructs a new VisRect from another one.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkPointInside​(java.awt.Point p)  
      void checkRectPos()  
      void checkRectSize()  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      boolean isFullView()  
      boolean isFullView1D()  
      void reset()  
      • 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, union
      • Methods inherited from class java.awt.geom.Rectangle2D

        add, add, add, contains, contains, getPathIterator, getPathIterator, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, union
      • Methods inherited from class java.awt.geom.RectangularShape

        clone, contains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.awt.Shape

        contains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersects
    • Field Detail

      • init

        private final java.awt.Rectangle init
      • isDragUpdate

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

      • 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

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

      • reset

        public void reset()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.awt.geom.Rectangle2D
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.awt.Rectangle