Documentation

ConditionalColorScale
in package

Table of Contents

Properties

$maximumColor  : Color|null
$maximumConditionalFormatValueObject  : ConditionalFormatValueObject|null
$maxValue  : float
$midpointColor  : Color|null
$midpointConditionalFormatValueObject  : ConditionalFormatValueObject|null
$midValue  : float
$minimumColor  : Color|null
$minimumConditionalFormatValueObject  : ConditionalFormatValueObject|null
$minValue  : float
$sqref  : string|null
$valueArray  : array<string|int, mixed>
$worksheet  : Worksheet|null

Methods

colorScaleReadyForUse()  : bool
Checks that all needed color scale data is in place.
getColorForValue()  : string
getMaximumColor()  : Color|null
getMaximumConditionalFormatValueObject()  : ConditionalFormatValueObject|null
getMidpointColor()  : Color|null
getMidpointConditionalFormatValueObject()  : ConditionalFormatValueObject|null
getMinimumColor()  : Color|null
getMinimumConditionalFormatValueObject()  : ConditionalFormatValueObject|null
getSqRef()  : string|null
prepareColorScale()  : self
Prepares color scale for execution, see the first if for variables that must be set beforehand.
setMaximumColor()  : self
setMaximumConditionalFormatValueObject()  : self
setMidpointColor()  : self
setMidpointConditionalFormatValueObject()  : self
setMinimumColor()  : self
setMinimumConditionalFormatValueObject()  : self
setScaleArray()  : self
setSqRef()  : self
getLimitValue()  : float

Properties

Methods

colorScaleReadyForUse()

Checks that all needed color scale data is in place.

public colorScaleReadyForUse() : bool
Return values
bool

getColorForValue()

public getColorForValue(float $value) : string
Parameters
$value : float
Return values
string

prepareColorScale()

Prepares color scale for execution, see the first if for variables that must be set beforehand.

public prepareColorScale() : self
Return values
self

getLimitValue()

private getLimitValue(string $type[, float $value = 0 ][, float $formula = 0 ]) : float
Parameters
$type : string
$value : float = 0
$formula : float = 0
Return values
float

        
On this page

Search results