Class SVGEffects


  • public final class SVGEffects
    extends java.lang.Object
    Class containing some popular SVG effects.
    Since:
    0.5.0
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String LIGHT_GRADIENT_ID
      ID for the light gradient fill
      static java.lang.String SHADOW_ID
      ID for the drop shadow effect
      static java.lang.String SVG_CHECKMARK_PATH
      Checkmark path, sized approx. 15x15
    • Constructor Summary

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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addLightGradient​(SVGPlot svgp)
      Static method to prepare a SVG document for light gradient effects.
      static void addShadowFilter​(SVGPlot svgp)
      Static method to prepare a SVG document for drop shadow effects.
      static org.w3c.dom.Element makeCheckmark​(SVGPlot svgp)
      Creates a 15x15 big checkmark
      • Methods inherited from class java.lang.Object

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

      • SHADOW_ID

        public static final java.lang.String SHADOW_ID
        ID for the drop shadow effect
        See Also:
        Constant Field Values
      • LIGHT_GRADIENT_ID

        public static final java.lang.String LIGHT_GRADIENT_ID
        ID for the light gradient fill
        See Also:
        Constant Field Values
      • SVG_CHECKMARK_PATH

        public static final java.lang.String SVG_CHECKMARK_PATH
        Checkmark path, sized approx. 15x15
        See Also:
        Constant Field Values
    • Constructor Detail

      • SVGEffects

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

      • addShadowFilter

        public static void addShadowFilter​(SVGPlot svgp)
        Static method to prepare a SVG document for drop shadow effects. Invoke this from an appropriate update thread!
        Parameters:
        svgp - Plot to prepare
      • addLightGradient

        public static void addLightGradient​(SVGPlot svgp)
        Static method to prepare a SVG document for light gradient effects. Invoke this from an appropriate update thread!
        Parameters:
        svgp - Plot to prepare
      • makeCheckmark

        public static org.w3c.dom.Element makeCheckmark​(SVGPlot svgp)
        Creates a 15x15 big checkmark
        Parameters:
        svgp - Plot to create the element for
        Returns:
        Element