|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbt747.model.Controller
bt747.j2se_view.J2SEController
bt747.j2se_view.J2SEAppController
public final class J2SEAppController
Field Summary | |
---|---|
static javax.swing.InputVerifier |
FloatVerifier
A floating point input verifier available for use in the GUI buildup. |
static javax.swing.InputVerifier |
IntVerifier
An integer input verifier available for use in the GUI buildup. |
static java.lang.String |
lookAndFeelMsg
Message build up during Look And Feel search. |
static java.lang.String |
MAPCACHEDIRECTORYPROPERTY
|
Constructor Summary | |
---|---|
J2SEAppController(J2SEAppModel model)
|
Method Summary | |
---|---|
void |
addView(BT747View view)
Attach a view to the controller. |
void |
changeLogFormat(int logFormat)
(User) request to change the log format. |
void |
changeLogFormatAndErase(int logFormat)
(User) request to change the log format. |
void |
convertLog(int logType)
Convert the log given the provided parameters using other methods. |
TracksAndWayPoints |
convertLogToTrackAndWayPoints()
Convert the log into an array of trackpoints. |
void |
couldNotOpenFileMessage(java.lang.String fileName)
Show error message that file could not be opened. |
void |
createErasePopup()
Show the pop up. |
void |
doFactoryReset()
Perform a factory reset, but first request confirmation from the user. |
void |
doLogConversion(int selectedFormat)
|
static void |
enableComponentHierarchy(java.awt.Component parent,
boolean en)
Enable(Disable) a panel and its children. |
void |
eraseLogWithDialogs()
(User) request to change the log format. |
J2SEAppModel |
getAppModel()
|
int |
getEndTimeNoOffset()
|
static javax.swing.Icon |
getIcon(java.lang.String iconPath)
|
java.awt.Image |
getIcon128()
|
java.awt.Image |
getIcon16()
|
boolean |
getRequestToOverwriteFromDialog()
Request the user if it is ok to overwrite the existing data or not. |
java.awt.Frame |
getRootFrame()
|
int |
getStartTimeNoOffset()
|
static java.lang.String |
getString(java.lang.String s)
I18N. |
int |
getTimeOffset()
|
static void |
initAppSettings()
Initialise the application settings. |
static java.util.Locale |
localeFromString(java.lang.String localeStr)
|
void |
modelEvent(ModelEvent e)
|
static void |
myLookAndFeel()
Set a good look and feel for the system. |
static void |
notifyBT747Exception(BT747Exception e)
|
void |
performOperationsAfterGPSConnect()
This does a number of operations once the GPS is effectively connected. |
void |
recoveryErase()
A 'recovery Erase' attempts to recover memory that was previously identified as 'bad'. |
void |
removeErasePopup()
Remove the pop up. |
void |
saveSettings()
Save all the user settings to disk. |
void |
scaleUIFont(int scalePercent)
|
void |
selectMapCacheDirectory()
|
void |
setChangeToMap(boolean changeToMap)
|
void |
setEndTimeNoOffset(int endTimeNoOffset)
|
void |
setFlashConfig(boolean lock,
int updateRate,
int baudRate,
int periodGLL,
int periodRMC,
int periodVTG,
int periodGSA,
int periodGSV,
int periodGGA,
int periodZDA,
int periodMCHN)
Change the flashconfiguration but first request confirmation from the user. |
void |
setLogConversionParameters()
|
static void |
setRootFrame(java.awt.Frame f)
|
void |
setScale()
|
void |
setStartTimeNoOffset(int startTimeNoOffset)
|
void |
setTimeOffset(int timeOffset)
|
void |
showAbout()
Show the about dialog box for the application. |
void |
showLicense()
Show the information dialog box for the application. |
Methods inherited from class bt747.j2se_view.J2SEController |
---|
addLogFile, downloadAndUploadAgpsData, downloadAndUploadAgpsData, setModel, tagImage |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MAPCACHEDIRECTORYPROPERTY
public static java.lang.String lookAndFeelMsg
public static final javax.swing.InputVerifier IntVerifier
public static final javax.swing.InputVerifier FloatVerifier
Constructor Detail |
---|
public J2SEAppController(J2SEAppModel model)
model
- The model to associate with this controller.Method Detail |
---|
public void modelEvent(ModelEvent e)
modelEvent
in interface ModelListener
modelEvent
in class J2SEController
public static final void notifyBT747Exception(BT747Exception e)
public final java.awt.Image getIcon16()
public final java.awt.Image getIcon128()
public static final java.util.Locale localeFromString(java.lang.String localeStr)
public void setLogConversionParameters()
public final void convertLog(int logType)
logType
- Indicates the type of log that should be written. For
example Model.CSV_LOGTYPE .Model.CSV_LOGTYPE
,
Model.TRK_LOGTYPE
,
Model.KML_LOGTYPE
,
Model.PLT_LOGTYPE
,
Model.GPX_LOGTYPE
,
Model.NMEA_LOGTYPE
,
Model.GMAP_LOGTYPE
,
Model.OSM_UPLOAD_LOGTYPE
,
Model.POSTGIS_LOGTYPE
,
Model.GOOGLE_MAP_STATIC_URL_LOGTYPE
,
Model.SQL_LOGTYPE
public final TracksAndWayPoints convertLogToTrackAndWayPoints()
public static final java.lang.String getString(java.lang.String s)
s
- String reference for localization.
public static final javax.swing.Icon getIcon(java.lang.String iconPath)
public final void recoveryErase()
public final void changeLogFormatAndErase(int logFormat)
logFormat
- The logFormat to set upon erase.public final void changeLogFormat(int logFormat)
logFormat
- The new log format to set.public final void eraseLogWithDialogs()
public final void doFactoryReset()
public final void setFlashConfig(boolean lock, int updateRate, int baudRate, int periodGLL, int periodRMC, int periodVTG, int periodGSA, int periodGSV, int periodGGA, int periodZDA, int periodMCHN)
Controller.setFlashUserOption(boolean, int, int, int, int, int, int, int, int, int, int)
lock
- When true, subsequent changes in these settings will be
impossible.updateRate
- The 'fix period' of the GPS in ms. When this is 200, then
the Fix is 5Hz.baudRate
- The speed of the serial communication of the MTK chipset. Be
carefull - this may be the internal speed - not the external
speed!periodGLL
- The period of emission of the GLL sentence (relative to the
fix).periodRMC
- The period of emission of the RMC sentence (relative to the
fix).periodVTG
- The period of emission of the VTG sentence (relative to the
fix).periodGSA
- The period of emission of the GSA sentence (relative to the
fix).periodGSV
- The period of emission of the GSV sentence (relative to the
fix).periodGGA
- The period of emission of the GGA sentence (relative to the
fix).periodZDA
- The period of emission of the ZDA sentence (relative to the
fix).periodMCHN
- The period of emission of the MCHN sentence (relative to the
fix).public final void addView(BT747View view)
view
- The view that must be attached.public final void performOperationsAfterGPSConnect()
Controller
performOperationsAfterGPSConnect
in class Controller
public static final void initAppSettings()
JavaLibBridge
setup because it kind of should be part of the
JavaLib implementation.
public final void saveSettings()
Controller
saveSettings
in class Controller
public static void setRootFrame(java.awt.Frame f)
public java.awt.Frame getRootFrame()
public void createErasePopup()
public final void removeErasePopup()
public final void showAbout()
public final void showLicense()
public void couldNotOpenFileMessage(java.lang.String fileName)
fileName
- The file that could not be opened.public final boolean getRequestToOverwriteFromDialog()
public static void myLookAndFeel()
public final void setScale()
public final void selectMapCacheDirectory()
public static final void enableComponentHierarchy(java.awt.Component parent, boolean en)
parent
- en
- public void doLogConversion(int selectedFormat)
public final void scaleUIFont(int scalePercent)
public final J2SEAppModel getAppModel()
public final int getStartTimeNoOffset()
public final void setStartTimeNoOffset(int startTimeNoOffset)
public final int getEndTimeNoOffset()
public final void setEndTimeNoOffset(int endTimeNoOffset)
public final int getTimeOffset()
public final void setTimeOffset(int timeOffset)
public final void setChangeToMap(boolean changeToMap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |