|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.core.io.AbstractSpreadSheetWriter
adams.core.io.GnuplotSpreadSheetWriter
public class GnuplotSpreadSheetWriter
Outputs all numeric columns of a spreadsheet in Gnuplot format.
Valid options are:-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-missing <java.lang.String> (property: missingValue) The placeholder for missing values. default: -999
-columns <java.lang.String> (property: columns) The columns in the spreadsheet to output. default: first-last
-invert (property: invert) If set to true, then the matching sense is inverted.
| Field Summary | |
|---|---|
static String |
COMMENT
the line comment start. |
protected Range |
m_Columns
the range of columns to output in the data file. |
static String |
MISSING_VALUE
the default for missing values. |
| Fields inherited from class adams.core.io.AbstractSpreadSheetWriter |
|---|
m_MissingValue |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
GnuplotSpreadSheetWriter()
|
|
| Method Summary | |
|---|---|
String |
columnsTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected boolean |
doWrite(SpreadSheet content,
Writer writer)
Performs the actual writing. |
Range |
getColumns()
Returns the current placeholder for missing values. |
protected String |
getDefaultMissingValue()
Returns the default missing value. |
String |
getFormatDescription()
Returns a string describing the format (used in the file chooser). |
String[] |
getFormatExtensions()
Returns the extension(s) of the format. |
boolean |
getInvert()
Returns whether to invert the matching sense. |
protected boolean |
getUseOutputStream()
Returns whether to write to an OutputStream rather than a Writer. |
String |
globalInfo()
Returns a string describing the object. |
protected void |
initialize()
Initializes the members. |
String |
invertTipText()
Returns the tip text for this property. |
void |
setColumns(Range value)
Sets the placeholder for missing values. |
void |
setInvert(boolean value)
Sets whether to invert the matching sense. |
| Methods inherited from class adams.core.io.AbstractSpreadSheetWriter |
|---|
doWrite, getMissingValue, getWriters, missingValueTipText, setMissingValue, write, write, write, write |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| 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 |
|---|
public static final String COMMENT
public static final String MISSING_VALUE
protected Range m_Columns
| Constructor Detail |
|---|
public GnuplotSpreadSheetWriter()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerprotected void initialize()
initialize in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractSpreadSheetWriterpublic String getFormatDescription()
getFormatDescription in class AbstractSpreadSheetWriterpublic String[] getFormatExtensions()
getFormatExtensions in class AbstractSpreadSheetWriterprotected String getDefaultMissingValue()
getDefaultMissingValue in class AbstractSpreadSheetWriterpublic void setColumns(Range value)
value - the placeholderpublic Range getColumns()
public String columnsTipText()
public void setInvert(boolean value)
value - true if inverting matching sensepublic boolean getInvert()
public String invertTipText()
protected boolean getUseOutputStream()
getUseOutputStream in class AbstractSpreadSheetWriter
protected boolean doWrite(SpreadSheet content,
Writer writer)
doWrite in class AbstractSpreadSheetWritercontent - the spreadsheet to writewriter - the writer to write the spreadsheet to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||