|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object View android.TICO.Views.LineView
public class LineView
Implementation of a LineView
view.
Constructor Summary | |
---|---|
LineView(int startX,
int startY,
int stopX,
int stopY,
Context context)
Creates a new LineView for the specified params. |
|
LineView(int startCorner,
int left,
int top,
int right,
int bottom,
int border,
Context context)
Creates a new line for the specified params based on a rectangle diagonal. |
Method Summary | |
---|---|
void |
onDraw(Canvas canvas)
|
void |
setBorderWidth(int border)
Set the width for stroking. |
void |
setColor(int color)
Set de LineView color of the line. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineView(int startX, int startY, int stopX, int stopY, Context context)
LineView
for the specified params.
startX
- The starting coordinate in X of the linestartY
- The starting coordinate in Y of the linestopX
- The ending coordinate in X of the linestopY
- The ending coordinate in Y of the linecontext
- The Context the view is running in, through which it can access the current theme, resources, etc.public LineView(int startCorner, int left, int top, int right, int bottom, int border, Context context)
line
for the specified params based on a rectangle diagonal.
startCorner
- The starting corner of the rectangle for the diagonal.
0
for top left.
2
for top right.
5
for bottom left.
7
for bottom right.left
- The starting coordinate in X of the rectangle which contents the linetop
- The starting coordinate in Y of the rectangle which contents the lineright
- The ending coordinate in X of the rectangle which contents the linebottom
- The ending coordinate in Y of the rectangle which contents the lineborder
- set the LineView
's stroke width of the line.context
- 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)
LineView
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 line.public void setBorderWidth(int border)
border
- set the LineView
's stroke width of the line.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |