Class AbstractColorGradientEditorTransform

    • Field Detail

      • _color1

        protected java.lang.String _color1
      • _color2

        protected java.lang.String _color2
      • _transitionType

        protected int _transitionType
      • _shadingStyle

        protected int _shadingStyle
      • _angle

        protected int _angle
      • _xOffset

        protected int _xOffset
      • _yOffset

        protected int _yOffset
      • _currentPreview

        protected int _currentPreview
      • colorPickerName

        public FormalParameter colorPickerName
        Indicates the id of a system picker that contains the possible color options
      • FP_COLOR_PICKER_NAME

        public static final java.lang.String FP_COLOR_PICKER_NAME
        Constant specifying the name of the formal parameter for defining the id of a system picker that contains the possible color options. Value is colorPickerName.
        See Also:
        Constant Field Values
      • PROPERTY_SHADING_STYLE

        protected static final java.lang.String PROPERTY_SHADING_STYLE
        See Also:
        Constant Field Values
      • PROPERTY_TRANSITION_TYPE

        protected static final java.lang.String PROPERTY_TRANSITION_TYPE
        See Also:
        Constant Field Values
      • PROPERTY_XOFFSET

        protected static final java.lang.String PROPERTY_XOFFSET
        See Also:
        Constant Field Values
      • PROPERTY_YOFFSET

        protected static final java.lang.String PROPERTY_YOFFSET
        See Also:
        Constant Field Values
      • SHADING_STYLE_HORIZONTAL

        protected static final java.lang.String SHADING_STYLE_HORIZONTAL
        See Also:
        Constant Field Values
      • SHADING_STYLE_VERTICAL

        protected static final java.lang.String SHADING_STYLE_VERTICAL
        See Also:
        Constant Field Values
      • SHADING_STYLE_DIAGONALUP

        protected static final java.lang.String SHADING_STYLE_DIAGONALUP
        See Also:
        Constant Field Values
      • SHADING_STYLE_DIAGONALDOWN

        protected static final java.lang.String SHADING_STYLE_DIAGONALDOWN
        See Also:
        Constant Field Values
      • SHADING_STYLE_FROMCORNER

        protected static final java.lang.String SHADING_STYLE_FROMCORNER
        See Also:
        Constant Field Values
      • SHADING_STYLE_FROMCENTER

        protected static final java.lang.String SHADING_STYLE_FROMCENTER
        See Also:
        Constant Field Values
      • SHADING_STYLE_CUSTOM

        protected static final java.lang.String SHADING_STYLE_CUSTOM
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractColorGradientEditorTransform

        public AbstractColorGradientEditorTransform()
    • Method Detail

      • setBoneProperties

        protected void setBoneProperties()
        This method sets the bone properties for the corresponding bone.
      • getDescription

        public java.lang.String getDescription()
        This method returns the description of the transform.
        Returns:
        The textual description of the transform.
      • renderSingleShadingStyle

        protected void renderSingleShadingStyle​(MarkupOutput out,
                                                java.lang.String label,
                                                java.lang.String value,
                                                boolean selected)
        This method renders a input radio button for a single shading style.
        Parameters:
        out - a MarkupOutput to which the HTML content is rendered to.
        label - a String representing the label of the shadding style.
        value - a String representing the value of the shadding style.
        selected - a boolean indicating whether the radio button is selected.
      • renderColorDropdown

        public void renderColorDropdown​(MarkupOutput out,
                                        java.lang.String cmdId,
                                        java.lang.String cmdValue,
                                        ShortcutList picker)
        This method renders dropdown for color selections.
        Parameters:
        out - a MarkupOutput object to which the HTML content is rendered.
        cmdId - a String representing the command ID of the dropdown.
        cmdValue - a String representing the command value of the dropdown.
        picker - a ShortcutList representing the list of color available for selection.
      • renderColorPicker

        protected void renderColorPicker​(MarkupOutput out)
        This method renders the HTML content of the color picker.
        Parameters:
        out - a MarkupOutput to which the content is renderd.
      • getColorPicker

        public ShortcutList getColorPicker()
        This method returns a ShortcutList representing the color picker.
        Returns:
        a ShortcutList of color picker.
      • renderCustomShadingSection

        protected void renderCustomShadingSection​(MarkupOutput out)
        This method renders the custom shading section.
        Parameters:
        out - a MarkupOutput to where the content is rendered.
      • renderVariantsSection

        protected void renderVariantsSection​(MarkupOutput out)
        This method renders the variants section.
        Parameters:
        out - a MarkupOutput to which the content is rendered.
      • getCurrentGradientValues

        protected abstract void getCurrentGradientValues()
      • renderShadingStylesSection

        protected abstract void renderShadingStylesSection​(MarkupOutput out)