All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class framework.awt.Rectangle

java.lang.Object
   |
   +----java.awt.Rectangle
           |
           +----framework.awt.Rectangle

public class Rectangle
extends Rectangle
A java.awt.Rectangle extended with a constructor that takes a descriptive string as its argument. The descriptive string consists of zero or more dimension type-value pairs. Each pair consists of a single character specifying the dimension (`x' for the x-coordinate, `y' for the y-coordinate, `w' for the witdh and `h' for the height of the Rectangle) and an integer number specifying the value. In addition to the normal whitespace characters, `,' is also a whitespace character. The characters specifying the dimension can be lower or upper case.

Version:
$Revision: 1.1 $
See Also:
Rectangle

Constructor Index

 o Rectangle(Rectangle)
 o Rectangle(String, Rectangle)
Create a Rectangle whose dimensions are specified by a descriptive string.

Method Index

 o getDescriptiveString()

Constructors

 o Rectangle
 public Rectangle(String description,
                  Rectangle defaultValue)
Create a Rectangle whose dimensions are specified by a descriptive string. If the parsing of the descriptive string fails, create a Rectangle with specified default bounds. Dimensions not specified in the descriptive string are also taken from the default Rectangle.

Parameters:
description - the String describing the bounds of the Rectangle to create. This parameter may be null in which case a Rectangle with the default bounds is created.
defaultValue - a Rectangle containing the default bounds.
 o Rectangle
 public Rectangle(Rectangle r)

Methods

 o getDescriptiveString
 public String getDescriptiveString()
Returns:
a String that describes the Rectangle in the way that is expected by the Rectangle(String, Rectangle) constructor.

All Packages  Class Hierarchy  This Package  Previous  Next  Index