Class JaxoAxodraw4J


  • public class JaxoAxodraw4J
    extends JaxoAxodraw
    Extension to JaxoAxodraw that adds Bezier imports.
    Since:
    2.0
    • Constructor Detail

      • JaxoAxodraw4J

        public JaxoAxodraw4J()
        Constructor: just calls super().
    • Method Detail

      • getJaxoObject

        public JaxoObject getJaxoObject​(java.lang.String newString)
        Returns a JaxoObject corresponding to a axodraw command.
        Overrides:
        getJaxoObject in class JaxoAxodraw
        Parameters:
        newString - One line of a latex file
        Returns:
        A JaxoObject the corresponds to the axodraw command of the input line, or null, if nothing corresponds
      • getEightInts

        protected int[] getEightInts​(java.lang.String str)
        Returns the eight integers x1, y1,x2,y2,x3,y3,x4,y4 contained in a string of the form " # (x1, y1) (x2,y2) (x3,y3) (x4,y4) * " where * can be anything and # doesn't contain any parenthesis.
        Parameters:
        str - the String.
        Returns:
        the eight ints.
      • getEightInts

        protected int[] getEightInts​(java.lang.String str,
                                     int fromIndex)
        Returns the eight integers x1, y1,x2,y2,x3,y3,x4,y4 contained in a string of the form " # (x1, y1) (x2,y2) (x3,y3) (x4,y4) * " where * can be anything and # doesn't contain any parenthesis.
        Parameters:
        str - the String.
        fromIndex - the index to start with.
        Returns:
        the eight ints.