public interface

ColorProto.SweepGradientOrBuilder

 androidx.wear.protolayout.proto.ColorProto.SweepGradientOrBuilder

Subclasses:

ColorProto.SweepGradient, ColorProto.SweepGradient.Builder

Summary

Methods
public ColorProto.ColorStopgetColorStops(int index)

 The color stops defining how the colors are distributed around the gradient
 center.

public intgetColorStopsCount()

 The color stops defining how the colors are distributed around the gradient
 center.

public java.util.List<ColorProto.ColorStop>getColorStopsList()

 The color stops defining how the colors are distributed around the gradient
 center.

public DimensionProto.DegreesPropgetEndAngle()

 The end angle of the gradient, relative to the element's base angle.

public DimensionProto.DegreesPropgetStartAngle()

 The start angle of the gradient relative to the element's base angle.

public booleanhasEndAngle()

 The end angle of the gradient, relative to the element's base angle.

public booleanhasStartAngle()

 The start angle of the gradient relative to the element's base angle.

Methods

public java.util.List<ColorProto.ColorStop> getColorStopsList()

 The color stops defining how the colors are distributed around the gradient
 center. The color sequence starts at the start angle and spans 360
 degrees clockwise, finishing at the same angle.

 A color stop is a pair of a color and its offset in the gradient.
 The offset is the relative position of the color, beginning with 0 from the
 start angle and ending with 1.0 at the end angle, spanning clockwise.

 There must be at least 2 colors and at most 10 colors.

 If offset values are not set, the colors are evenly distributed in the
 gradient.
 
repeated .androidx.wear.protolayout.proto.ColorStop color_stops = 1;

public ColorProto.ColorStop getColorStops(int index)

 The color stops defining how the colors are distributed around the gradient
 center. The color sequence starts at the start angle and spans 360
 degrees clockwise, finishing at the same angle.

 A color stop is a pair of a color and its offset in the gradient.
 The offset is the relative position of the color, beginning with 0 from the
 start angle and ending with 1.0 at the end angle, spanning clockwise.

 There must be at least 2 colors and at most 10 colors.

 If offset values are not set, the colors are evenly distributed in the
 gradient.
 
repeated .androidx.wear.protolayout.proto.ColorStop color_stops = 1;

public int getColorStopsCount()

 The color stops defining how the colors are distributed around the gradient
 center. The color sequence starts at the start angle and spans 360
 degrees clockwise, finishing at the same angle.

 A color stop is a pair of a color and its offset in the gradient.
 The offset is the relative position of the color, beginning with 0 from the
 start angle and ending with 1.0 at the end angle, spanning clockwise.

 There must be at least 2 colors and at most 10 colors.

 If offset values are not set, the colors are evenly distributed in the
 gradient.
 
repeated .androidx.wear.protolayout.proto.ColorStop color_stops = 1;

public boolean hasStartAngle()

 The start angle of the gradient relative to the element's base angle. If
 not set, defaults to zero.

 For ArcLine, the base angle is the angle where the line starts. The value
 represents a relative position in the line's length span. Values greater
 than 360 degrees correspond to upper layers of the arc line as it wraps
 over itself.
 
.androidx.wear.protolayout.proto.DegreesProp start_angle = 2;

Returns:

Whether the startAngle field is set.

public DimensionProto.DegreesProp getStartAngle()

 The start angle of the gradient relative to the element's base angle. If
 not set, defaults to zero.

 For ArcLine, the base angle is the angle where the line starts. The value
 represents a relative position in the line's length span. Values greater
 than 360 degrees correspond to upper layers of the arc line as it wraps
 over itself.
 
.androidx.wear.protolayout.proto.DegreesProp start_angle = 2;

Returns:

The startAngle.

public boolean hasEndAngle()

 The end angle of the gradient, relative to the element's base angle. If not
 set, defaults to 360 degrees.

 For ArcLine, the base angle is the angle where the line starts. The value
 represents a relative position in the line's length span. Values greater
 than 360 degrees correspond to upper layers of the arc line as it wraps
 over itself.
 
.androidx.wear.protolayout.proto.DegreesProp end_angle = 3;

Returns:

Whether the endAngle field is set.

public DimensionProto.DegreesProp getEndAngle()

 The end angle of the gradient, relative to the element's base angle. If not
 set, defaults to 360 degrees.

 For ArcLine, the base angle is the angle where the line starts. The value
 represents a relative position in the line's length span. Values greater
 than 360 degrees correspond to upper layers of the arc line as it wraps
 over itself.
 
.androidx.wear.protolayout.proto.DegreesProp end_angle = 3;

Returns:

The endAngle.