Class DashPatternStyle


  • public final class DashPatternStyle
    extends java.lang.Object
    Workaround for dashed line JavaFX performance bottleneck for strictly horizontal and vertical lines as used in the GridRenderer see e.g. option 3 in: https://stackoverflow.com/questions/47102734/performances-issue-when-drawing-dashed-line-in-java/47166129#47166129
    Author:
    rstein
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void strokeDashedLine​(javafx.scene.canvas.GraphicsContext gc, double x0, double y0, double x1, double y1)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • strokeDashedLine

        public static void strokeDashedLine​(javafx.scene.canvas.GraphicsContext gc,
                                            double x0,
                                            double y0,
                                            double x1,
                                            double y1)