public class BasicStroke
- Object
- BasicStroke
A descriptor for the stroke style.
Fields
public static final BasicStroke SOLID | The solid line style. |
public static final BasicStroke DASHED | The dashed line style. |
public static final BasicStroke DOTTED | The dot line style. |
Constructors
public BasicStroke(int cap, int join, float miter, float[] intervals, float phase) | Build a new basic stroke style. |
Methods
public int getCap() | Returns the stroke cap. |
public int getJoin() | Returns the stroke join. |
public float getMiter() | Returns the stroke miter. |
public float[] getIntervals() | Returns the path effect intervals. |
public float getPhase() | Returns the path effect phase. |
Inherited methods
Field details
SOLID
public static final BasicStroke SOLIDThe solid line style.
DASHED
public static final BasicStroke DASHEDThe dashed line style.
DOTTED
public static final BasicStroke DOTTEDThe dot line style.
Constructor details
BasicStroke
public BasicStroke(int cap, int join, float miter, float[] intervals, float phase)Build a new basic stroke style.
Parameters
capint- the stroke cap
joinint- the stroke join
miterfloat- the stroke miter
intervalsfloat[]- the path effect intervals
phasefloat- the path effect phase
Method details
getCap
public int getCap()Returns the stroke cap.
Returns
the stroke cap
getJoin
public int getJoin()Returns the stroke join.
Returns
the stroke join
getMiter
public float getMiter()Returns the stroke miter.
Returns
the stroke miter
getIntervals
public float[] getIntervals()Returns the path effect intervals.
Returns
the path effect intervals
getPhase
public float getPhase()Returns the path effect phase.
Returns
the path effect phase