ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
PHPExcel_Worksheet_Drawing_Shadow Class Reference
+ Inheritance diagram for PHPExcel_Worksheet_Drawing_Shadow:
+ Collaboration diagram for PHPExcel_Worksheet_Drawing_Shadow:

Public Member Functions

 __construct ()
 Create a new PHPExcel_Worksheet_Drawing_Shadow.
 getVisible ()
 Get Visible.
 setVisible ($pValue=false)
 Set Visible.
 getBlurRadius ()
 Get Blur radius.
 setBlurRadius ($pValue=6)
 Set Blur radius.
 getDistance ()
 Get Shadow distance.
 setDistance ($pValue=2)
 Set Shadow distance.
 getDirection ()
 Get Shadow direction (in degrees)
 setDirection ($pValue=0)
 Set Shadow direction (in degrees)
 getAlignment ()
 Get Shadow alignment.
 setAlignment ($pValue=0)
 Set Shadow alignment.
 getColor ()
 Get Color.
 setColor (PHPExcel_Style_Color $pValue=null)
 Set Color.
 getAlpha ()
 Get Alpha.
 setAlpha ($pValue=0)
 Set Alpha.
 getHashCode ()
 Get hash code.
 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy.

Data Fields

const SHADOW_BOTTOM = 'b'
const SHADOW_BOTTOM_LEFT = 'bl'
const SHADOW_BOTTOM_RIGHT = 'br'
const SHADOW_CENTER = 'ctr'
const SHADOW_LEFT = 'l'
const SHADOW_TOP = 't'
const SHADOW_TOP_LEFT = 'tl'
const SHADOW_TOP_RIGHT = 'tr'

Private Attributes

 $_visible
 $_blurRadius
 $_distance
 $_direction
 $_alignment
 $_color
 $_alpha

Detailed Description

Definition at line 36 of file Shadow.php.

Constructor & Destructor Documentation

PHPExcel_Worksheet_Drawing_Shadow::__construct ( )

Create a new PHPExcel_Worksheet_Drawing_Shadow.

Definition at line 104 of file Shadow.php.

References PHPExcel_Style_Color\COLOR_BLACK, and SHADOW_BOTTOM_RIGHT.

{
// Initialise values
$this->_visible = false;
$this->_blurRadius = 6;
$this->_distance = 2;
$this->_direction = 0;
$this->_alpha = 50;
}

Member Function Documentation

PHPExcel_Worksheet_Drawing_Shadow::__clone ( )

Implement PHP __clone to create a deep clone, not just a shallow copy.

Definition at line 278 of file Shadow.php.

{
$vars = get_object_vars($this);
foreach ($vars as $key => $value) {
if (is_object($value)) {
$this->$key = clone $value;
} else {
$this->$key = $value;
}
}
}
PHPExcel_Worksheet_Drawing_Shadow::getAlignment ( )

Get Shadow alignment.

Returns
int

Definition at line 201 of file Shadow.php.

References $_alignment.

{
}
PHPExcel_Worksheet_Drawing_Shadow::getAlpha ( )

Get Alpha.

Returns
int

Definition at line 242 of file Shadow.php.

References $_alpha.

{
return $this->_alpha;
}
PHPExcel_Worksheet_Drawing_Shadow::getBlurRadius ( )

Get Blur radius.

Returns
int

Definition at line 141 of file Shadow.php.

References $_blurRadius.

{
}
PHPExcel_Worksheet_Drawing_Shadow::getColor ( )

Get Color.

Returns
PHPExcel_Style_Color

Definition at line 221 of file Shadow.php.

References $_color.

{
return $this->_color;
}
PHPExcel_Worksheet_Drawing_Shadow::getDirection ( )

Get Shadow direction (in degrees)

Returns
int

Definition at line 181 of file Shadow.php.

References $_direction.

{
}
PHPExcel_Worksheet_Drawing_Shadow::getDistance ( )

Get Shadow distance.

Returns
int

Definition at line 161 of file Shadow.php.

References $_distance.

{
}
PHPExcel_Worksheet_Drawing_Shadow::getHashCode ( )

Get hash code.

Returns
string Hash code

Implements PHPExcel_IComparable.

Definition at line 262 of file Shadow.php.

{
return md5(
($this->_visible ? 't' : 'f')
. $this->_blurRadius
. $this->_distance
. $this->_direction
. $this->_alignment
. $this->_color->getHashCode()
. $this->_alpha
. __CLASS__
);
}
PHPExcel_Worksheet_Drawing_Shadow::getVisible ( )

Get Visible.

Returns
boolean

Definition at line 121 of file Shadow.php.

References $_visible.

{
}
PHPExcel_Worksheet_Drawing_Shadow::setAlignment (   $pValue = 0)

Set Shadow alignment.

Parameters
int$pValue
Returns
PHPExcel_Worksheet_Drawing_Shadow

Definition at line 211 of file Shadow.php.

{
$this->_alignment = $pValue;
return $this;
}
PHPExcel_Worksheet_Drawing_Shadow::setAlpha (   $pValue = 0)

Set Alpha.

Parameters
int$pValue
Returns
PHPExcel_Worksheet_Drawing_Shadow

Definition at line 252 of file Shadow.php.

{
$this->_alpha = $pValue;
return $this;
}
PHPExcel_Worksheet_Drawing_Shadow::setBlurRadius (   $pValue = 6)

Set Blur radius.

Parameters
int$pValue
Returns
PHPExcel_Worksheet_Drawing_Shadow

Definition at line 151 of file Shadow.php.

{
$this->_blurRadius = $pValue;
return $this;
}
PHPExcel_Worksheet_Drawing_Shadow::setColor ( PHPExcel_Style_Color  $pValue = null)

Set Color.

Parameters
PHPExcel_Style_Color$pValue
Exceptions
Exception
Returns
PHPExcel_Worksheet_Drawing_Shadow

Definition at line 232 of file Shadow.php.

{
$this->_color = $pValue;
return $this;
}
PHPExcel_Worksheet_Drawing_Shadow::setDirection (   $pValue = 0)

Set Shadow direction (in degrees)

Parameters
int$pValue
Returns
PHPExcel_Worksheet_Drawing_Shadow

Definition at line 191 of file Shadow.php.

{
$this->_direction = $pValue;
return $this;
}
PHPExcel_Worksheet_Drawing_Shadow::setDistance (   $pValue = 2)

Set Shadow distance.

Parameters
int$pValue
Returns
PHPExcel_Worksheet_Drawing_Shadow

Definition at line 171 of file Shadow.php.

{
$this->_distance = $pValue;
return $this;
}
PHPExcel_Worksheet_Drawing_Shadow::setVisible (   $pValue = false)

Set Visible.

Parameters
boolean$pValue
Returns
PHPExcel_Worksheet_Drawing_Shadow

Definition at line 131 of file Shadow.php.

{
$this->_visible = $pValue;
return $this;
}

Field Documentation

PHPExcel_Worksheet_Drawing_Shadow::$_alignment
private

Definition at line 85 of file Shadow.php.

Referenced by getAlignment().

PHPExcel_Worksheet_Drawing_Shadow::$_alpha
private

Definition at line 99 of file Shadow.php.

Referenced by getAlpha().

PHPExcel_Worksheet_Drawing_Shadow::$_blurRadius
private

Definition at line 62 of file Shadow.php.

Referenced by getBlurRadius().

PHPExcel_Worksheet_Drawing_Shadow::$_color
private

Definition at line 92 of file Shadow.php.

Referenced by getColor().

PHPExcel_Worksheet_Drawing_Shadow::$_direction
private

Definition at line 78 of file Shadow.php.

Referenced by getDirection().

PHPExcel_Worksheet_Drawing_Shadow::$_distance
private

Definition at line 71 of file Shadow.php.

Referenced by getDistance().

PHPExcel_Worksheet_Drawing_Shadow::$_visible
private

Definition at line 53 of file Shadow.php.

Referenced by getVisible().

const PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM = 'b'

Definition at line 39 of file Shadow.php.

const PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_LEFT = 'bl'

Definition at line 40 of file Shadow.php.

const PHPExcel_Worksheet_Drawing_Shadow::SHADOW_BOTTOM_RIGHT = 'br'

Definition at line 41 of file Shadow.php.

Referenced by __construct().

const PHPExcel_Worksheet_Drawing_Shadow::SHADOW_CENTER = 'ctr'

Definition at line 42 of file Shadow.php.

const PHPExcel_Worksheet_Drawing_Shadow::SHADOW_LEFT = 'l'

Definition at line 43 of file Shadow.php.

const PHPExcel_Worksheet_Drawing_Shadow::SHADOW_TOP = 't'

Definition at line 44 of file Shadow.php.

const PHPExcel_Worksheet_Drawing_Shadow::SHADOW_TOP_LEFT = 'tl'

Definition at line 45 of file Shadow.php.

const PHPExcel_Worksheet_Drawing_Shadow::SHADOW_TOP_RIGHT = 'tr'

Definition at line 46 of file Shadow.php.


The documentation for this class was generated from the following file: