Class JaxoAxodraw4J

java.lang.Object
net.sf.jaxodraw.io.imports.JaxoAxodraw
net.sf.jaxodraw.io.imports.JaxoAxodraw4J

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

    • JaxoAxodraw4J

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

    • getJaxoObject

      public JaxoObject getJaxoObject(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(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(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.