public final class SectionModel
extends java.lang.Object
SectionBar
.Modifier and Type | Class and Description |
---|---|
static class |
SectionModel.Bounds
A class that defines upper and lower bounds.
|
Constructor and Description |
---|
SectionModel()
Constructs a new instance using default bounds.
|
Modifier and Type | Method and Description |
---|---|
SectionModel.Bounds |
getBounds()
Gets the bounds of this model.
|
int |
getColor()
Gets the color of this model.
|
android.graphics.drawable.Drawable |
getDrawable()
Gets the drawable of this model.
|
SectionModel |
setBounds(SectionModel.Bounds bounds)
Sets the bounds of this model.
|
SectionModel |
setColor(int color)
Sets the color of this model.
|
SectionModel |
setDrawable(android.graphics.drawable.Drawable drawable)
Sets the drawable to be used for this model.
|
public SectionModel()
public SectionModel.Bounds getBounds()
public SectionModel setBounds(SectionModel.Bounds bounds)
SectionBar
to define the
allowed range of the scale factor. By default, the scale factor represents a normalized value between
[0, 1], whereas 0 would lead to a width of 0 and 1 would lead to an unscaled width. Be careful when exceeding
these thresholds.bounds
- the bounds to use for this model.public android.graphics.drawable.Drawable getDrawable()
public SectionModel setDrawable(android.graphics.drawable.Drawable drawable)
drawable
- the drawable to use.public int getColor()
public SectionModel setColor(int color)
color
- the color to use for this model.