Class AbstractCustomizationControl<S extends ThemeSkin>

  • All Implemented Interfaces:
    ILightControl, com._1c.g5.v8.dt.form.internal.presentation.controls.base.IReadOnlyControl, com._1c.g5.v8.dt.form.internal.presentation.controls.IViewControl<S>

    public abstract class AbstractCustomizationControl<S extends ThemeSkin>
    extends com._1c.g5.v8.dt.form.internal.presentation.controls.AbstractViewControl<S>
    The control for elements that may have color or font customizations.
    • Constructor Detail

      • AbstractCustomizationControl

        public AbstractCustomizationControl()
    • Method Detail

      • getColor

        public org.eclipse.swt.graphics.Color getColor​(PresentationColor color)
        Gets SWT color alternative for PresentationColor
        Parameters:
        color - to get alternative for, can be null
        Returns:
        alternative Color, can be null
      • getColor

        protected org.eclipse.swt.graphics.Color getColor​(org.eclipse.swt.graphics.RGB color)
      • getFont

        protected org.eclipse.swt.graphics.Font getFont​(PresentationFont font)
      • getScaledFont

        protected org.eclipse.swt.graphics.Font getScaledFont​(PresentationFont font)