|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object View android.TICO.Views.RoundRectView
public class RoundRectView
Implementation of a RoundRectView
view.
Constructor Summary | |
---|---|
RoundRectView(int startX,
int startY,
int stopX,
int stopY,
Context context)
Creates a new RoundRectView for the specified params. |
Method Summary | |
---|---|
void |
onDraw(Canvas canvas)
|
void |
setBackgroundColor(int color)
Set the RoundRectView color of the rectangle interior. |
void |
setBackgroundDrawable(GradientDrawable colorIn)
Set the background frame gradient color for the RoundRectView |
void |
setBorderWidth(int border)
Set the width for stroking. |
void |
setColor(int color)
Set the RoundRectView color of the line. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoundRectView(int startX, int startY, int stopX, int stopY, Context context)
RoundRectView
for the specified params.
startX
- The starting coordinate in X of the rectanglestartY
- The starting coordinate in Y of the rectanglestopX
- The ending coordinate in X of the rectanglestopY
- The ending coordinate in Y of the rectanglecontext
- The Context the view is running in, through which it can access the current theme, resources, etc.Method Detail |
---|
public void onDraw(Canvas canvas)
public void setColor(int color)
RoundRectView
color of the line. Note that the color is an int containing alpha as well as r,g,b.
This 32bit value is not premultiplied, meaning that its alpha can be any value, regardless of the values of r,g,b.
See the Color class for more details.
color
- The new color (including alpha) to set as color of the round rectangle line.public void setBorderWidth(int border)
border
- set the RoundRectView
's stroke width of the line.public void setBackgroundColor(int color)
RoundRectView
color of the rectangle interior. Note that the color is an int containing alpha as well as r,g,b.
This 32bit value is not premultiplied, meaning that its alpha can be any value, regardless of the values of r,g,b.
See the Color class for more details.
color
- The new color (including alpha) to set as color of the rectangle interior.public void setBackgroundDrawable(GradientDrawable colorIn)
RoundRectView
colorIn
- The gradient color
of the RoundRectView background
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |