public class StrokeFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected static float[] |
dashes |
protected static float[] |
dots |
Constructor and Description |
---|
StrokeFactory() |
Modifier and Type | Method and Description |
---|---|
protected static Stroke |
generateDashesStroke(Style style,
GraphMetrics metrics) |
protected static Stroke |
generateDotsStroke(Style style,
GraphMetrics metrics) |
protected static Stroke |
generatePlainStroke(Style style,
GraphMetrics metrics) |
static Stroke |
generateStroke(Style style,
GraphMetrics metrics)
Generate a stroke of the appropriate width and style according to the
given style and metrics.
|
public StrokeFactory()
public static Stroke generateStroke(Style style, GraphMetrics metrics)
style
- The style to use.metrics
- The metrics to use.protected static Stroke generatePlainStroke(Style style, GraphMetrics metrics)
protected static Stroke generateDotsStroke(Style style, GraphMetrics metrics)
protected static Stroke generateDashesStroke(Style style, GraphMetrics metrics)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses