net.sf.jaxodraw.io.imports
Class JaxoAxodraw4J

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

public class JaxoAxodraw4J
extends JaxoAxodraw

Extension to JaxoAxodraw that adds Bezier imports.

Since:
2.0

Field Summary
 
Fields inherited from class net.sf.jaxodraw.io.imports.JaxoAxodraw
AMP, COLOR, DASH, DL_SEP, DOUBLE_LINE, FREQ_FROM_WIGGLES, LINE, PAINT_ARROW, REL_HEIGHT, REL_WIDTH, STROKE_WIDTH
 
Constructor Summary
JaxoAxodraw4J()
          Constructor: just calls super().
 
Method Summary
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.
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.
 JaxoObject getJaxoObject(String newString)
          Returns a JaxoObject corresponding to a axodraw command.
 
Methods inherited from class net.sf.jaxodraw.io.imports.JaxoAxodraw
addPackage, checkRequired, getArcBrackets, getArcPoints, getBBoxHeight, getColor, getComment, getFourInts, getFourInts, getLineParams, getLoopPars, getOneBrace, getOneBracket, getOneCurl, getPackages, getScaleFactor, getSixInts, getStroke, getT4Params, getThreeCurls, getTwoCurls, getTwoInts, getValid, newPLine, removePackage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxoAxodraw4J

public JaxoAxodraw4J()
Constructor: just calls super().

Method Detail

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.


Copyright © 2003-2011 The JaxoDraw team. All Rights Reserved.