85 $this->fillType = null;
92 $this->startColor->bindParent($this,
'startColor');
93 $this->endColor->bindParent($this,
'endColor');
105 return $this->
parent->getSharedComponent()->getFill();
117 return [
'fill' => $array];
144 if ($this->isSupervisor) {
147 if (isset($pStyles[
'fillType'])) {
150 if (isset($pStyles[
'rotation'])) {
153 if (isset($pStyles[
'startColor'])) {
154 $this->
getStartColor()->applyFromArray($pStyles[
'startColor']);
156 if (isset($pStyles[
'endColor'])) {
157 $this->
getEndColor()->applyFromArray($pStyles[
'endColor']);
159 if (isset($pStyles[
'color'])) {
161 $this->
getEndColor()->applyFromArray($pStyles[
'color']);
175 if ($this->isSupervisor) {
191 if ($this->isSupervisor) {
195 $this->fillType = $pValue;
208 if ($this->isSupervisor) {
224 if ($this->isSupervisor) {
228 $this->rotation = $pValue;
252 $color = $pValue->
getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
254 if ($this->isSupervisor) {
255 $styleArray = $this->
getStartColor()->getStyleArray([
'argb' => $color->getARGB()]);
258 $this->startColor = $color;
282 $color = $pValue->
getIsSupervisor() ? $pValue->getSharedComponent() : $pValue;
284 if ($this->isSupervisor) {
285 $styleArray = $this->
getEndColor()->getStyleArray([
'argb' => $color->getARGB()]);
288 $this->endColor = $color;
301 if ($this->isSupervisor) {
323 return $exportedArray;
setFillType($pValue)
Set Fill Type.
const FILL_PATTERN_GRAY125
const FILL_GRADIENT_LINEAR
setRotation($pValue)
Set Rotation.
const FILL_PATTERN_LIGHTTRELLIS
getStartColor()
Get Start Color.
const FILL_PATTERN_MEDIUMGRAY
const FILL_PATTERN_DARKUP
const FILL_PATTERN_LIGHTVERTICAL
const FILL_PATTERN_LIGHTDOWN
const FILL_PATTERN_DARKGRAY
const FILL_PATTERN_DARKVERTICAL
getFillType()
Get Fill Type.
getSelectedCells()
Get the currently active cell coordinate in currently active sheet.
const FILL_PATTERN_LIGHTGRID
applyFromArray(array $pStyles)
Apply styles from array.
setStartColor(Color $pValue)
Set Start Color.
const FILL_PATTERN_DARKTRELLIS
getHashCode()
Get hash code.
getStyleArray($array)
Build style array from subcomponents.
getIsSupervisor()
Is this a supervisor or a cell style component?
getActiveSheet()
Get the currently active sheet.
getRotation()
Get Rotation.
const FILL_PATTERN_GRAY0625
const FILL_PATTERN_DARKGRID
getEndColor()
Get End Color.
exportArray2(array &$exportedArray, string $index, $objOrValue)
Populate array from exportArray1.
const FILL_PATTERN_DARKHORIZONTAL
getSharedComponent()
Get the shared style component for the currently active cell in currently active sheet.
const FILL_PATTERN_LIGHTGRAY
const FILL_PATTERN_DARKDOWN
const FILL_PATTERN_LIGHTHORIZONTAL
const FILL_PATTERN_LIGHTUP
__construct($isSupervisor=false, $isConditional=false)
Create a new Fill.
setEndColor(Color $pValue)
Set End Color.