public final class

ColorProto.SweepGradient.Builder

extends <any>

implements ColorProto.SweepGradientOrBuilder

 java.lang.Object

↳<any>

↳androidx.wear.protolayout.proto.ColorProto.SweepGradient.Builder

Overview

 A sweep gradient with the given colors dispersed around its center with
 offsets defined in each color stop. The sweep begins at the parent's base
 angle plus the given angular shift and continues clockwise until it reaches
 the starting position again.

 The gradient center corresponds to center of the parent element.
 
Protobuf type androidx.wear.protolayout.proto.SweepGradient

Summary

Methods
public ColorProto.SweepGradient.BuilderaddAllColorStops(java.lang.Iterable<ColorProto.ColorStop> values)

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

public ColorProto.SweepGradient.BuilderaddColorStops(ColorProto.ColorStop.Builder builderForValue)

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

public ColorProto.SweepGradient.BuilderaddColorStops(ColorProto.ColorStop value)

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

public ColorProto.SweepGradient.BuilderaddColorStops(int index, ColorProto.ColorStop.Builder builderForValue)

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

public ColorProto.SweepGradient.BuilderaddColorStops(int index, ColorProto.ColorStop value)

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

public ColorProto.SweepGradient.BuilderclearColorStops()

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

public ColorProto.SweepGradient.BuilderclearEndAngle()

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

public ColorProto.SweepGradient.BuilderclearStartAngle()

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

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.

public ColorProto.SweepGradient.BuildermergeEndAngle(DimensionProto.DegreesProp value)

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

public ColorProto.SweepGradient.BuildermergeStartAngle(DimensionProto.DegreesProp value)

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

public ColorProto.SweepGradient.BuilderremoveColorStops(int index)

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

public ColorProto.SweepGradient.BuildersetColorStops(int index, ColorProto.ColorStop.Builder builderForValue)

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

public ColorProto.SweepGradient.BuildersetColorStops(int index, ColorProto.ColorStop value)

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

public ColorProto.SweepGradient.BuildersetEndAngle(DimensionProto.DegreesProp.Builder builderForValue)

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

public ColorProto.SweepGradient.BuildersetEndAngle(DimensionProto.DegreesProp value)

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

public ColorProto.SweepGradient.BuildersetStartAngle(DimensionProto.DegreesProp.Builder builderForValue)

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

public ColorProto.SweepGradient.BuildersetStartAngle(DimensionProto.DegreesProp value)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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 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 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 ColorProto.SweepGradient.Builder setColorStops(int index, ColorProto.ColorStop value)

 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.SweepGradient.Builder setColorStops(int index, ColorProto.ColorStop.Builder builderForValue)

 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;

 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.SweepGradient.Builder addColorStops(int index, ColorProto.ColorStop value)

 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;

 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.SweepGradient.Builder addColorStops(int index, ColorProto.ColorStop.Builder builderForValue)

 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.SweepGradient.Builder addAllColorStops(java.lang.Iterable<ColorProto.ColorStop> values)

 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.SweepGradient.Builder clearColorStops()

 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.SweepGradient.Builder removeColorStops(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 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;

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;

 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;

 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;

 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;

public ColorProto.SweepGradient.Builder clearStartAngle()

 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;

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;

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;

 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;

 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;

 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;

public ColorProto.SweepGradient.Builder clearEndAngle()

 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;