接口 IGradientStops

所有超级接口:
Iterable<IGradientStop>

public interface IGradientStops extends Iterable<IGradientStop>
Represents a collection of IGradientStop objects.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    delete(int index)
    Removes a gradient stop.
    get(int index)
    Gets the IGradientStop object from the IGradientStopscollection.
    int
    Gets the number of items in the IGradientStops collection.
    void
    insert(int rgb, double position)
    Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.
    void
    insert(int rgb, double position, double transparency, int index, double brightness)
    Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.

    从接口继承的方法 java.lang.Iterable

    forEach, iterator, spliterator
  • 方法详细资料

    • getCount

      int getCount()
      Gets the number of items in the IGradientStops collection.
    • get

      IGradientStop get(int index)
      Gets the IGradientStop object from the IGradientStopscollection.
      参数:
      index - The name or index number of the returned object.
    • delete

      void delete(int index)
      Removes a gradient stop.
      参数:
      index - The index number of the gradient stop.
    • insert

      void insert(int rgb, double position)
      Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.
      参数:
      rgb - Specifies the color at the gradient stop.
      position - Specifies the position of the stop within the gradient expressedas a percent.
    • insert

      void insert(int rgb, double position, double transparency, int index, double brightness)
      Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.
      参数:
      rgb - Specifies the color at the gradient stop.
      position - Specifies the position of the stop within the gradient expressedas a percent.
      transparency - Specifies the opacity of color at the gradient stop.
      index - The index number of the stop.
      brightness - Specifies the brightness of the color at the gradient stop.