public class BasicStroke extends Object
Modifier and Type | Field and Description |
---|---|
static BasicStroke |
DASHED
The dashed line style.
|
static BasicStroke |
DOTTED
The dot line style.
|
static BasicStroke |
SOLID
The solid line style.
|
Constructor and Description |
---|
BasicStroke(int cap,
int join,
float miter,
float[] intervals,
float phase)
Build a new basic stroke style.
|
Modifier and Type | Method and Description |
---|---|
int |
getCap()
Returns the stroke cap.
|
float[] |
getIntervals()
Returns the path effect intervals.
|
int |
getJoin()
Returns the stroke join.
|
float |
getMiter()
Returns the stroke miter.
|
float |
getPhase()
Returns the path effect phase.
|
public static final BasicStroke SOLID
public static final BasicStroke DASHED
public static final BasicStroke DOTTED
public BasicStroke(int cap, int join, float miter, float[] intervals, float phase)
cap
- the stroke capjoin
- the stroke joinmiter
- the stroke miterintervals
- the path effect intervalsphase
- the path effect phasepublic int getCap()
public int getJoin()
public float getMiter()
public float[] getIntervals()
public float getPhase()