org.graphstream.ui.swingViewer.util
Class StrokeFactory

java.lang.Object
  extended by org.graphstream.ui.swingViewer.util.StrokeFactory

public class StrokeFactory
extends Object

Generator for strokes based on the given style.


Constructor Summary
StrokeFactory()
           
 
Method Summary
static Stroke generateStroke(Style style, GraphMetrics metrics)
          Generate a stroke of the appropriate width and style according to the given style and metrics.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrokeFactory

public StrokeFactory()
Method Detail

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 © 2013. All Rights Reserved.