Class StrokeFactory

java.lang.Object
org.graphstream.ui.swing_viewer.util.StrokeFactory

public class StrokeFactory
extends java.lang.Object
Generator for strokes based on the given style.
  • Constructor Summary

    Constructors 
    Constructor Description
    StrokeFactory()  
  • Method Summary

    Modifier and Type Method Description
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • generateStroke

      public 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.
      Parameters:
      style - The style to use.
      metrics - The metrics to use.
      Returns:
      The stroke or null if the style specifies a "none" stroke mode.