|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.BasicStroke
Field Summary | |
static int | CAP_BUTT
End unclosed subpaths and dash segments with no added decoration. |
static int | CAP_ROUND
End unclosed subpaths and dash segments with a round decoration with radius equal to half of the line width. |
static int | CAP_SQUARE
End unclosed subpaths and dash segments with a square projection that extends beyond the end of the segment to a distance equal to half of the line width. |
static int | JOIN_BEVEL
Join line segments by connecting the outer corners of their wide outlines with a straight segment. |
static int | JOIN_MITER
Join line segments by extending their outside edges until they meet. |
static int | JOIN_ROUND
Join line segments by rounding off the corner at a radius of half the line width. |
Constructor Summary | |
BasicStroke()
Construct a new stroke with defaults for all attributes. |
|
BasicStroke(float width,
int cap,
int join,
float miterlimit,
float[] dash,
float dash_phase)
Construct a new stroke with the specified attributes. |
|
BasicStroke(float width,
int cap,
int join,
float miterlimit)
Construct a new stroke with the specified attributes, but no dashing. |
|
BasicStroke(float width,
int cap,
int join)
Construct a new stroke with the specified attributes, but no dashing. |
|
BasicStroke(float width)
Construct a new stroke with the specified line width, and with default values for the cap and join styles and no dashing. |
Method Summary | |
Shape | createStrokedShape(Shape s)
Returns a shape whose interior defines the stroked outline of a given shape. |
boolean | equals(Object obj)
|
float[] | getDashArray()
Return the array representing the lengths of the dash segments. |
float | getDashPhase()
Returns the dash phase. |
int | getEndCap()
Returns the end cap style. |
int | getLineJoin()
Returns the line join style. |
float | getLineWidth()
Returns the line width. |
float | getMiterLimit()
Returns the limit of miter joins. |
Methods inherited from class java.lang.Object | |
clone , finalize , getClass , hashCode , 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 dash_phase)
width
- The width of the stroke.
cap
- The style of the ends of a stroke.
join
- The style to join strokes together.
miterlimit
- The limit to trim the miter join.
dash
- The array representing the dashing pattern.
dash_phase
- The offset to start the dashing pattern.public BasicStroke(float width, int cap, int join, float miterlimit)
width
- The width of the stroke.
cap
- The style of the ends of a stroke.
join
- The style to join strokes together.
miterlimit
- The limit to trim the miter join.public BasicStroke(float width, int cap, int join)
width
- The width of the stroke.
cap
- The style of the ends of a stroke.
join
- The style to join strokes together.public BasicStroke(float width)
width
- The width of the stroke.public BasicStroke()
Method Detail |
public Shape createStrokedShape(Shape s)
s
- The shape whose boundary should be stroked.Stroke.createStrokedShape(java.awt.Shape)
public float getLineWidth()
public int getEndCap()
public int getLineJoin()
public float getMiterLimit()
public float[] getDashArray()
public float getDashPhase()
public boolean equals(Object obj)
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |