java.awt

Class Rectangle

  • java.lang.Object
    • java.awt.geom.RectangularShape
      • java.awt.geom.Rectangle2D
        • java.awt.Rectangle
    • Nested Classes 
      Modifier and Type Class and Description
      Inherited member indicator awt.geom.Rectangle2D.Double Reveal DetailHide Detail
      The Double class defines a rectangle specified in double coordinates.
      Inherited member indicator awt.geom.Rectangle2D.Float Reveal DetailHide Detail
      The Float class defines a rectangle specified in float coordinates.
    • Fields 
      Modifier and Type Field and Description
      Ordinary member indicator height Reveal DetailHide Detail
      The height of the Rectangle.
      Inherited member indicator OUT_BOTTOM Reveal DetailHide Detail
      The bitmask that indicates that a point lies below this Rectangle2D.
      Inherited member indicator OUT_LEFT Reveal DetailHide Detail
      The bitmask that indicates that a point lies to the left of this Rectangle2D.
      Inherited member indicator OUT_RIGHT Reveal DetailHide Detail
      The bitmask that indicates that a point lies to the right of this Rectangle2D.
      Inherited member indicator OUT_TOP Reveal DetailHide Detail
      The bitmask that indicates that a point lies above this Rectangle2D.
      Ordinary member indicator width Reveal DetailHide Detail
      The width of the Rectangle.
      Ordinary member indicator x Reveal DetailHide Detail
      The X coordinate of the upper-left corner of the Rectangle.
      Ordinary member indicator y Reveal DetailHide Detail
      The Y coordinate of the upper-left corner of the Rectangle.
    • Static Methods 
      Modifier and Type Static Method and Description
      Inherited member indicator intersect Reveal DetailHide Detail
      Intersects the pair of specified source Rectangle2D objects and puts the result into the specified destination Rectangle2D object.
      Inherited member indicator union Reveal DetailHide Detail
      Unions the pair of source Rectangle2D objects and puts the result into the specified destination Rectangle2D object.
    • Constructors 
      Constructor and Description
      Ordinary member indicator Rectangle Reveal DetailHide Detail
      Constructs a new Rectangle whose upper-left corner is at (0, 0) in the coordinate space, and whose width and height are both zero.
      Ordinary member indicator Rectangle Reveal DetailHide Detail
      Constructs a new Rectangle whose top left corner is (0, 0) and whose width and height are specified by the Dimension argument.
      Ordinary member indicator Rectangle Reveal DetailHide Detail
      Constructs a new Rectangle whose upper-left corner is at (0, 0) in the coordinate space, and whose width and height are specified by the arguments of the same name.
      Ordinary member indicator Rectangle Reveal DetailHide Detail
      Constructs a new Rectangle whose upper-left corner is specified as (x,y) and whose width and height are specified by the arguments of the same name.
      Ordinary member indicator Rectangle Reveal DetailHide Detail
      Constructs a new Rectangle whose upper-left corner is the specified Point, and whose width and height are both zero.
      Ordinary member indicator Rectangle Reveal DetailHide Detail
      Constructs a new Rectangle whose upper-left corner is specified by the Point argument, and whose width and height are specified by the Dimension argument.
      Ordinary member indicator Rectangle Reveal DetailHide Detail
      Constructs a new Rectangle, initialized to match the values of the specified Rectangle.
    • Methods 
      Modifier and Type Method and Description
      Inherited member indicator add Reveal DetailHide Detail
      Adds a point, specified by the double precision arguments newx and newy, to this Rectangle2D.
      Ordinary member indicator add Reveal DetailHide Detail
      Adds a point, specified by the integer arguments newx,newy to the bounds of this Rectangle.
      Ordinary member indicator add Reveal DetailHide Detail
      Adds the specified Point to the bounds of this Rectangle.
      Inherited member indicator add Reveal DetailHide Detail
      Adds the Point2D object pt to this Rectangle2D.
      Ordinary member indicator add Reveal DetailHide Detail
      Adds a Rectangle to this Rectangle.
      Inherited member indicator add Reveal DetailHide Detail
      Adds a Rectangle2D object to this Rectangle2D.
      Inherited member indicator clone Reveal DetailHide Detail
      Creates a new object of the same class and with the same contents as this object.
      Inherited member indicator contains Reveal DetailHide Detail
      Tests if the specified coordinates are inside the boundary of the Shape, as described by the definition of insideness.
      Inherited member indicator contains Reveal DetailHide Detail
      Tests if the interior of the Shape entirely contains the specified rectangular area.
      Ordinary member indicator contains Reveal DetailHide Detail
      Checks whether or not this Rectangle contains the point at the specified location (x,y).
      Ordinary member indicator contains Reveal DetailHide Detail
      Checks whether this Rectangle entirely contains the Rectangle at the specified location (X,Y) with the specified dimensions (W,H).
      Ordinary member indicator contains Reveal DetailHide Detail
      Checks whether or not this Rectangle contains the specified Point.
      Inherited member indicator contains Reveal DetailHide Detail
      Tests if a specified Point2D is inside the boundary of the Shape, as described by the definition of insideness.
      Ordinary member indicator contains Reveal DetailHide Detail
      Checks whether or not this Rectangle entirely contains the specified Rectangle.
      Inherited member indicator contains Reveal DetailHide Detail
      Tests if the interior of the Shape entirely contains the specified Rectangle2D.
      Overridden member indicator createIntersection Reveal DetailHide Detail
      Returns a new Rectangle2D object representing the intersection of this Rectangle2D with the specified Rectangle2D.
      Overridden member indicator createUnion Reveal DetailHide Detail
      Returns a new Rectangle2D object representing the union of this Rectangle2D with the specified Rectangle2D.
      Overridden member indicator equals Reveal DetailHide Detail
      Checks whether two rectangles are equal.
      Overridden member indicator getBounds Reveal DetailHide Detail
      Gets the bounding Rectangle of this Rectangle.
      Overridden member indicator getBounds2D Reveal DetailHide Detail
      Returns a high precision and more accurate bounding box of the Shape than the getBounds method.
      Inherited member indicator getCenterX Reveal DetailHide Detail
      Returns the X coordinate of the center of the framing rectangle of the Shape in double precision.
      Inherited member indicator getCenterY Reveal DetailHide Detail
      Returns the Y coordinate of the center of the framing rectangle of the Shape in double precision.
      Inherited member indicator getFrame Reveal DetailHide Detail
      Returns the framing Rectangle2D that defines the overall shape of this object.
      Overridden member indicator getHeight Reveal DetailHide Detail
      Returns the height of the bounding Rectangle in double precision.
      Ordinary member indicator getLocation Reveal DetailHide Detail
      Returns the location of this Rectangle.
      Inherited member indicator getMaxX Reveal DetailHide Detail
      Returns the largest X coordinate of the framing rectangle of the Shape in double precision.
      Inherited member indicator getMaxY Reveal DetailHide Detail
      Returns the largest Y coordinate of the framing rectangle of the Shape in double precision.
      Inherited member indicator getMinX Reveal DetailHide Detail
      Returns the smallest X coordinate of the framing rectangle of the Shape in double precision.
      Inherited member indicator getMinY Reveal DetailHide Detail
      Returns the smallest Y coordinate of the framing rectangle of the Shape in double precision.
      Inherited member indicator getPathIterator Reveal DetailHide Detail
      Returns an iteration object that defines the boundary of this Rectangle2D.
      Inherited member indicator getPathIterator Reveal DetailHide Detail
      Returns an iteration object that defines the boundary of the flattened Rectangle2D.
      Ordinary member indicator getSize Reveal DetailHide Detail
      Gets the size of this Rectangle, represented by the returned Dimension.
      Overridden member indicator getWidth Reveal DetailHide Detail
      Returns the width of the bounding Rectangle in double precision.
      Overridden member indicator getX Reveal DetailHide Detail
      Returns the X coordinate of the bounding Rectangle in double precision.
      Overridden member indicator getY Reveal DetailHide Detail
      Returns the Y coordinate of the bounding Rectangle in double precision.
      Ordinary member indicator grow Reveal DetailHide Detail
      Resizes the Rectangle both horizontally and vertically.
      Inherited member indicator hashCode Reveal DetailHide Detail
      Returns the hashcode for this Rectangle2D.
      Ordinary member indicator inside Reveal DetailHide Detail
      Deprecated. As of JDK version 1.1, replaced by contains(int, int).
      Ordinary member indicator intersection Reveal DetailHide Detail
      Computes the intersection of this Rectangle with the specified Rectangle.
      Inherited member indicator intersects Reveal DetailHide Detail
      Tests if the interior of the Shape intersects the interior of a specified rectangular area.
      Ordinary member indicator intersects Reveal DetailHide Detail
      Determines whether or not this Rectangle and the specified Rectangle intersect.
      Inherited member indicator intersects Reveal DetailHide Detail
      Tests if the interior of the Shape intersects the interior of a specified Rectangle2D.
      Inherited member indicator intersectsLine Reveal DetailHide Detail
      Tests if the specified line segment intersects the interior of this Rectangle2D.
      Inherited member indicator intersectsLine Reveal DetailHide Detail
      Tests if the specified line segment intersects the interior of this Rectangle2D.
      Overridden member indicator isEmpty Reveal DetailHide Detail
      Determines whether the RectangularShape is empty.
      Ordinary member indicator move Reveal DetailHide Detail
      Deprecated. As of JDK version 1.1, replaced by setLocation(int, int).
      Overridden member indicator outcode Reveal DetailHide Detail
      Determines where the specified coordinates lie with respect to this Rectangle2D.
      Inherited member indicator outcode Reveal DetailHide Detail
      Determines where the specified Point2D lies with respect to this Rectangle2D.
      Ordinary member indicator reshape Reveal DetailHide Detail
      Deprecated. As of JDK version 1.1, replaced by setBounds(int, int, int, int).
      Ordinary member indicator resize Reveal DetailHide Detail
      Deprecated. As of JDK version 1.1, replaced by setSize(int, int).
      Ordinary member indicator setBounds Reveal DetailHide Detail
      Sets the bounding Rectangle of this Rectangle to the specified x, y, width, and height.
      Ordinary member indicator setBounds Reveal DetailHide Detail
      Sets the bounding Rectangle of this Rectangle to match the specified Rectangle.
      Inherited member indicator setFrame Reveal DetailHide Detail
      Sets the location and size of the outer bounds of this Rectangle2D to the specified rectangular values.
      Inherited member indicator setFrame Reveal DetailHide Detail
      Sets the location and size of the framing rectangle of this Shape to the specified Point2D and Dimension2D, respectively.
      Inherited member indicator setFrame Reveal DetailHide Detail
      Sets the framing rectangle of this Shape to be the specified Rectangle2D.
      Inherited member indicator setFrameFromCenter Reveal DetailHide Detail
      Sets the framing rectangle of this Shape based on the specified center point coordinates and corner point coordinates.
      Inherited member indicator setFrameFromCenter Reveal DetailHide Detail
      Sets the framing rectangle of this Shape based on a specified center Point2D and corner Point2D.
      Inherited member indicator setFrameFromDiagonal Reveal DetailHide Detail
      Sets the diagonal of the framing rectangle of this Shape based on the two specified coordinates.
      Inherited member indicator setFrameFromDiagonal Reveal DetailHide Detail
      Sets the diagonal of the framing rectangle of this Shape based on two specified Point2D objects.
      Ordinary member indicator setLocation Reveal DetailHide Detail
      Moves this Rectangle to the specified location.
      Ordinary member indicator setLocation Reveal DetailHide Detail
      Moves this Rectangle to the specified location.
      Overridden member indicator setRect Reveal DetailHide Detail
      Sets the bounds of this Rectangle to the integer bounds which encompass the specified x, y, width, and height.
      Inherited member indicator setRect Reveal DetailHide Detail
      Sets this Rectangle2D to be the same as the specified Rectangle2D.
      Ordinary member indicator setSize Reveal DetailHide Detail
      Sets the size of this Rectangle to match the specified Dimension.
      Ordinary member indicator setSize Reveal DetailHide Detail
      Sets the size of this Rectangle to the specified width and height.
      Overridden member indicator toString Reveal DetailHide Detail
      Returns a String representing this Rectangle and its values.
      Ordinary member indicator translate Reveal DetailHide Detail
      Translates this Rectangle the indicated distance, to the right along the X coordinate axis, and downward along the Y coordinate axis.
      Ordinary member indicator union Reveal DetailHide Detail
      Computes the union of this Rectangle with the specified Rectangle.
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge