|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.gsfc.spdf.ssc.FormatOptions
public class FormatOptions
This class represents output format and units options.
| Constructor Summary | |
|---|---|
FormatOptions()
Constructs a FormatOptions object with a default value. |
|
FormatOptions(DateFormat dateFormat,
TimeFormat timeFormat,
DistanceUnits distanceUnits,
short distancePrecision,
DegreeFormat degreeFormat,
short degreePrecision,
LatLonFormat latLonFormat,
boolean cdf,
short linesPerPage)
Constructs a FormatOptions object with the given attribute values. |
|
| Method Summary | |
|---|---|
DateFormat |
getDateFormat()
Gets the date format listing option. |
DegreeFormat |
getDegreeFormat()
Gets the "format for degrees" listing option. |
short |
getDegreePrecision()
Gets the degreePrecison value. |
short |
getDistancePrecision()
Gets the distancePrecison value. |
DistanceUnits |
getDistanceUnits()
Gets the "units for distance" format listing option. |
LatLonFormat |
getLatLonFormat()
Gets the "format for direction/range" listing option. |
short |
getLinesPerPage()
Gets the number of lines per page when output is to a text file. |
TimeFormat |
getTimeFormat()
Gets the time format listing option. |
boolean |
isCdf()
Gets the flag indicating whether the output is to be a CDF file. |
void |
list(java.io.PrintStream out)
Prints this object's value to the specified output stream. |
void |
setCdf(boolean value)
Sets the flag indicating whether the output is to be a CDF file. |
void |
setDateFormat(DateFormat value)
Sets the date format listing option. |
void |
setDegreeFormat(DegreeFormat value)
Sets the "format for degrees" listing option. |
void |
setDegreePrecision(short value)
Sets the degreePrecison value. |
void |
setDistancePrecision(short value)
Sets the distancePrecison value. |
void |
setDistanceUnits(DistanceUnits value)
Sets the "units for distance" format listing option. |
void |
setLatLonFormat(LatLonFormat value)
Sets the "format for direction/range" listing option. |
void |
setLinesPerPage(short value)
Sets the number of lines per page when output is to a text file. |
void |
setTimeFormat(TimeFormat value)
Sets the time format listing option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormatOptions()
public FormatOptions(DateFormat dateFormat,
TimeFormat timeFormat,
DistanceUnits distanceUnits,
short distancePrecision,
DegreeFormat degreeFormat,
short degreePrecision,
LatLonFormat latLonFormat,
boolean cdf,
short linesPerPage)
dateFormat - specifies the format for date valuestimeFormat - specifies the format for time valuesdistanceUnits - specifies the units for distance valuesdistancePrecision - specifies the number of decimal
places to include when displaying distance valuesdegreeFormat - specifies the format for degree valuesdegreePrecision - specifies the number of decimal
places to include when displaying degree values
with degreeUnits format of 0latLonFormat - specifies the format for direction/range
valuescdf - specifies whether the output is to be a CDF filelinesPerPage - number of lines per page when output is to
a text file| Method Detail |
|---|
public DateFormat getDateFormat()
setDateFormat(gov.nasa.gsfc.spdf.ssc.DateFormat)public void setDateFormat(DateFormat value)
value - new valuegetDateFormat()public TimeFormat getTimeFormat()
setTimeFormat(gov.nasa.gsfc.spdf.ssc.TimeFormat)public void setTimeFormat(TimeFormat value)
value - new valuegetTimeFormat()public DistanceUnits getDistanceUnits()
setDistanceUnits(gov.nasa.gsfc.spdf.ssc.DistanceUnits)public void setDistanceUnits(DistanceUnits value)
value - new valuegetDistanceUnits(),
setDistancePrecision(short)public short getDistancePrecision()
setDistancePrecision(short)public void setDistancePrecision(short value)
value - new valuegetDistancePrecision()public DegreeFormat getDegreeFormat()
setDegreeFormat(gov.nasa.gsfc.spdf.ssc.DegreeFormat)public void setDegreeFormat(DegreeFormat value)
value - new valuegetDegreeFormat(),
setDegreePrecision(short)public short getDegreePrecision()
setDegreePrecision(short)public void setDegreePrecision(short value)
value - new valuegetDegreePrecision(),
setDegreeFormat(gov.nasa.gsfc.spdf.ssc.DegreeFormat)public LatLonFormat getLatLonFormat()
setLatLonFormat(gov.nasa.gsfc.spdf.ssc.LatLonFormat)public void setLatLonFormat(LatLonFormat value)
value - new valuegetLatLonFormat()public boolean isCdf()
setCdf(boolean)public void setCdf(boolean value)
value - new valueisCdf()public short getLinesPerPage()
setLinesPerPage(short)public void setLinesPerPage(short value)
value - new valuegetLinesPerPage()public void list(java.io.PrintStream out)
out - an output stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||