Class XpsGradientStop

  • All Implemented Interfaces:

    public final class XpsGradientStop
    extends XpsElement

    Class incapsulating GradientStop element features. This element is used by both the LinearGradientBrush and RadialGradientBrush elements to define the location and range of color progression for rendering a gradient.

    • Method Detail

      • getColor

        public XpsColor getColor()

        Returns the gradient stop color.

        The gradient stop color.
      • getOffset

        public float getOffset()

        Returns the gradient offset. The offset indicates a point along the progression of the gradient at which a color is specified. Colors between gradient offsets in the progression are interpolated.

        The gradient offset.
      • deepClone

        public XpsGradientStop deepClone()

        Clones this gradient stop.

        Clone of this gradient stop.
      • clonePropertyValues

        public void clonePropertyValues(XpsElement element)