Example usage for Java java.awt BasicStroke fields, constructors, methods, implement or subclass
The text is from its open source code.
int | JOIN_MITER Joins path segments by extending their outside edges until they meet. |
int | JOIN_ROUND Joins path segments by rounding off the corner at a radius of half the line width. |
int | JOIN_BEVEL Joins path segments by connecting the outer corners of their wide outlines with a straight segment. |
int | CAP_BUTT Ends unclosed subpaths and dash segments with no added decoration. |
int | CAP_ROUND Ends unclosed subpaths and dash segments with a round decoration that has a radius equal to half of the width of the pen. |
int | CAP_SQUARE Ends 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. |
BasicStroke(float width, int cap, int join, float miterlimit) Constructs a solid BasicStroke with the specified attributes. | |
BasicStroke(float width, int cap, int join) Constructs a solid BasicStroke with the specified attributes. | |
BasicStroke(float width) Constructs a solid BasicStroke with the specified line width and with default values for the cap and join styles. | |
BasicStroke(float width, int cap, int join, float miterlimit, float[] dash, float dash_phase) Constructs a new BasicStroke with the specified attributes. | |
BasicStroke() Constructs a new BasicStroke with defaults for all attributes. |
Shape | createStrokedShape(Shape s) Returns a Shape whose interior defines the stroked outline of a specified Shape . |
boolean | equals(Object obj) Tests if a specified object is equal to this BasicStroke by first testing if it is a BasicStroke and then comparing its width, join, cap, miter limit, dash, and dash phase attributes with those of this BasicStroke . |
float[] | getDashArray() Returns the array representing the lengths of the dash segments. |
float | getDashPhase() Returns the current 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. |
int | hashCode() Returns the hashcode for this stroke. |