Package net.sf.jaxodraw.io.imports
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
-
-
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
Constructors Constructor Description JaxoAxodraw4J()
Constructor: just calls super().
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.JaxoObject
getJaxoObject(java.lang.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
-
-
-
-
Method Detail
-
getJaxoObject
public JaxoObject getJaxoObject(java.lang.String newString)
Returns a JaxoObject corresponding to a axodraw command.- Overrides:
getJaxoObject
in classJaxoAxodraw
- 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.
-
-