public class BasicStroke

  1. Object
  2. BasicStroke
A descriptor for the stroke style.

Fields

public static final BasicStroke SOLIDThe solid line style.
public static final BasicStroke DASHEDThe dashed line style.
public static final BasicStroke DOTTEDThe 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 SOLID
The solid line style.

DASHED

public static final BasicStroke DASHED
The dashed line style.

DOTTED

public static final BasicStroke DOTTED
The 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

cap int
the stroke cap
join int
the stroke join
miter float
the stroke miter
intervals float[]
the path effect intervals
phase float
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