TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Class: Rectangle

Source Location: /Rectangle.php

Class Overview


Rectangle class


Author(s):

  • Steema Software SL.

Version:

  • 1.0

Copyright:

  • (c) 1995-2013 by Steema Software SL. All Rights Reserved. <info@steema.com>

Variables

Methods


Child classes:

Square
Square class

Class Details

[line 23]
Rectangle class

Description: Class to create the Rectangle object




Tags:

author:  Steema Software SL.
version:  1.0
copyright:  (c) 1995-2013 by Steema Software SL. All Rights Reserved. <info@steema.com>
link:  http://www.steema.com


[ Top ]


Class Variables

$height =

[line 26]



Tags:

access:  public

Type:   mixed


[ Top ]

$width =

[line 27]



Tags:

access:  public

Type:   mixed


[ Top ]

$x =

[line 28]



Tags:

access:  public

Type:   mixed


[ Top ]

$y =

[line 29]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


static method fromLTRB [line 141]

static void fromLTRB( $x, $y, $right, $bottom)



Tags:

access:  public


Parameters:

   $x  
   $y  
   $right  
   $bottom  

[ Top ]

static method __intersect [line 229]

static void __intersect( $src1, $src2, $dest)



Tags:

access:  public


Parameters:

   $src1  
   $src2  
   $dest  

[ Top ]

constructor Rectangle [line 46]

Rectangle Rectangle( [ $x = 0], [ $y = 0], [ $width = 0.0], [ $height = 0.0])



Parameters:

   $x  
   $y  
   $width  
   $height  

[ Top ]

destructor __destruct [line 56]

void __destruct( )



Tags:

access:  public


[ Top ]

method center [line 301]

void center( )



Tags:

access:  public


[ Top ]

method copy [line 131]

void copy( )



Tags:

access:  public


[ Top ]

method getArea [line 136]

void getArea( )



Tags:

access:  public


Overridden in child classes as:

Square::getArea()

[ Top ]

method getBottom [line 161]

int getBottom( )

Gets rectangle Bottom coordinate.



Tags:

access:  public


[ Top ]

method getCenterX [line 102]

void getCenterX( )



[ Top ]

method getCenterY [line 107]

void getCenterY( )



[ Top ]

method getHeight [line 291]

void getHeight( )



Tags:

access:  public


[ Top ]

method getLeft [line 171]

int getLeft( )

Gets rectangle Left coordinate.



Tags:

access:  public


[ Top ]

method getLocation [line 314]

the getLocation( )

Returns the location of this
.

This method is included for completeness, to parallel the

method of
  1. Component
.




Tags:

return:  
  1. Point
that is the top-left corner of this
.
access:  public


[ Top ]

method getRight [line 151]

int getRight( )

Gets rectangle Right coordinate.



Tags:

access:  public


[ Top ]

method getTop [line 200]

int getTop( )

Gets rectangle Top coordinate.



Tags:

access:  public


[ Top ]

method getWidth [line 281]

void getWidth( )



Tags:

access:  public


[ Top ]

method getX [line 112]

void getX( )



[ Top ]

method getY [line 117]

void getY( )



[ Top ]

method grow [line 379]

void grow( h $h, v $v)

Resizes the
both horizontally and vertically.

This method modifies the

so that it is
  1. h
units larger on both the left and right side, and
  1. v
units larger at both the top and bottom.

The new

has (
  1. x&nbsp;-&nbsp;h
,
  1. y&nbsp;-&nbsp;v
) as its top-left corner, a width of
&nbsp;
  1. +
&nbsp;
  1. 2h
, and a height of
&nbsp;
  1. +
&nbsp;
  1. 2v
.

If negative values are supplied for

  1. h
and
  1. v
, the size of the
decreases accordingly. The
method does not check whether the resulting values of
and
are non-negative.




Tags:

access:  public


Parameters:

h   $h   the horizontal expansion
v   $v   the vertical expansion

[ Top ]

method inflate [line 344]

void inflate( $horizontal, $vertical)



Tags:

access:  public


Parameters:

   $horizontal  
   $vertical  

[ Top ]

method intersect [line 224]

void intersect( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method intersects [line 248]

true intersects( r $r)

Determines whether or not this
and the specified
intersect. Two rectangles intersect if their intersection is nonempty.



Tags:

return:  if the specified
and this
intersect;
  1. false
otherwise.
access:  public


Parameters:

r   $r   the specified

[ Top ]

method isEmpty [line 339]

true isEmpty( )

Determines whether or not this
is empty. A
is empty if its width or its height is less than or equal to zero.



Tags:

return:  if this
is empty;
  1. false
otherwise.
access:  public


[ Top ]

method offset [line 350]

void offset( $w, $h)



Tags:

access:  public


Parameters:

   $w  
   $h  

[ Top ]

method setBottom [line 219]

void setBottom( $value)

Sets rectangle Bottom coordinate.



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setBounds [line 74]

void setBounds( $x, $y, $width, $height)



Parameters:

   $x  
   $y  
   $width  
   $height  

[ Top ]

method setFrame [line 273]

void setFrame( $x, $y, $w, $h)



Tags:

access:  public


Parameters:

   $x  
   $y  
   $w  
   $h  

[ Top ]

method setHeight [line 296]

void setHeight( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setLeft [line 180]

void setLeft( $value)

Sets rectangle Left coordinate.



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setLocation [line 80]

void setLocation( $x, $y)



Parameters:

   $x  
   $y  

[ Top ]

method setRectangle [line 64]

void setRectangle( &$rect)



Parameters:

   &$rect  

[ Top ]

method setRight [line 190]

void setRight( $value)

Sets rectangle Right coordinate.



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setSize [line 86]

void setSize( $w, $h)



Parameters:

   $w  
   $h  

[ Top ]

method setTop [line 209]

void setTop( $value)

Sets rectangle Top coordinate.



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setWidth [line 286]

void setWidth( $value)



Tags:

access:  public


Parameters:

   $value  

[ Top ]

method setX [line 92]

void setX( $x)



Parameters:

   $x  

[ Top ]

method setY [line 97]

void setY( $y)



Parameters:

   $y  

[ Top ]

method toString [line 122]

void toString( )



[ Top ]

method _setLocation [line 327]

void _setLocation( p $p)

Moves this
to the specified location.

This method is included for completeness, to parallel the

method of
  1. Component
.




Tags:

access:  public


Parameters:

p   $p   the
  1. Point
specifying the new location for this

[ Top ]

method __get [line 32]

void __get( $property)



Parameters:

   $property  

[ Top ]

method __set [line 39]

void __set( $property, $value)



Parameters:

   $property  
   $value  

[ Top ]


Documentation generated on Mon, 19 Aug 2013 13:42:58 +0200 by phpDocumentor 1.4.3