Class SVGArrow


  • public final class SVGArrow
    extends java.lang.Object
    Static class for drawing simple arrows
    Since:
    0.5.5
    Author:
    Erich Schubert, Robert Rödler
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SVGArrow.Direction
      Direction constants
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SVGArrow()
      Private constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.w3c.dom.Element makeArrow​(SVGPlot svgp, SVGArrow.Direction dir, double x, double y, double size)
      Draw an arrow at the given position.
      • Methods inherited from class java.lang.Object

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

      • SVGArrow

        private SVGArrow()
        Private constructor. Static methods only.
    • Method Detail

      • makeArrow

        public static org.w3c.dom.Element makeArrow​(SVGPlot svgp,
                                                    SVGArrow.Direction dir,
                                                    double x,
                                                    double y,
                                                    double size)
        Draw an arrow at the given position. Note: the arrow is an unstyled svg path. You need to apply style afterwards.
        Parameters:
        svgp - Plot to draw to
        dir - Direction to draw
        x - Center x coordinate
        y - Center y coordinate
        size - Arrow size
        Returns:
        SVG Element