Class 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 the QuartetType 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 its QuartetType annotation so that your own class annotated with QuartetType is taken into account (your class must also be accessible via the ClassPathProvider for your customization to work).
    Author:
    ActiveViam
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.quartetfs.pivot.mdx.IDefaultCellPropertiesHandler

        com.quartetfs.pivot.mdx.IDefaultCellPropertiesHandler.IUserPresentationExpression
    • Field Summary

      • Fields inherited from class com.quartetfs.pivot.mdx.impl.DefaultCellPropertiesHandler

        STANDARD, TWENTY_FOUR, VERDANA, ZERO
    • 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
      • Methods inherited from class com.quartetfs.pivot.mdx.impl.ADefaultCellPropertiesHandler

        get, getFontFlagsHandler, getFontNameHandler, getFontSizeHandler, getForeColorHandler, getFormatHandler, getFormatStringHandler, getFormattedValueHandler, getOtherHandler
    • Constructor Detail

      • RiskAcceleratorDefaultCellPropertiesHandler

        public RiskAcceleratorDefaultCellPropertiesHandler()
    • 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 class com.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 class com.quartetfs.pivot.mdx.impl.ADefaultCellPropertiesHandler
      • getBackColorHandler

        protected com.quartetfs.pivot.mdx.IDefaultCellPropertiesHandler.IUserPresentationExpression getBackColorHandler()
        Overrides:
        getBackColorHandler in class com.quartetfs.pivot.mdx.impl.DefaultCellPropertiesHandler