Class org.aswing.geom.Rectangle

Description

A Rectangle with x, y coordinats and with, height ranges.

Field Index

height, width, x, y

Method Index

new Rectangle()
containsPoint(), equals(), getLocation(), getSize(), leftBottom(), leftTop(), rightBottom(), rightTop(), setLocation(), setRect(), setSize(), toString(), union()

Constructor Detail

Rectangle

public function Rectangle(x, y:Number, width:Number, height:Number)


Rectangle(x:Number, y:Number, width:Number, height:Number)
Rectangle(rect:Rectangle)

Field Detail

x

public x:Number

y

public y:Number

width

public width:Number

height

public height:Number

Method Detail

setRect

public function setRect(x, y:Number, width:Number, height:Number):Void


setRect(x:Number, y:Number, width:Number, height:Number)
setRect(rect:Rectangle)

setLocation

public function setLocation(x, y:Number):Void


setLocation(x:Number, y:Number)
setLocation(p:Point)

setSize

public function setSize(width, height:Number):Void


setSize(width:Number, height:Number)
setSize(dim:Dimension)

getSize

public function getSize():Dimension

getLocation

public function getLocation():Point

union

public function union(r:Rectangle):Rectangle

Computes the union of this Rectangle with the specified Rectangle. Returns a new Rectangle that represents the union of the two rectangles

Parameters

rthe specified Rectangle

Return

the smallest Rectangle containing both the specified Rectangle and this Rectangle.

leftTop

public function leftTop():Point

rightTop

public function rightTop():Point

leftBottom

public function leftBottom():Point

rightBottom

public function rightBottom():Point

containsPoint

public function containsPoint(p:Point):Boolean

equals

public function equals(o:Object):Boolean

toString

public function toString():String