Class SVGParser

java.lang.Object
mgui.io.standard.xml.svg.SVGParser

public class SVGParser
extends java.lang.Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  SVGParser.Mode  
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String ext  
    protected java.util.ArrayList paths  
    protected SVGStyle svg_style  
  • Constructor Summary

    Constructors
    Constructor Description
    SVGParser()  
  • Method Summary

    Modifier and Type Method Description
    SVGPath[] getPaths()  
    static boolean isSVGFile​(java.io.File file)  
    static boolean isSVGFileName​(java.lang.String file_name)  
    void parse​(java.io.InputStream input_Stream)  
    protected void parseClass​(SVGPath path, java.lang.String data)  
    protected void parseFill​(SVGPath path, java.lang.String fill)  
    protected SVGPath parsePathData​(SVGPath path, java.lang.String data)  
    protected SVGStyle parseStyle​(SVGStyle style, java.lang.String data)  

    Methods inherited from class java.lang.Object

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

    • ext

      public static final java.lang.String ext
      See Also:
      Constant Field Values
    • paths

      protected java.util.ArrayList paths
    • svg_style

      protected SVGStyle svg_style
  • Constructor Details

    • SVGParser

      public SVGParser()
  • Method Details

    • isSVGFile

      public static boolean isSVGFile​(java.io.File file)
    • isSVGFileName

      public static boolean isSVGFileName​(java.lang.String file_name)
    • parse

      public void parse​(java.io.InputStream input_Stream)
    • getPaths

      public SVGPath[] getPaths()
    • parseStyle

      protected SVGStyle parseStyle​(SVGStyle style, java.lang.String data)
    • parseFill

      protected void parseFill​(SVGPath path, java.lang.String fill)
    • parsePathData

      protected SVGPath parsePathData​(SVGPath path, java.lang.String data)
    • parseClass

      protected void parseClass​(SVGPath path, java.lang.String data)