Class VectorGraphicsEncoder


  • public final class VectorGraphicsEncoder
    extends Object
    A helper class with static methods for saving Charts as vectors
    Author:
    timmolter
    • Method Detail

      • addFileExtension

        public static String addFileExtension​(String fileName,
                                              VectorGraphicsEncoder.VectorGraphicsFormat vectorGraphicsFormat)
        Only adds the extension of the VectorGraphicsFormat to the filename if the filename doesn't already have it.
        Parameters:
        fileName -
        vectorGraphicsFormat -
        Returns:
        filename (if extension already exists), otherwise;: filename + "." + extension