Package mil.nga.geopackage.io
Class ZoomLevelProgress
- java.lang.Object
-
- mil.nga.geopackage.io.Progress
-
- mil.nga.geopackage.io.ZoomLevelProgress
-
- All Implemented Interfaces:
GeoPackageProgress,GeoPackageZoomLevelProgress
public class ZoomLevelProgress extends Progress implements GeoPackageZoomLevelProgress
Progress logger- Since:
- 3.3.0
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.io.Progress
active, countFrequency, decimalFormat, localCount, localTime, max, progress, timeFrequency, title, unit
-
-
Constructor Summary
Constructors Constructor Description ZoomLevelProgress(String title, int countFrequency, int timeFrequency)ConstructorZoomLevelProgress(String title, String unit, int countFrequency, int timeFrequency)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddZoomLevelProgress(int zoomLevel, int progress)Add to the total progress at the zoom levelIntegergetZoomLevelMax(int zoomLevel)Get the max at the zoom levelintgetZoomLevelProgress(int zoomLevel)Get the total progress at the zoom levelprotected voidlogProgress()Log the progressvoidsetZoomLevelMax(int zoomLevel, int max)Set the max progress value for the zoom level-
Methods inherited from class mil.nga.geopackage.io.Progress
addProgress, cancel, cleanupOnCancel, getCountFrequency, getMax, getPercentage, getProgress, getTimeFrequency, isActive, setCountFrequency, setMax, setTimeFrequency
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface mil.nga.geopackage.io.GeoPackageProgress
addProgress, cleanupOnCancel, isActive, setMax
-
-
-
-
Constructor Detail
-
ZoomLevelProgress
public ZoomLevelProgress(String title, int countFrequency, int timeFrequency)
Constructor- Parameters:
title- titlecountFrequency- count frequencytimeFrequency- time frequency
-
-
Method Detail
-
setZoomLevelMax
public void setZoomLevelMax(int zoomLevel, int max)Set the max progress value for the zoom level- Specified by:
setZoomLevelMaxin interfaceGeoPackageZoomLevelProgress- Parameters:
zoomLevel- zoom levelmax- max
-
logProgress
protected void logProgress()
Log the progress- Overrides:
logProgressin classProgress
-
addZoomLevelProgress
public void addZoomLevelProgress(int zoomLevel, int progress)Add to the total progress at the zoom level- Specified by:
addZoomLevelProgressin interfaceGeoPackageZoomLevelProgress- Parameters:
zoomLevel- zoom levelprogress- progress
-
getZoomLevelMax
public Integer getZoomLevelMax(int zoomLevel)
Get the max at the zoom level- Parameters:
zoomLevel- zoom level- Returns:
- max
-
getZoomLevelProgress
public int getZoomLevelProgress(int zoomLevel)
Get the total progress at the zoom level- Parameters:
zoomLevel- zoom level- Returns:
- progress
-
-