Class RiskAcceleratorDefaultCellPropertiesHandler
- java.lang.Object
-
- com.quartetfs.pivot.mdx.impl.ADefaultCellPropertiesHandler
-
- com.quartetfs.pivot.mdx.impl.DefaultCellPropertiesHandler
-
- com.activeviam.risk.ref.properties.RiskAcceleratorDefaultCellPropertiesHandler
-
- All Implemented Interfaces:
com.quartetfs.pivot.mdx.IDefaultCellPropertiesHandler
@QuartetType(description="Sets the fore color of negative numeric value to red", intf=com.quartetfs.pivot.mdx.IDefaultCellPropertiesHandler.class) public class RiskAcceleratorDefaultCellPropertiesHandler extends com.quartetfs.pivot.mdx.impl.DefaultCellPropertiesHandler
A customized cell properties handler that returns a red fore color when values are negative numbers. This class is annotated with theQuartetType
annotation, which makes it the one that is picked by the registry. If you want to create your own customized cell properties handler, make sure that you remove this class or at least itsQuartetType
annotation so that your own class annotated withQuartetType
is taken into account (your class must also be accessible via the ClassPathProvider for your customization to work).- Author:
- ActiveViam
-
-
Constructor Summary
Constructors Constructor Description RiskAcceleratorDefaultCellPropertiesHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Integer
getBackColor(Object cellValue)
The back color is pale yellow if the value is adjusted, unspecified otherwise (e.g.protected com.quartetfs.pivot.mdx.IDefaultCellPropertiesHandler.IUserPresentationExpression
getBackColorHandler()
protected Integer
getForeColor(Object cellValue)
The fore color is red if the value is negative, unspecified otherwise (e.g.-
Methods inherited from class com.quartetfs.pivot.mdx.impl.DefaultCellPropertiesHandler
getFontFlags, getFontName, getFontSize, getFormat, getFormatString, getFormattedValue
-
-
-
-
Method Detail
-
getForeColor
protected Integer getForeColor(Object cellValue)
The fore color is red if the value is negative, unspecified otherwise (e.g. the GUI can choose its preferred color based on its theme).- Overrides:
getForeColor
in classcom.quartetfs.pivot.mdx.impl.ADefaultCellPropertiesHandler
-
getBackColor
protected Integer getBackColor(Object cellValue)
The back color is pale yellow if the value is adjusted, unspecified otherwise (e.g. the GUI can choose its preferred color based on its theme).- Overrides:
getBackColor
in classcom.quartetfs.pivot.mdx.impl.ADefaultCellPropertiesHandler
-
getBackColorHandler
protected com.quartetfs.pivot.mdx.IDefaultCellPropertiesHandler.IUserPresentationExpression getBackColorHandler()
- Overrides:
getBackColorHandler
in classcom.quartetfs.pivot.mdx.impl.DefaultCellPropertiesHandler
-
-