|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AbstractGRWrappedTextVisitor | +--GRWrappedLaTeXVisitor
A GRVisitor which constructs a wrapped String representation of an
object from the GR-family in LaTeX format, including GenRecoupCoeff
. When a FontMetrics Class is specified in the
constructor, the wrapsize is in pixels and takes in account the
used font.
AbstractGRWrappedTextVisitor
,
GRVisitor
,
GenRecoupCoeff
,
GRCompoundFactor
,
GRSummation
,
GRFactor
,
GRPreFactor
,
GRKrDelta
,
GR6jSymbol
Field Summary | |
static java.lang.String |
SIXJ_MACRO
The LaTeX macro for a Wigner 6-j symbol. |
Fields inherited from class AbstractGRWrappedTextVisitor |
wrappedstring |
Constructor Summary | |
GRWrappedLaTeXVisitor()
Constructs a new GRWrappedLaTeXVisitor. |
|
GRWrappedLaTeXVisitor(int wrapsize)
Constructs a new GRWrappedLaTeXVisitor which wraps at wrapsize characters. |
|
GRWrappedLaTeXVisitor(int wrapsize,
java.awt.FontMetrics fm)
Constructs a new GRWrappedLaTeXVisitor, with given wrapsize in pixels and the FontMetrics class for the used font. |
Method Summary | |
static java.lang.String |
macros()
Returns some LaTeX macros to be used with the generated formula if useMacros(boolean) |
java.lang.Object |
result()
Returns the wrapped String representing the object visited. |
boolean |
useMacros()
Returns true if macros will be used in the generated
formula. |
void |
useMacros(boolean usemacros)
If set to true LaTeX macros will be used to simplify
the generated formula. |
void |
visitGenRecoupCoeff(GenRecoupCoeff grc)
Specific method for visiting a GenRecoupCoeff object. |
void |
visitGR6jSymbol(GR6jSymbol gr6j)
Specific method for visiting a GR6jSymbol object. |
void |
visitGRCompoundFactor(GRCompoundFactor grcf)
Specific method for visiting a GRCompoundFactor object. |
void |
visitGRKrDelta(GRKrDelta grkd)
Specific method for visiting a GRKrDelta object. |
void |
visitGRPreFactor(GRPreFactor grpf)
Specific method for visiting a GRPreFactor object. |
void |
visitGRSummation(GRSummation grs)
Specific method for visiting a GRSummation object. |
Methods inherited from class AbstractGRWrappedTextVisitor |
append, size, wrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SIXJ_MACRO
Constructor Detail |
public GRWrappedLaTeXVisitor()
public GRWrappedLaTeXVisitor(int wrapsize)
wrapsize
characters.
wrapsize
- number of allowed chars on one linepublic GRWrappedLaTeXVisitor(int wrapsize, java.awt.FontMetrics fm)
wrapsize
- number of allowed pixels on a lineMethod Detail |
public void visitGenRecoupCoeff(GenRecoupCoeff grc)
grc
- the GenRecoupCoeff to be visitedGenRecoupCoeff
public void visitGRCompoundFactor(GRCompoundFactor grcf)
grcf
- the GRCompoundFactor to be visitedGRCompoundFactor
public void visitGRSummation(GRSummation grs)
grs
- the GRSummation to be visitedGRSummation
public void visitGRPreFactor(GRPreFactor grpf)
grpf
- the GRPreFactorto be visitedGRPreFactor
public void visitGRKrDelta(GRKrDelta grkd)
grkd
- the GRKrDelta to be visitedGRKrDelta
public void visitGR6jSymbol(GR6jSymbol gr6j)
gr6j
- the GR6jSymbol to be visitedGR6jSymbol
public java.lang.Object result()
public boolean useMacros()
true
if macros will be used in the generated
formula.
true
if macros will be used in the generated
formula, false otherwise.macros()
public void useMacros(boolean usemacros)
true
LaTeX macros will be used to simplify
the generated formula. The default value is false
.
usemacros
- the value to be set.macros()
public static java.lang.String macros()
useMacros(boolean) is set to true
.
- Returns:
- the needed macros as a String
- See Also:
useMacros()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |