Package slash.navigation.converter.gui
Class BaseRouteConverter
java.lang.Object
slash.navigation.gui.Application
slash.navigation.gui.SingleFrameApplication
slash.navigation.converter.gui.BaseRouteConverter
- Direct Known Subclasses:
RouteConverter
The abstract base of the RouteConverter desktop application: a single-frame
Swing GUI for route conversion, editing and map display. Concrete editions
(
RouteConverter and its TimeAlbumPro variant) subclass
it and supply the edition-specific behaviour via getEdition() and
related hooks.- Author:
- Christian Pesch
-
Nested Class Summary
Nested classes/interfaces inherited from class slash.navigation.gui.Application
Application.ExitListener -
Field Summary
FieldsFields inherited from class slash.navigation.gui.SingleFrameApplication
frame -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAsks once whether the user wants to send anonymous crash telemetry (spec 00011 Phase 2).protected abstract voidprotected voidvoidprotected SingletonDialogActionprotected voidstatic ResourceBundlebooleanabstract Stringabstract Stringintstatic BaseRouteConverterprotected abstract MapViewCallbackstatic Preferencesprotected Stringdoubleintdoubledoublestatic StringgetTitle()voidvoidhandleFileNotFound(String path) voidhandleOpenError(Throwable throwable, String path) voidhandleOpenError(Throwable throwable, List<URL> urls) voidprotected voidprotected abstract voidprotected abstract voidprotected abstract voidprotected voidprotected abstract voidbooleanbooleanbooleanprotected booleanbooleanprotected booleanbooleanstatic booleanbooleanvoidopenPositionList(List<URL> urls, boolean selectConvertPanel) protected voidparseInitialArgs(String[] args) voidvoidrenamePositionList(String name) voidprotected abstract voidprotected abstract voidint[]selectAllButEveryNthPosition(int order) intselectInsignificantPositions(double threshold) voidselectPositionsInMap(int[] selectedPositions) voidselectPositionsInMap(List<NavigationPosition> selectedPositions) intselectPositionsWithinDistanceToPredecessor(double distance) intselectPositionsWithSpeedBelowOrEqualTo(double kmh) voidsendChecksums(Download download) voidsendErrorReport(String log, String description, File file) voidsetAddAudioPreference(File path) voidsetAddPhotoPreference(File path) voidsetCategoryPreference(String category) voidsetCenter(NavigationPosition position) voidsetDeletePositionsShiftTimesPreference(boolean deletePositionsShiftTimesPreference) voidsetFindPlacePreference(String searchPositionPreference) voidsetInsertStraightLineIntervalPreference(int insertStraightLineIntervalPreference) voidvoidsetMapView(MapViewImplementation mapViewImplementation) voidsetNumberingStrategyPreference(NumberingStrategy numberingStrategy) voidsetNumberPatternPreference(NumberPattern numberPattern) voidsetRouteCharacteristics(RouteCharacteristics characteristics) voidsetSelectByDistancePreference(double selectByDistancePreference) voidsetSelectByOrderPreference(int selectByOrderPreference) voidsetSelectBySignificancePreference(double selectBySignificancePreference) voidsetSelectBySpeedPreference(double selectBySpeedPreference) static voidsetSendCrashReportsEnabled(boolean enabled) voidsetTagStrategyPreference(TagStrategy tagStrategy) voidsetUploadRoutePreference(File path) voidshiftTimesAfterPauses(int[] indices) voidshowCoverageOverlay(BoundingBox mapBoundingBox, String category, Map<BoundingBox, Boolean> coverageTiles) voidshowMapBorder(BoundingBox mapBoundingBox) voidshowPositionMagnifier(List<NavigationPosition> positions) protected voidshutdown()protected voidstartup()protected abstract voidprotected abstract voidMethods inherited from class slash.navigation.gui.SingleFrameApplication
createFrame, getFrame, openFrameMethods inherited from class slash.navigation.gui.Application
addExitListener, exit, getContext, getLocale, launch, setCrashHandler, setLocale
-
Field Details
-
log
-
contentPane
-
-
Constructor Details
-
BaseRouteConverter
public BaseRouteConverter()
-
-
Method Details
-
getInstance
-
getBundle
-
getPreferences
-
getTitle
-
getProduct
-
getEdition
-
getEditionId
-
startup
protected void startup()- Specified by:
startupin classApplication
-
checkJavaPrequisites
protected void checkJavaPrequisites() -
checkForGoogleMapsAPIKey
protected abstract void checkForGoogleMapsAPIKey() -
parseInitialArgs
- Overrides:
parseInitialArgsin classApplication
-
askForCrashReportConsent
protected void askForCrashReportConsent()Asks once whether the user wants to send anonymous crash telemetry (spec 00011 Phase 2). Default is off: the preference is only turned on if the user explicitly answers Yes. The question is shown at most once, guarded by a separate "asked" preference. -
getMapView
-
shutdown
protected void shutdown()- Overrides:
shutdownin classSingleFrameApplication
-
getSelectByDistancePreference
public double getSelectByDistancePreference() -
setSelectByDistancePreference
public void setSelectByDistancePreference(double selectByDistancePreference) -
getSelectByOrderPreference
public int getSelectByOrderPreference() -
setSelectByOrderPreference
public void setSelectByOrderPreference(int selectByOrderPreference) -
getInsertStraightLineIntervalPreference
public int getInsertStraightLineIntervalPreference() -
setInsertStraightLineIntervalPreference
public void setInsertStraightLineIntervalPreference(int insertStraightLineIntervalPreference) -
getSelectBySignificancePreference
public double getSelectBySignificancePreference() -
setSelectBySignificancePreference
public void setSelectBySignificancePreference(double selectBySignificancePreference) -
getDeletePositionsShiftTimesPreference
public boolean getDeletePositionsShiftTimesPreference() -
setDeletePositionsShiftTimesPreference
public void setDeletePositionsShiftTimesPreference(boolean deletePositionsShiftTimesPreference) -
getSelectBySpeedPreference
public double getSelectBySpeedPreference() -
setSelectBySpeedPreference
public void setSelectBySpeedPreference(double selectBySpeedPreference) -
getFindPlacePreference
-
setFindPlacePreference
-
getCredentials
-
getUserNamePreference
-
setLogin
-
removeLogin
public void removeLogin() -
getUploadRoutePreference
-
setUploadRoutePreference
-
getAddPhotoPreference
-
setAddPhotoPreference
-
getAddAudioPreference
-
setAddAudioPreference
-
getTagStrategyPreference
-
getCategoryPreference
-
setCategoryPreference
-
getNumberPatternPreference
-
getNumberingStrategyPreference
-
getRouteServiceOperator
-
getCharacteristicsModel
-
getUnitSystemModel
-
getGoogleMapsServerModel
-
getTileServerMapManager
-
handleOpenError
-
handleOpenError
-
handleUnsupportedFormat
-
handleFileNotFound
-
sendErrorReport
-
openPositionList
-
getUrlModel
-
revertPositions
public void revertPositions() -
renamePositionList
-
selectPositionsInMap
public void selectPositionsInMap(int[] selectedPositions) -
selectPositionsInMap
-
getElevationServiceFacade
-
getGeocodingServiceFacade
-
getInsertPositionFacade
-
getRoutingServiceFacade
-
getDistanceAndTimeAggregator
-
getDataSourceManager
-
getDownloadManager
-
getPositionAugmenter
-
getAudioPlayer
-
getGeoTagger
-
getPhotoTimeZone
-
selectPositionsWithinDistanceToPredecessor
public int selectPositionsWithinDistanceToPredecessor(double distance) -
selectPositionsWithSpeedBelowOrEqualTo
public int selectPositionsWithSpeedBelowOrEqualTo(double kmh) -
selectAllButEveryNthPosition
public int[] selectAllButEveryNthPosition(int order) -
selectInsignificantPositions
- Throws:
InterruptedException
-
clearSelection
public void clearSelection() -
shiftTimesAfterPauses
public void shiftTimesAfterPauses(int[] indices) -
isMapViewAvailable
public boolean isMapViewAvailable() -
getMapCenter
-
getMapBoundingBox
-
getShowAllPositionsAfterLoading
-
getRecenterAfterZooming
-
getMapPreferencesModel
-
getTimeZone
-
showPositionMagnifier
-
getAvailableMapViews
-
getMapViewPreference
-
getMapViewCallback
-
isConvertPanelSelected
public boolean isConvertPanelSelected() -
isPointsOfInterestEnabled
protected boolean isPointsOfInterestEnabled() -
isWaypointTypeCountsEnabled
public boolean isWaypointTypeCountsEnabled() -
isPointsOfInterestPanelSelected
public boolean isPointsOfInterestPanelSelected() -
isPhotosEnabled
protected boolean isPhotosEnabled() -
isPhotosPanelSelected
public boolean isPhotosPanelSelected() -
isBrowsePanelSelected
public boolean isBrowsePanelSelected() -
getConvertPanel
-
getPointOfInterestPanel
-
getPhotoPanel
-
getBrowsePanel
-
$$$getRootComponent$$$
-
initializeServices
protected void initializeServices() -
initializeActions
protected void initializeActions() -
createAboutAction
-
getApiUrl
-
isSendCrashReportsEnabled
public static boolean isSendCrashReportsEnabled() -
setSendCrashReportsEnabled
public static void setSendCrashReportsEnabled(boolean enabled) -
initializeElevationServices
protected abstract void initializeElevationServices() -
updateElevationServices
protected abstract void updateElevationServices() -
initializeGeocodingServices
protected abstract void initializeGeocodingServices() -
initializeRoutingServices
protected abstract void initializeRoutingServices() -
updateRoutingServices
protected abstract void updateRoutingServices() -
downloadDependencies
protected void downloadDependencies() -
scanLocalMapsAndThemes
protected abstract void scanLocalMapsAndThemes() -
installBackgroundMap
protected abstract void installBackgroundMap() -
scanRemoteMapsAndThemes
protected abstract void scanRemoteMapsAndThemes()
-