public class StrokeFactory
extends java.lang.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 java.awt.Stroke |
generateDashesStroke(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.util.GraphMetrics metrics) |
protected static java.awt.Stroke |
generateDotsStroke(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.util.GraphMetrics metrics) |
protected static java.awt.Stroke |
generatePlainStroke(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.util.GraphMetrics metrics) |
static java.awt.Stroke |
generateStroke(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.util.GraphMetrics metrics)
Generate a stroke of the appropriate width and style according to the
given style and metrics.
|
public static java.awt.Stroke generateStroke(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.util.GraphMetrics metrics)
style - The style to use.metrics - The metrics to use.protected static java.awt.Stroke generatePlainStroke(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.util.GraphMetrics metrics)
protected static java.awt.Stroke generateDotsStroke(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.util.GraphMetrics metrics)
protected static java.awt.Stroke generateDashesStroke(org.graphstream.ui.graphicGraph.stylesheet.Style style,
org.graphstream.ui.view.util.GraphMetrics metrics)