org.graphstream.ui.swingViewer.util
Class StrokeFactory
java.lang.Object
org.graphstream.ui.swingViewer.util.StrokeFactory
public class StrokeFactory
- extends Object
Generator for strokes based on the given style.
StrokeFactory
public StrokeFactory()
generateStroke
public static Stroke generateStroke(Style style,
GraphMetrics metrics)
- Generate a stroke of the appropriate width and style according to the
given style and metrics.
- Parameters:
style
- The style to use.metrics
- The metrics to use.
- Returns:
- The stroke or null if the style specifies a "none" stroke mode.
Copyright © 2011. All Rights Reserved.