Packagecom.yworks.bridge.geom
Classpublic class Rectangle2DDouble
InheritanceRectangle2DDouble Inheritance Rectangle2D Inheritance YObject Inheritance Object

The Double class defines a rectangle specified in double coordinates.



Public Properties
 PropertyDefined By
 Inheritedbounds : Rectangle
[read-only] Returns the bounding box of the Shape.
Rectangle2D
  bounds2D : Rectangle2D
[override] [read-only]
Rectangle2DDouble
 InheritedcenterX : Number
[read-only] Returns the X coordinate of the center of this rectangle in double precision.
Rectangle2D
 InheritedcenterY : Number
[read-only] Returns the Y coordinate of the center of this rectangle in double precision.
Rectangle2D
  empty : Boolean
[override] [read-only]
Rectangle2DDouble
 Inheritedframe : Rectangle2D
Getter: Returns the framing Rectangle2D that defines the overall shape of this object.
Rectangle2D
  _height : Number
Rectangle2DDouble
  height : Number
[override] [read-only]
Rectangle2DDouble
 InheritedmaxX : Number
[read-only] Returns the largest X coordinate of the upper left corner of this rectangle in double precision.
Rectangle2D
 InheritedmaxY : Number
[read-only] Returns the largest Y coordinate of the upper left corner of this rectangle in double precision.
Rectangle2D
 InheritedminX : Number
[read-only] Returns the smallest X coordinate of the upper left corner of this rectangle in double precision.
Rectangle2D
 InheritedminY : Number
[read-only] Returns the smallest Y coordinate of the upper left corner of this rectangle in double precision.
Rectangle2D
  rect : Rectangle2D
[override] [write-only]
Rectangle2DDouble
  _width : Number
Rectangle2DDouble
  width : Number
[override] [read-only]
Rectangle2DDouble
  _x : Number
Rectangle2DDouble
  x : Number
[override] [read-only]
Rectangle2DDouble
  _y : Number
Rectangle2DDouble
  y : Number
[override] [read-only]
Rectangle2DDouble
Public Methods
 MethodDefined By
  
Rectangle2DDouble(x:Number, y:Number, width:Number, height:Number, init:Boolean = true)
Constructs a new Rectangle2D whose top-left corner is specified as (x, y) and whose width and height are specified by the arguments of the same name.
Rectangle2DDouble
 Inherited
Adds the Point2D object p to this Rectangle2D.
Rectangle2D
 Inherited
addPoint2(x:Number, y:Number):void
Adds a point, specified by the double precision arguments px and py, to this Rectangle2D.
Rectangle2D
 Inherited
Adds a Rectangle2D object to this Rectangle2D.
Rectangle2D
  
clone():Object
[override]
Rectangle2DDouble
 Inherited
containsPoint2(x:Number, y:Number):Boolean
Tests if a specified coordinate is inside the boundary of this Rectangle2D.
Rectangle2D
 Inherited
Tests if the interior of this Rectangle2D entirely contains the specified Rectangle2D.
Rectangle2D
 Inherited
containsRectangle2(x:Number, y:Number, width:Number, height:Number):Boolean
Tests if the interior of this Rectangle2D entirely contains the specified set of rectangular coordinates.
Rectangle2D
  
[override]
Rectangle2DDouble
  
[override]
Rectangle2DDouble
 Inherited
equals(obj:Object):Boolean
[override] Checks whether two rectangles are equal.
Rectangle2D
  
getClass():Class
[override]
Rectangle2DDouble
 Inherited
hashCode():int
[override]
Rectangle2D
 Inherited
[static] Intersects the pair of specified source Rectangle2D objects and puts the result into the specified destination Rectangle2D object.
Rectangle2D
 Inherited
intersectsLine(x1:Number, y1:Number, x2:Number, y2:Number):Boolean
Tests if the specified line segment intersects the interior of this Rectangle2D.
Rectangle2D
 Inherited
Tests if the interior of this Rectangle2D intersects the specified Rectangle2D.
Rectangle2D
 Inherited
intersectsRectangle2(x:Number, y:Number, width:Number, height:Number):Boolean
Tests if the interior of this Rectangle2D intersects the interior of a specified set of rectangular coordinates.
Rectangle2D
  
[static] Constructs a new Rectangle2D whose top-left corner is at (0, 0) in the coordinate space, and whose width and height are both zero.
Rectangle2DDouble
  
newRectangle2DDouble2(x:Number, y:Number, width:Number, height:Number):Rectangle2DDouble
[static] Constructs a new Rectangle2D whose top-left corner is specified as (x, y) and whose width and height are specified by the arguments of the same name.
Rectangle2DDouble
 Inherited
Determines where the specified Point2D lies with respect to this Rectangle2D.
Rectangle2D
  
outcode2(px:Number, py:Number):int
[override]
Rectangle2DDouble
 Inherited
setFrame(x:Number, y:Number, width:Number, height:Number):void
Sets the location and size of the outer bounds of this Rectangle2D to the specified rectangular values.
Rectangle2D
 Inherited
setFrame2(loc:Point2D, size:Dimension):void
Rectangle2D
 Inherited
setFrameFromCenter(center:Point2D, corner:Point2D):void
Sets the framing rectangle of this Shape based on a specified center Point2D and corner Point2D.
Rectangle2D
 Inherited
setFrameFromCenter2(centerX:Number, centerY:Number, cornerX:Number, cornerY:Number):void
Sets the framing rectangle of this Shape based on the specified center point coordinates and corner point coordinates.
Rectangle2D
 Inherited
Sets the diagonal of the framing rectangle of this Shape based on the two specified coordinates.
Rectangle2D
 Inherited
setFrameFromDiagonal2(x1:Number, y1:Number, x2:Number, y2:Number):void
Sets the diagonal of the framing rectangle of this Shape based on the two specified coordinates.
Rectangle2D
  
setRect(x:Number, y:Number, width:Number, height:Number):void
[override]
Rectangle2DDouble
  
toString():String
Rectangle2DDouble
 Inherited
[static] Unions the pair of specified source Rectangle2D objects and puts the result into the specified destination Rectangle2D object.
Rectangle2D
Protected Methods
 MethodDefined By
  
cloneImpl(o:Object):void
[override]
Rectangle2DDouble
 Inherited
Rectangle2D
  
Initializes this object.
Rectangle2DDouble
  
initRectangle2DDouble2(x:Number, y:Number, width:Number, height:Number):void
Initializes this object.
Rectangle2DDouble
Public Constants
 ConstantDefined By
 InheritedOUT_BOTTOM : int = 8
[static] The bitmask that indicates that a point lies below this Rectangle2D.
Rectangle2D
 InheritedOUT_LEFT : int = 1
[static] The bitmask that indicates that a point lies to the left of this Rectangle2D.
Rectangle2D
 InheritedOUT_RIGHT : int = 4
[static] The bitmask that indicates that a point lies to the right of this Rectangle2D.
Rectangle2D
 InheritedOUT_TOP : int = 2
[static] The bitmask that indicates that a point lies above this Rectangle2D.
Rectangle2D
Property Detail
_heightproperty
public var _height:Number

_widthproperty 
public var _width:Number

_xproperty 
public var _x:Number

_yproperty 
public var _y:Number

bounds2Dproperty 
bounds2D:Rectangle2D  [read-only] [override]


Implementation
    public function get bounds2D():Rectangle2D
emptyproperty 
empty:Boolean  [read-only] [override]


Implementation
    public function get empty():Boolean
heightproperty 
height:Number  [read-only] [override]


Implementation
    public function get height():Number
rectproperty 
rect:Rectangle2D  [write-only] [override]


Implementation
    public function set rect(value:Rectangle2D):void
widthproperty 
width:Number  [read-only] [override]


Implementation
    public function get width():Number
xproperty 
x:Number  [read-only] [override]


Implementation
    public function get x():Number
yproperty 
y:Number  [read-only] [override]


Implementation
    public function get y():Number
Constructor Detail
Rectangle2DDouble()Constructor
public function Rectangle2DDouble(x:Number, y:Number, width:Number, height:Number, init:Boolean = true)

Constructs a new Rectangle2D whose top-left corner is specified as (x, y) and whose width and height are specified by the arguments of the same name.

Parameters
x:Number — the specified x coordinate.
 
y:Number — the specified y coordinate.
 
width:Number — the width of the Rectangle.
 
height:Number — the height of the Rectangle.
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
clone()method
override public function clone():Object

Returns
Object
cloneImpl()method 
override protected function cloneImpl(o:Object):void

Parameters

o:Object

createIntersection()method 
override public function createIntersection(r:Rectangle2D):Rectangle2D

Parameters

r:Rectangle2D

Returns
Rectangle2D
createUnion()method 
override public function createUnion(r:Rectangle2D):Rectangle2D

Parameters

r:Rectangle2D

Returns
Rectangle2D
getClass()method 
override public function getClass():Class

Returns
Class
initRectangle2DDouble1()method 
protected final function initRectangle2DDouble1():void

Initializes this object. See the documentation of the corresponding factory method newRectangle2DDouble1() for details.

See also

initRectangle2DDouble2()method 
protected final function initRectangle2DDouble2(x:Number, y:Number, width:Number, height:Number):void

Initializes this object. See the documentation of the corresponding factory method newRectangle2DDouble2() for details.

Parameters

x:Number
 
y:Number
 
width:Number
 
height:Number

See also

newRectangle2DDouble1()method 
public static function newRectangle2DDouble1():Rectangle2DDouble

Constructs a new Rectangle2D whose top-left corner is at (0, 0) in the coordinate space, and whose width and height are both zero.

Returns
Rectangle2DDouble
newRectangle2DDouble2()method 
public static function newRectangle2DDouble2(x:Number, y:Number, width:Number, height:Number):Rectangle2DDouble

Constructs a new Rectangle2D whose top-left corner is specified as (x, y) and whose width and height are specified by the arguments of the same name.

Parameters

x:Number — the specified x coordinate.
 
y:Number — the specified y coordinate.
 
width:Number — the width of the Rectangle.
 
height:Number — the height of the Rectangle.

Returns
Rectangle2DDouble
outcode2()method 
override public function outcode2(px:Number, py:Number):int

Parameters

px:Number
 
py:Number

Returns
int
setRect()method 
override public function setRect(x:Number, y:Number, width:Number, height:Number):void

Parameters

x:Number
 
y:Number
 
width:Number
 
height:Number

toString()method 
public function toString():String

Returns
String