- When Java 2D
line objects are enabled with setBasicStroke(1...5), the following
methods can be used to format lines in a chart:
- get/setLineBasicStrokeType();
Defines a line's basic stroke type (0 = JDK 1.1.8, 1...5 selects
one of the Java 2D BasicStroke constructors).
- getLineCap();
Defines the decoration applied to the ends of unclosed subpaths
and dash segments of a specified line as defined by the Java 2D
BasicStroke object (for example, CAP_BUTT, CAP_ROUND or CAP_SQUARE).
- get/setLineDash();
These methods define a dash pattern for a specified line object.
- getLineDashFloat();
Returns the dashing pattern as an array of floating point numbers.
- get/setLineDashPhase();
When a line dashing pattern has been specified with setLineDash(),
these methods define the offset to start the dashing pattern for
a specified line object.
- get/setLineJoin();
Defines the decoration applied where line path segments meet (for
example, JOIN_ROUND, JOIN_BEVEL, or JOIN_MITER).
- get/setLineMiterLimit();
When setLineJoin() applies JOIN_MITER to a line object, these methods
define the limit to trim the miter join.
Also see the java.awt.BasicStroke constructors for more information
about these methods.