|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.graphics.Stroke
yu.ac.bg.etf.javaqx.qswing.graphics.BasicStroke
Basic Stroke.
NOTE: This class is not compatible with java.awt.BasicStroke class!
Dash phase is not supported. The odd elements maps opaque pen.
Field Summary | |
static int |
CAP_BUTT
Flat line cap style. |
static int |
CAP_ROUND
Round line cap style. |
static int |
CAP_SQUARE
Square line cap style. |
static int |
JOIN_BEVEL
Bevel line join style. |
static int |
JOIN_MITER
Miter line join style. |
static int |
JOIN_ROUND
Round line join style. |
Constructor Summary | |
BasicStroke()
Constructs new BasicStroke stroke. |
|
BasicStroke(float width)
Constructs new BasicStroke stroke. |
|
BasicStroke(float width,
int cap,
int join)
Constructs new BasicStroke stroke. |
|
BasicStroke(float width,
int cap,
int join,
float miterLimit)
Constructs new BasicStroke stroke. |
|
BasicStroke(float width,
int cap,
int join,
float miterLimit,
float[] dash)
Constructs new BasicStroke stroke. |
|
BasicStroke(float width,
int cap,
int join,
float miterLimit,
float[] dash,
float dashPhase)
Constructs new BasicStroke stroke. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
float[] |
getDashArray()
Returns the dash array. |
float |
getDashPhase()
Returns the dash phase. |
int |
getEndCap()
Returns the end cap style. |
int |
getLineJoin()
Returns the line join style. |
float |
getLineWidth()
Returns line width. |
float |
getMiterLimit()
Returns the miter limit. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int JOIN_MITER
public static final int JOIN_ROUND
public static final int JOIN_BEVEL
public static final int CAP_BUTT
public static final int CAP_ROUND
public static final int CAP_SQUARE
Constructor Detail |
public BasicStroke(float width, int cap, int join, float miterLimit, float[] dash, float dashPhase)
width
- the stroke widthcap
- the line cap stylejoin
- the line join stylemiterLimit
- the miter limitdash
- the dash arraydashPhase
- the dash phasepublic BasicStroke(float width, int cap, int join, float miterLimit, float[] dash)
width
- the stroke widthcap
- the line cap stylejoin
- the line join stylemiterLimit
- the miter limitdash
- the dash arraypublic BasicStroke(float width, int cap, int join, float miterLimit)
width
- the stroke widthcap
- the line cap stylejoin
- the line join stylemiterLimit
- the miter limitpublic BasicStroke(float width, int cap, int join)
width
- the stroke widthcap
- the line cap stylejoin
- the line join stylepublic BasicStroke(float width)
width
- the stroke widthpublic BasicStroke()
Method Detail |
public float getLineWidth()
public int getEndCap()
public int getLineJoin()
public float getMiterLimit()
public float[] getDashArray()
public float getDashPhase()
public boolean equals(java.lang.Object obj)
public int hashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |