View RSS Feed

Java AWT

Java Abstract Window Toolkit (AWT)

  1. Drawing a Rectangle

    by , 03-06-2012 at 07:51 PM
    RectangularShape class implements the shape interface, in which few more methods are added of its own.
    Such methods are used to find out certain information regarding the size and location of shape so that to find out the rectangle’s center point and to set the shape’s bounds.

    Dimension w,x,h and location x,y defines a rectangle. These given methods specify rectangle in float or double precision.

    1. Rectangle2D.Double
    2. Rectangle2D.Float


    Creation ...
    Categories
    Graphics