|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionProducer<O,I>
adams.core.option.AbstractRecursiveOptionProducer<String,StringBuilder>
adams.core.option.LatexProducer
public class LatexProducer
Generates the JSON format.
| Field Summary | |
|---|---|
protected StringBuilder |
m_Details
for storing the content. |
protected int |
m_Index
the index in the structure. |
protected boolean |
m_Landscape
whether to print in landscape. |
protected StringBuilder |
m_Structure
for storing the structure. |
| Fields inherited from class adams.core.option.AbstractRecursiveOptionProducer |
|---|
m_Nesting |
| Fields inherited from class adams.core.option.AbstractOptionProducer |
|---|
m_DebugLevel, m_Input, m_LastGenerated, m_Output, m_OutputVariableValues, m_SkippedProperties, m_UsePropertyNames |
| Constructor Summary | |
|---|---|
LatexProducer()
|
|
| Method Summary | |
|---|---|
protected void |
addActor(AbstractActor actor,
boolean ref)
Adds the actor to the structure. |
protected String |
addItem(String value)
Encapsulates the string in an item command sequence. |
protected String |
addItem(String name,
Object value)
Encapsulates the string in an item command sequence. |
protected String |
endEnumerate()
Returns the command sequence for the end of an enumerated list. |
protected String |
endItemize()
Returns the command sequence for the end of an itemized list. |
String |
getDefaultFileExtension()
Returns the default file extension (without the dot). |
String[] |
getFileExtensions()
Returns the file extensions (without the dot). |
String |
getFileFormat()
Returns the description of the file format. |
protected String |
getIndentation()
Generates the indentation string based on the nesting level. |
boolean |
getLandscape()
Returns whether to use portrait or landscape |
String |
globalInfo()
Returns a string describing the object. |
protected void |
initialize()
Initializes the members. |
protected String |
initOutput()
Initializes the output data structure. |
String |
landscapeTipText()
Returns the tip text for this property. |
static void |
main(String[] args)
|
protected void |
preProduce()
Hook-method before starting visiting options. |
StringBuilder |
processOption(AbstractArgumentOption option)
Visits an argument option. |
StringBuilder |
processOption(BooleanOption option)
Visits a boolean option. |
StringBuilder |
processOption(ClassOption option)
Visits a class option. |
void |
setLandscape(boolean value)
Sets whether to use portrait or landscape. |
protected String |
startEnumerate()
Returns the command sequence for the start of an enumerated list. |
protected String |
startItemize()
Returns the command sequence for the start of an itemized list. |
protected String |
toLatex(String s)
Makes the string LaTeX compliant. |
String |
toString()
Returns the output generated from the visit. |
| Methods inherited from class adams.core.option.AbstractRecursiveOptionProducer |
|---|
cleanUp, generateDebugString, getDebugIndentation, getDebugIndentation, getRecursionLevel, reset |
| Methods inherited from class adams.core.option.AbstractOptionProducer |
|---|
checkInput, debug, debug, debugLevelTipText, doProduce, doProduce, getCurrentValue, getDebugLevel, getInput, getOptionIdentifier, getOutput, getOutputVariableValues, getSkippedProperties, getUsePropertyNames, isDebugOn, isDefaultValue, outputVariableValuesTipText, postProduce, postProduce, preProduce, produce, produce, setDebugLevel, setOutputVariableValues, setSkippedProperties, toString, write |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean m_Landscape
protected StringBuilder m_Structure
protected StringBuilder m_Details
protected int m_Index
| Constructor Detail |
|---|
public LatexProducer()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionProducer<String,StringBuilder>protected void initialize()
initialize in class AbstractOptionProducer<String,StringBuilder>public void setLandscape(boolean value)
value - true if to use landscapepublic boolean getLandscape()
public String landscapeTipText()
protected String initOutput()
initOutput in class AbstractOptionProducer<String,StringBuilder>
protected void addActor(AbstractActor actor,
boolean ref)
ref - reference or labelactor - the actor to addprotected String startEnumerate()
protected String endEnumerate()
protected String startItemize()
protected String endItemize()
protected String toLatex(String s)
s - the string to process
protected String getIndentation()
protected String addItem(String value)
value - the list item
protected String addItem(String name,
Object value)
name - the list itemvalue - the value for the name surrounded in \texttt{...}
public StringBuilder processOption(BooleanOption option)
processOption in class AbstractOptionProducer<String,StringBuilder>option - the boolean option
public StringBuilder processOption(ClassOption option)
processOption in class AbstractOptionProducer<String,StringBuilder>option - the class option
public StringBuilder processOption(AbstractArgumentOption option)
processOption in class AbstractOptionProducer<String,StringBuilder>option - the argument option
public String toString()
toString in class AbstractOptionProducer<String,StringBuilder>protected void preProduce()
preProduce in class AbstractOptionProducer<String,StringBuilder>public String getFileFormat()
getFileFormat in interface FileBasedProducerpublic String getDefaultFileExtension()
getDefaultFileExtension in interface FileBasedProducerpublic String[] getFileExtensions()
getFileExtensions in interface FileBasedProducer
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||