-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
193 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
arcgistool/src/main/java/cn/sddman/arcgistool/manager/ArcGisZoomManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package cn.sddman.arcgistool.manager; | ||
|
||
import com.esri.arcgisruntime.mapping.view.MapView; | ||
|
||
import cn.sddman.arcgistool.listener.ZoomClickListener; | ||
import cn.sddman.arcgistool.view.ArcGisZoomView; | ||
|
||
public class ArcGisZoomManager { | ||
private ArcGisZoomView arcGisZoomView; | ||
private MapView mMapView; | ||
|
||
public ArcGisZoomManager(ArcGisZoomView arcGisZoomView, MapView mMapView) { | ||
this.arcGisZoomView = arcGisZoomView; | ||
this.mMapView = mMapView; | ||
arcGisZoomView.init(mMapView); | ||
} | ||
public ArcGisZoomManager setZoomClickListener(ZoomClickListener zoomClickListener) { | ||
arcGisZoomView.setZoomClickListener(zoomClickListener); | ||
return this; | ||
} | ||
public ArcGisZoomManager setZoomWidth(int w){ | ||
arcGisZoomView.setZoomWidth(w); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager setZoomHeight(int h){ | ||
arcGisZoomView.setZoomHeight(h); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager setZoomBackground(int bg){ | ||
arcGisZoomView.setZoomBackground(bg); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager isHorizontal(boolean horizontal) { | ||
arcGisZoomView.isHorizontal(horizontal); | ||
return this; | ||
} | ||
|
||
|
||
public ArcGisZoomManager setZoomInNum(int num){ | ||
arcGisZoomView.setZoomInNum(num); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager setZoomOutNum(int num){ | ||
arcGisZoomView.setZoomOutNum(num); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager setZoomInImage(int zoomInImage) { | ||
arcGisZoomView.setZoomInImage(zoomInImage); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager setZoomOutImage(int zoomOutImage) { | ||
arcGisZoomView.setZoomOutImage(zoomOutImage); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager setShowText(boolean showText) { | ||
arcGisZoomView.setShowText(showText); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager setZoomInText(String zoomInText) { | ||
arcGisZoomView.setZoomInText(zoomInText); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager setZoomOutText(String zoomOutText) { | ||
arcGisZoomView.setZoomOutText(zoomOutText); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager setFontSize(int fontSize) { | ||
arcGisZoomView.setFontSize(fontSize); | ||
return this; | ||
} | ||
|
||
public ArcGisZoomManager setFontColor(int fontColor) { | ||
arcGisZoomView.setFontColor(fontColor); | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters