public class GridLinesLayer extends Object
Constructor and Description |
---|
GridLinesLayer()
Creates a new instance of the
GridLinesLayer class. |
Modifier and Type | Method and Description |
---|---|
void |
drawLine(float startX,
float startY,
float endX,
float endY,
Canvas canvas)
Used to render a single grid line on a given canvas.
|
void |
drawLine(float startX,
float startY,
float endX,
float endY,
Canvas canvas,
int alpha) |
int |
getColor()
Gets the color of the grid line.
|
Paint |
getPaint()
Gets the current paint used to render the grid lines.
|
float |
getWidth()
Gets the getWidth of the grid line.
|
void |
setColor(int color)
Sets the color of the grid line.
|
void |
setPaint(Paint paint)
Used to set the current paint used to render the grid lines.
|
void |
setWidth(float width)
Sets the getWidth of the grid line.
|
public GridLinesLayer()
GridLinesLayer
class.public Paint getPaint()
public void setPaint(Paint paint)
paint
- the new grid lines paint.public float getWidth()
public void setWidth(float width)
width
- the new grid line getWidth.public int getColor()
public void setColor(int color)
color
- the new grid line color.public void drawLine(float startX, float startY, float endX, float endY, Canvas canvas)
startX
- the start position for the line along the x axis.startY
- the start position for the line along the y axis.endX
- the end position for the line along the x axis.endY
- the end position for the line along the y axis.canvas
- the canvas onto which the line will be drawn.public void drawLine(float startX, float startY, float endX, float endY, Canvas canvas, int alpha)