|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object courselog.MainApplication
public class MainApplication
Field Summary | |
---|---|
static int |
ACTIVECALIBRATION
Index indicating Calibration panel is active |
static int |
ACTIVECONVERT
Index indicating Convert panel is active |
static int |
ACTIVEDISTANCE
Index indicating Distance panel is active |
static int |
ACTIVENAVIGATE
Index indicating Distance panel is active |
static int |
ACTIVEOPTIONS
Index indicating Options panel is active |
static ewe.fx.Color |
BADCOLOR
Color of the options button when the GPS is not connected. |
static java.lang.String |
DEFAULTLOGFILE
Default name of the log file |
static java.lang.String |
DEFAULTMAPDIR
Default name of the map directory |
static ewe.fx.Color |
LOSTCOLOR
Color of the options button when the GPS is connected but not locked on satellites RGB=(240,120,0). |
ewe.fx.Image |
myAppGlobalIcon
Application icon to be used by all forms. |
protected CalibrateForm |
myCalibForm
Calibration panel |
protected ConvertForm |
myConvertForm
Convert panel |
protected DistanceForm |
myDistanceForm
Distance panel |
protected int |
myInitialStatus
Initial status of the application |
protected int |
myLastActivePanel
Application last active panel |
protected int |
myLastNext
Value of last next waypoint read from options file. |
protected int |
myLastSelected
Value of last selected waypoint read from options file. |
protected java.lang.String |
myLastWaypoints
Application last used waypoints file |
protected java.lang.String |
myLogFileName
Log file to log moves. |
protected java.lang.String |
myMapDir
Application current maps directory |
protected double |
myMinDistance
Minium distance between logged moves. |
protected NavigateForm |
myNavigateForm
Navigation panel |
protected int |
myNextActivePanel
Application next active panel |
protected OptionsForm |
myOptionsForm
Options panel |
protected SerialGPSConnection |
mySGC
Application serial GPS connection |
protected ewe.io.SerialPortOptions |
mySPO
Serial port options to connect with GPS |
protected PositionTracer |
myTr
Application Track tracer |
static ewe.fx.Color |
NORMALCOLOR
Options button color when GPS is OK RGB=(192,255,192). |
static java.lang.String |
OPTIONSFILENAME
Fixed default name of the option file. |
static java.lang.String |
TAGLAST
Tag indicating last active panel in the options file. |
static java.lang.String |
TAGLASTNEXT
Tag indicating the last next point to aim at. |
static java.lang.String |
TAGLASTSELECTED
Tag indicating the last selected waypoint. |
static java.lang.String |
TAGLASTWP
Tag indicating the last waypoints file. |
static java.lang.String |
TAGLOG
Tag indicating the log file name in the options file. |
static java.lang.String |
TAGMAPDIR
Tag indicating the map directory in the options file. |
static java.lang.String |
TAGMINDIST
Tag indicating the min distance value in the options file. |
static java.lang.String |
TAGNAVLAST
Tag indicating last status of the navigation form. |
static java.lang.String |
TAGSPO
Tag indicating the GPS port options in the options file. |
static java.lang.String |
TAGSTATUS
Tag indicating the last status of the application in the options file. |
static java.lang.String |
TAGUNITS
Tag indicating the units in the options file. |
static java.lang.String |
VERSIONMESSAGE
Version message displayed in the options panel="Version 1.0.0". |
Constructor Summary | |
---|---|
MainApplication()
Creates a new instance of MainApplication |
Method Summary | |
---|---|
static java.lang.String |
getDefaulLogFilePath()
Build the default log file name from the application path. |
static double |
getDefaulMinDistance()
Default minimum distance between log points == 50.0d. |
static java.lang.String |
getDefaultMapDirPath()
Build the default map directory from the application path. |
static int |
getDefaulUnits()
Default units set km/h and m. |
CalibrateForm |
getMyCalibForm()
|
ConvertForm |
getMyConvertForm()
|
DistanceForm |
getMyDistanceForm()
|
java.lang.String |
getMyMapDir()
|
NavigateForm |
getMyNavigateForm()
|
OptionsForm |
getMyOptionsForm()
|
SerialGPSConnection |
getMySGC()
|
ewe.io.SerialPortOptions |
getMySPO()
|
void |
initToDefaultOptions()
|
static void |
main(java.lang.String[] args)
|
boolean |
readOptionsFile()
Read "OPTIONSFILENAME" file in the program directory to generate the options as they were recorded at last exit. |
void |
updateOptions()
Initialise the tracer with current options. |
boolean |
writeOptionsFile()
Write "OPTIONSFILENAME" file in the program directory with the current options settings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ewe.fx.Image myAppGlobalIcon
public static final java.lang.String VERSIONMESSAGE
public static final ewe.fx.Color NORMALCOLOR
public static final ewe.fx.Color LOSTCOLOR
public static final ewe.fx.Color BADCOLOR
public static final java.lang.String OPTIONSFILENAME
protected SerialGPSConnection mySGC
protected ewe.io.SerialPortOptions mySPO
public static final java.lang.String TAGSPO
public static final java.lang.String TAGUNITS
protected java.lang.String myLogFileName
protected int myInitialStatus
public static final java.lang.String DEFAULTLOGFILE
public static final java.lang.String TAGLOG
protected double myMinDistance
public static final java.lang.String TAGMINDIST
protected java.lang.String myMapDir
public static final java.lang.String DEFAULTMAPDIR
public static final java.lang.String TAGMAPDIR
protected java.lang.String myLastWaypoints
public static final java.lang.String TAGLASTWP
protected int myLastNext
public static final java.lang.String TAGLASTSELECTED
protected int myLastSelected
public static final java.lang.String TAGLASTNEXT
public static final java.lang.String TAGLAST
public static final java.lang.String TAGSTATUS
public static final java.lang.String TAGNAVLAST
protected PositionTracer myTr
protected int myNextActivePanel
protected int myLastActivePanel
protected CalibrateForm myCalibForm
public static final int ACTIVECALIBRATION
protected OptionsForm myOptionsForm
public static final int ACTIVEOPTIONS
protected ConvertForm myConvertForm
public static final int ACTIVECONVERT
protected DistanceForm myDistanceForm
public static final int ACTIVEDISTANCE
protected NavigateForm myNavigateForm
public static final int ACTIVENAVIGATE
Constructor Detail |
---|
public MainApplication()
Method Detail |
---|
public static void main(java.lang.String[] args)
public java.lang.String getMyMapDir()
public SerialGPSConnection getMySGC()
public ewe.io.SerialPortOptions getMySPO()
public CalibrateForm getMyCalibForm()
public ConvertForm getMyConvertForm()
public DistanceForm getMyDistanceForm()
public OptionsForm getMyOptionsForm()
public NavigateForm getMyNavigateForm()
public static java.lang.String getDefaultMapDirPath()
public static java.lang.String getDefaulLogFilePath()
public static double getDefaulMinDistance()
public static int getDefaulUnits()
public void initToDefaultOptions()
public boolean writeOptionsFile()
public boolean readOptionsFile()
public void updateOptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |