Class PenStyle
Defines a base class for specifying of 2D line style used to draw lines on the IRenderSurface
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class PenStyle extends Style
Constructors
PenStyle(boolean antiAliasing, float thickness, float[] strokeDashArray)
Creates a new PenStyle instance
Declaration
protected PenStyle(boolean antiAliasing, float thickness, float[] strokeDashArray)
Parameters
Type | Name | Description |
---|---|---|
boolean | antiAliasing | The value indicating whether the pen should use antialiasing or no |
float | thickness | The stroke thickness in pixels |
float[] | strokeDashArray | The stroke dash pattern |
Fields
antiAliasing
Declaration
public final boolean antiAliasing
Field Value
Type | Description |
---|---|
boolean |
strokeDashArray
Declaration
public final float[] strokeDashArray
Field Value
Type | Description |
---|---|
float[] |
thickness
Declaration
public final float thickness
Field Value
Type | Description |
---|---|
float |
Methods
equals(Object o)
Declaration
public boolean equals(Object o)
Parameters
Type | Name | Description |
---|---|---|
Object | o |
Returns
Type | Description |
---|---|
boolean |
Overrides
getColor()
Gets the color for this PenStyle
Declaration
public abstract int getColor()
Returns
Type | Description |
---|---|
int | The color for this PenStyle |
hashCode()
Declaration
public int hashCode()
Returns
Type | Description |
---|---|
int |
Overrides
initPaint(Paint paint)
Initialises Paint with this pen style
Declaration
public final void initPaint(Paint paint)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.Paint | paint | The Paint to init |
initPaint(Paint paint, float opacity)
Initialises Paint with this pen style and opacity
Declaration
public final void initPaint(Paint paint, float opacity)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.Paint | paint | The Paint to init |
float | opacity | Opacity to use |
isVisible()
Gets whether this style is visible
Declaration
public boolean isVisible()
Returns
Type | Description |
---|---|
boolean |