A palette contains a set of properties, grouped by legends.
public DcGeneral\DataDefinition\Palette\PaletteInterface
DcGeneral\DataDefinition\Palette\PaletteInterface
setName( string $name )
Set the name of this palette.
string
public string
getName( )
Return the name of this palette.
public DcGeneral\DataDefinition\Palette\PropertyInterface[]
DcGeneral\DataDefinition\Palette\PropertyInterface[]
getProperties( DcGeneral\Data\ModelInterface $model = null, DcGeneral\Data\PropertyValueBag $input = null )
DcGeneral\Data\ModelInterface
DcGeneral\Data\PropertyValueBag
Get all properties from all legends in this palette.
DcGeneral\Data\ModelInterface|null
getVisibleProperties( DcGeneral\Data\ModelInterface $model = null, DcGeneral\Data\PropertyValueBag $input = null )
Get all properties from all legends in this palette that are visible.
getEditableProperties( DcGeneral\Data\ModelInterface $model = null, DcGeneral\Data\PropertyValueBag $input = null )
Get all properties from all legends in this palette that are editable.
clearLegends( )
Clear all legends from this palette.
setLegends( array $legends )
Set all legends to this palette.
array|DcGeneral\DataDefinition\Palette\LegendInterface[]
DcGeneral\DataDefinition\Palette\LegendInterface[]
addLegends( array $legends, DcGeneral\DataDefinition\Palette\LegendInterface $before = null )
DcGeneral\DataDefinition\Palette\LegendInterface
Add all legends to this palette.
public boolean
hasLegend( string $name )
Determine if a legend with the given name exists in this palette.
boolean
containsLegend( DcGeneral\DataDefinition\Palette\LegendInterface $legend )
Determine if a legend exists in this palette.
addLegend( DcGeneral\DataDefinition\Palette\LegendInterface $legend, DcGeneral\DataDefinition\Palette\LegendInterface $before = null )
Add a legend to this palette.
removeLegend( DcGeneral\DataDefinition\Palette\LegendInterface $legend )
Remove a legend from this palette.
public DcGeneral\DataDefinition\Palette\LegendInterface
getLegend( string $name )
Return the legend with the given name.
DcGeneral\Exception\DcGeneralRuntimeException
public array|DcGeneral\DataDefinition\Palette\LegendInterface[]
getLegends( )
Return the legends from this palette.
setCondition( DcGeneral\DataDefinition\Palette\Condition\Palette\PaletteConditionInterface $condition = null )
DcGeneral\DataDefinition\Palette\Condition\Palette\PaletteConditionInterface
Set the condition bound to this palette.
DcGeneral\DataDefinition\Palette\Condition\Palette\PaletteConditionInterface|null
public DcGeneral\DataDefinition\Palette\Condition\Palette\PaletteConditionInterface|null
getCondition( )
Get the condition bound to this palette.
public
__clone( )
Create a deep clone of the palette.