├── app ├── .gitignore ├── app-debug.apk ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── ids.xml │ │ │ ├── attrs.xml │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── themes.xml │ │ │ └── styles.xml │ │ ├── drawable │ │ │ ├── google.png │ │ │ ├── facebook.png │ │ │ ├── netflix.png │ │ │ ├── frown_cloud.png │ │ │ ├── ghostbuster.png │ │ │ └── dash.xml │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-hdpi │ │ │ ├── ic_maps_marker.png │ │ │ └── ic_action_github.png │ │ ├── drawable-mdpi │ │ │ ├── ic_maps_marker.png │ │ │ └── ic_action_github.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ ├── ic_maps_marker.png │ │ │ └── ic_action_github.png │ │ ├── drawable-xxhdpi │ │ │ ├── ic_maps_marker.png │ │ │ └── ic_action_github.png │ │ ├── drawable-xxxhdpi │ │ │ ├── ic_action_github.png │ │ │ └── ic_maps_marker.png │ │ ├── layout │ │ │ ├── layout_markers.xml │ │ │ ├── fragment_demo.xml │ │ │ ├── activity_main.xml │ │ │ └── listitem_demo.xml │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ └── menu │ │ │ └── listitem.xml │ │ ├── java │ │ └── com │ │ │ └── mypopsy │ │ │ └── staticmaps │ │ │ └── demo │ │ │ ├── adapter │ │ │ ├── BindableViewHolder.java │ │ │ ├── BindingArrayRecyclerAdapter.java │ │ │ └── ArrayRecyclerAdapter.java │ │ │ ├── app │ │ │ ├── BaseFragment.java │ │ │ └── RecyclerViewFragment.java │ │ │ ├── MainActivity.java │ │ │ ├── utils │ │ │ └── PaddingItemDecoration.java │ │ │ ├── glide │ │ │ ├── StaticMapModelLoader.java │ │ │ ├── GlideConfigurationModule.java │ │ │ └── CropCircleTransformation.java │ │ │ └── widget │ │ │ └── AspectLockedImageView.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── library ├── .gitignore ├── javadoc │ ├── package-list │ ├── resources │ │ ├── tab.gif │ │ ├── titlebar.gif │ │ ├── background.gif │ │ └── titlebar_end.gif │ ├── allclasses-noframe.html │ ├── allclasses-frame.html │ ├── com │ │ └── mypopsy │ │ │ └── maps │ │ │ ├── package-frame.html │ │ │ ├── package-tree.html │ │ │ ├── package-summary.html │ │ │ ├── StaticMap.Marker.html │ │ │ ├── StaticMap.MarkerGroup.html │ │ │ ├── StaticMap.GeoPoint.html │ │ │ ├── StaticMap.Path.html │ │ │ ├── StaticMap.Marker.Style.Size.html │ │ │ └── StaticMap.Type.html │ ├── index.html │ ├── deprecated-list.html │ ├── overview-tree.html │ ├── constant-values.html │ ├── help-doc.html │ └── stylesheet.css ├── build.gradle └── src │ └── main │ └── java │ └── com │ └── mypopsy │ └── maps │ └── internal │ ├── UrlBuilder.java │ └── PolyLine.java ├── settings.gradle ├── assets └── screenshot.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── README.md ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /library/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':library' 2 | -------------------------------------------------------------------------------- /library/javadoc/package-list: -------------------------------------------------------------------------------- 1 | com.mypopsy.maps 2 | -------------------------------------------------------------------------------- /app/app-debug.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/app-debug.apk -------------------------------------------------------------------------------- /assets/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/assets/screenshot.png -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Static Maps API 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /library/javadoc/resources/tab.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/library/javadoc/resources/tab.gif -------------------------------------------------------------------------------- /app/src/main/res/drawable/google.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable/google.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable/facebook.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/netflix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable/netflix.png -------------------------------------------------------------------------------- /library/javadoc/resources/titlebar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/library/javadoc/resources/titlebar.gif -------------------------------------------------------------------------------- /app/src/main/res/drawable/frown_cloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable/frown_cloud.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ghostbuster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable/ghostbuster.png -------------------------------------------------------------------------------- /library/javadoc/resources/background.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/library/javadoc/resources/background.gif -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/javadoc/resources/titlebar_end.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/library/javadoc/resources/titlebar_end.gif -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_maps_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable-hdpi/ic_maps_marker.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_maps_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable-mdpi/ic_maps_marker.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable-hdpi/ic_action_github.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable-mdpi/ic_action_github.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_maps_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable-xhdpi/ic_maps_marker.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_maps_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable-xxhdpi/ic_maps_marker.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable-xhdpi/ic_action_github.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_github.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_action_github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable-xxxhdpi/ic_action_github.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_maps_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/renaudcerrato/static-maps-api/HEAD/app/src/main/res/drawable-xxxhdpi/ic_maps_marker.png -------------------------------------------------------------------------------- /app/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/dash.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/layout/layout_markers.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/adapter/BindableViewHolder.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo.adapter; 2 | 3 | import android.support.v7.widget.RecyclerView; 4 | import android.view.View; 5 | 6 | public abstract class BindableViewHolder extends RecyclerView.ViewHolder { 7 | public BindableViewHolder(View itemView) { 8 | super(itemView); 9 | } 10 | protected abstract void bind(T object); 11 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/listitem.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/adapter/BindingArrayRecyclerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo.adapter; 2 | 3 | public abstract class BindingArrayRecyclerAdapter extends ArrayRecyclerAdapter> { 4 | 5 | @SuppressWarnings("unchecked") 6 | @Override 7 | public void onBindViewHolder(BindableViewHolder holder, int position) { 8 | holder.bind(getItem(position)); 9 | } 10 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_demo.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/app/BaseFragment.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo.app; 2 | 3 | import android.os.Bundle; 4 | import android.support.v4.app.Fragment; 5 | import android.view.View; 6 | 7 | import butterknife.ButterKnife; 8 | 9 | abstract public class BaseFragment extends Fragment { 10 | 11 | @Override 12 | public void onViewCreated(View view, Bundle savedInstanceState) { 13 | super.onViewCreated(view, savedInstanceState); 14 | ButterKnife.bind(this, view); 15 | } 16 | 17 | @Override 18 | public void onDestroyView() { 19 | super.onDestroyView(); 20 | ButterKnife.unbind(this); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo; 2 | 3 | import android.content.Intent; 4 | import android.net.Uri; 5 | import android.os.Bundle; 6 | import android.support.v7.app.AppCompatActivity; 7 | import android.view.View; 8 | 9 | public class MainActivity extends AppCompatActivity { 10 | 11 | @Override 12 | protected void onCreate(Bundle savedInstanceState) { 13 | super.onCreate(savedInstanceState); 14 | setContentView(R.layout.activity_main); 15 | } 16 | 17 | public void onGithubClick(View view) { 18 | startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(BuildConfig.PROJECT_URL))); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/renaud/Android/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/utils/PaddingItemDecoration.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo.utils; 2 | 3 | import android.graphics.Rect; 4 | import android.support.v7.widget.RecyclerView; 5 | import android.view.View; 6 | 7 | public class PaddingItemDecoration extends RecyclerView.ItemDecoration { 8 | 9 | private final int mLeft, mTop, mRight, mBottom; 10 | 11 | public PaddingItemDecoration(int left, int top, int right, int bottom) { 12 | mLeft = left; 13 | mTop = top; 14 | mRight = right; 15 | mBottom = bottom; 16 | } 17 | 18 | @Override 19 | public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { 20 | outRect.set(mLeft, mTop, mRight, mBottom); 21 | } 22 | } -------------------------------------------------------------------------------- /library/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'java' 2 | apply plugin: 'maven' 3 | 4 | dependencies { 5 | compile fileTree(dir: 'libs', include: ['*.jar']) 6 | compile 'com.google.code.findbugs:jsr305:3.0.1' 7 | } 8 | 9 | tasks.withType(JavaCompile) { 10 | sourceCompatibility = "1.7" 11 | targetCompatibility = "1.7" 12 | } 13 | 14 | task sourcesJar(type: Jar, dependsOn: classes) { 15 | classifier = 'sources' 16 | from sourceSets.main.allSource 17 | } 18 | 19 | task javadocJar(type: Jar, dependsOn: javadoc) { 20 | classifier = 'javadoc' 21 | from javadoc.destinationDir 22 | } 23 | 24 | artifacts { 25 | archives sourcesJar 26 | archives javadocJar 27 | } 28 | 29 | javadoc { 30 | destinationDir file('javadoc') 31 | exclude '**/internal/**' 32 | } 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # files for the dex VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | build/ 16 | 17 | # Local configuration file (sdk path, etc) 18 | local.properties 19 | 20 | # Eclipse project files 21 | .classpath 22 | .project 23 | 24 | # Windows thumbnail db 25 | .DS_Store 26 | 27 | # IDEA/Android Studio project files, because 28 | # the project can be imported from settings.gradle 29 | .idea 30 | *.iml 31 | 32 | # Old-style IDEA project files 33 | *.ipr 34 | *.iws 35 | 36 | # Local IDEA workspace 37 | .idea/workspace.xml 38 | 39 | # Gradle cache 40 | .gradle 41 | 42 | # Sandbox stuff 43 | _sandbox 44 | 45 | # Backup files 46 | *~ 47 | 48 | *.trace 49 | logs/ 50 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/glide/StaticMapModelLoader.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo.glide; 2 | 3 | import android.content.Context; 4 | 5 | import com.bumptech.glide.load.model.stream.BaseGlideUrlLoader; 6 | import com.mypopsy.maps.StaticMap; 7 | 8 | public class StaticMapModelLoader extends BaseGlideUrlLoader { 9 | 10 | public StaticMapModelLoader(Context context) { 11 | super(context); 12 | } 13 | 14 | @Override 15 | protected String getUrl(StaticMap model, int width, int height) { 16 | int scale = model.scale(); 17 | 18 | // if default scale, use scale(2) to get crisper images. 19 | // scale(4) is reserved to premium static map users. 20 | if(scale == 1) { 21 | model.scale(scale = 2); 22 | } 23 | 24 | return model.size(width/scale, height/scale).toString(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 13 | 14 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 13 | 14 | 18 | 19 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/glide/GlideConfigurationModule.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo.glide; 2 | 3 | import android.content.Context; 4 | 5 | import com.bumptech.glide.Glide; 6 | import com.bumptech.glide.GlideBuilder; 7 | import com.bumptech.glide.load.model.GenericLoaderFactory; 8 | import com.bumptech.glide.load.model.ModelLoader; 9 | import com.bumptech.glide.load.model.ModelLoaderFactory; 10 | import com.bumptech.glide.module.GlideModule; 11 | import com.mypopsy.maps.StaticMap; 12 | 13 | import java.io.InputStream; 14 | 15 | public class GlideConfigurationModule implements GlideModule { 16 | 17 | @Override 18 | public void applyOptions(Context context, GlideBuilder builder) { 19 | 20 | } 21 | 22 | @Override 23 | public void registerComponents(Context context, Glide glide) { 24 | glide.register(StaticMap.class, InputStream.class, new ModelLoaderFactory() { 25 | @Override 26 | public ModelLoader build(Context context, GenericLoaderFactory factories) { 27 | return new StaticMapModelLoader(context); 28 | } 29 | 30 | @Override 31 | public void teardown() { 32 | //nothing to do 33 | } 34 | }); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /library/src/main/java/com/mypopsy/maps/internal/UrlBuilder.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.maps.internal; 2 | 3 | import java.io.UnsupportedEncodingException; 4 | import java.net.URLEncoder; 5 | 6 | import javax.annotation.Nullable; 7 | 8 | public class UrlBuilder { 9 | 10 | private static final String UTF8 = "UTF-8"; 11 | private final String url; 12 | private StringBuilder query; 13 | 14 | public UrlBuilder(String url) { 15 | this.url = url; 16 | } 17 | 18 | public UrlBuilder appendQuery(String key, Object object) { 19 | return appendQuery(key, object.toString()); 20 | } 21 | 22 | public UrlBuilder appendQuery(String key, @Nullable String value) { 23 | if(query == null) query = new StringBuilder(); 24 | if(query.length() > 0) query.append('&'); 25 | query.append(encode(key)); 26 | if(value != null) query.append('=').append(encode(value)); 27 | return this; 28 | } 29 | 30 | @Override 31 | public String toString() { 32 | if(query == null || query.length() == 0) return url; 33 | return url + '?' + query; 34 | } 35 | 36 | static private String encode(String text) { 37 | try { 38 | return URLEncoder.encode(text, UTF8); 39 | } catch (UnsupportedEncodingException e) { 40 | throw new RuntimeException(e); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /library/src/main/java/com/mypopsy/maps/internal/PolyLine.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.maps.internal; 2 | 3 | import com.mypopsy.maps.StaticMap; 4 | 5 | final public class PolyLine { 6 | 7 | private PolyLine() {} 8 | 9 | public static String encode(StaticMap.GeoPoint[] points) throws IllegalArgumentException { 10 | StringBuilder sb = new StringBuilder(); 11 | int prevLat = 0, prevLng = 0; 12 | for (StaticMap.GeoPoint point: points) { 13 | if(!point.hasCoordinates()) return null; 14 | int lat = (int) (point.latitude()*1E5); 15 | int lng = (int) (point.longitude()*1E5); 16 | sb.append(encodeSigned(lat - prevLat)); 17 | sb.append(encodeSigned(lng - prevLng)); 18 | prevLat = lat; 19 | prevLng = lng; 20 | } 21 | return sb.toString(); 22 | } 23 | 24 | private static StringBuilder encodeSigned(int num) { 25 | int sgn_num = num << 1; 26 | if (num < 0) sgn_num = ~sgn_num; 27 | return encode(sgn_num); 28 | } 29 | 30 | private static StringBuilder encode(int num) { 31 | StringBuilder buffer = new StringBuilder(); 32 | while (num >= 0x20) { 33 | int nextValue = (0x20 | (num & 0x1f)) + 63; 34 | buffer.append((char) (nextValue)); 35 | num >>= 5; 36 | } 37 | num += 63; 38 | buffer.append((char) (num)); 39 | return buffer; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply plugin: 'com.neenbedankt.android-apt' 3 | 4 | android { 5 | compileSdkVersion 23 6 | buildToolsVersion "23.0.2" 7 | 8 | defaultConfig { 9 | applicationId "com.mypopsy.staticmaps" 10 | minSdkVersion 15 11 | targetSdkVersion 23 12 | versionCode 1 13 | versionName "1.0" 14 | buildConfigField "String", "PROJECT_URL", '"https://github.com/renaudcerrato/static-maps-api"' 15 | } 16 | buildTypes { 17 | release { 18 | minifyEnabled false 19 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 20 | } 21 | } 22 | } 23 | 24 | dependencies { 25 | compile fileTree(dir: 'libs', include: ['*.jar']) 26 | compile project(':library') 27 | compile 'com.android.support:appcompat-v7:23.1.1' 28 | compile 'com.android.support:recyclerview-v7:23.1.1' 29 | compile 'com.android.support:cardview-v7:23.1.1' 30 | compile 'com.android.support:design:23.1.1' 31 | //ButterKnife 32 | compile 'com.jakewharton:butterknife:7.0.1' 33 | // Glide 34 | compile 'com.github.bumptech.glide:glide:3.6.1' 35 | } 36 | 37 | afterEvaluate { project -> 38 | android.applicationVariants.each { variant -> 39 | 40 | Task copyApk = task(("release" + variant.variantData.name.capitalize()), type:Copy) { 41 | from variant.outputs[0].outputFile 42 | destinationDir project.projectDir 43 | dependsOn variant.assemble 44 | } 45 | 46 | variant.assemble.finalizedBy(copyApk) 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /library/javadoc/allclasses-noframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Classes (library API) 7 | 8 | 9 | 10 | 11 |

All Classes

12 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/layout/listitem_demo.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 19 | 20 | 23 | 29 | 30 | 36 | 37 | 38 | 39 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /library/javadoc/allclasses-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Classes (library API) 7 | 8 | 9 | 10 | 11 |

All Classes

12 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /library/javadoc/com/mypopsy/maps/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.mypopsy.maps (library API) 7 | 8 | 9 | 10 | 11 |

com.mypopsy.maps

12 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/app/RecyclerViewFragment.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo.app; 2 | 3 | import android.support.annotation.Nullable; 4 | import android.support.v4.app.Fragment; 5 | import android.support.v7.widget.RecyclerView; 6 | import android.view.View; 7 | 8 | import com.mypopsy.staticmaps.demo.R; 9 | 10 | import butterknife.Bind; 11 | 12 | abstract public class RecyclerViewFragment extends BaseFragment { 13 | 14 | public enum Status { 15 | DEFAULT, 16 | LOADING, 17 | ERROR, 18 | EMPTY, 19 | } 20 | 21 | @Bind(android.R.id.list) 22 | RecyclerView mRecyclerView; 23 | 24 | @Bind(android.R.id.empty) @Nullable 25 | View mEmptyView; 26 | 27 | @Bind(R.id.loading) @Nullable 28 | View mLoadingView; 29 | 30 | @Bind(R.id.error) @Nullable 31 | View mErrorView; 32 | 33 | public RecyclerView getRecyclerView() { 34 | return mRecyclerView; 35 | } 36 | 37 | protected void setAdapter(RecyclerView.Adapter adapter) { 38 | mRecyclerView.setAdapter(adapter); 39 | } 40 | 41 | protected RecyclerView.Adapter getAdapter() { 42 | if(mRecyclerView == null) return null; 43 | return mRecyclerView.getAdapter(); 44 | } 45 | 46 | protected boolean isListShown() { 47 | if(mRecyclerView == null) return false; 48 | return mRecyclerView.getVisibility() == View.VISIBLE; 49 | } 50 | 51 | protected void setListShown(boolean shown) { 52 | setListShown(shown ? Status.DEFAULT : Status.EMPTY); 53 | } 54 | 55 | protected void setListShown(Status status) { 56 | switch(status) { 57 | case DEFAULT: 58 | setVisibility(View.GONE, mLoadingView, mErrorView, mEmptyView); 59 | break; 60 | case LOADING: 61 | setVisibility(View.GONE, mEmptyView, mErrorView); 62 | setVisibility(View.VISIBLE, mLoadingView); 63 | break; 64 | case ERROR: 65 | setVisibility(View.GONE, mLoadingView, mEmptyView); 66 | setVisibility(View.VISIBLE, mErrorView); 67 | break; 68 | case EMPTY: 69 | setVisibility(View.GONE, mLoadingView, mErrorView); 70 | setVisibility(View.VISIBLE, mEmptyView); 71 | break; 72 | } 73 | 74 | setVisibility(status == Status.DEFAULT ? View.VISIBLE : View.INVISIBLE, mRecyclerView); 75 | } 76 | 77 | static private void setVisibility(int visibility, View ...views) { 78 | for(View v: views) 79 | if(v != null && v.getVisibility() != visibility) 80 | v.setVisibility(visibility); 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/glide/CropCircleTransformation.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo.glide; 2 | 3 | /** 4 | * Copyright (C) 2015 Wasabeef 5 | * 6 | * Licensed under the Apache License, Version 2.0 (the "License"); 7 | * you may not use this file except in compliance with the License. 8 | * You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | import android.content.Context; 20 | import android.graphics.Bitmap; 21 | import android.graphics.BitmapShader; 22 | import android.graphics.Canvas; 23 | import android.graphics.Matrix; 24 | import android.graphics.Paint; 25 | import com.bumptech.glide.Glide; 26 | import com.bumptech.glide.load.Transformation; 27 | import com.bumptech.glide.load.engine.Resource; 28 | import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; 29 | import com.bumptech.glide.load.resource.bitmap.BitmapResource; 30 | 31 | public class CropCircleTransformation implements Transformation { 32 | 33 | private BitmapPool mBitmapPool; 34 | 35 | public CropCircleTransformation(Context context) { 36 | this(Glide.get(context).getBitmapPool()); 37 | } 38 | 39 | public CropCircleTransformation(BitmapPool pool) { 40 | this.mBitmapPool = pool; 41 | } 42 | 43 | @Override 44 | public Resource transform(Resource resource, int outWidth, int outHeight) { 45 | Bitmap source = resource.get(); 46 | int size = Math.min(source.getWidth(), source.getHeight()); 47 | 48 | int width = (source.getWidth() - size) / 2; 49 | int height = (source.getHeight() - size) / 2; 50 | 51 | Bitmap bitmap = mBitmapPool.get(size, size, Bitmap.Config.ARGB_8888); 52 | if (bitmap == null) { 53 | bitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888); 54 | } 55 | 56 | Canvas canvas = new Canvas(bitmap); 57 | Paint paint = new Paint(); 58 | BitmapShader shader = 59 | new BitmapShader(source, BitmapShader.TileMode.CLAMP, BitmapShader.TileMode.CLAMP); 60 | if (width != 0 || height != 0) { 61 | // source isn't square, move viewport to center 62 | Matrix matrix = new Matrix(); 63 | matrix.setTranslate(-width, -height); 64 | shader.setLocalMatrix(matrix); 65 | } 66 | paint.setShader(shader); 67 | paint.setAntiAlias(true); 68 | 69 | float r = size / 2f; 70 | canvas.drawCircle(r, r, r, paint); 71 | 72 | return BitmapResource.obtain(bitmap, mBitmapPool); 73 | } 74 | 75 | @Override public String getId() { 76 | return "CropCircleTransformation()"; 77 | } 78 | } -------------------------------------------------------------------------------- /library/javadoc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | library API 7 | 59 | 60 | 61 | 62 | 63 | 64 | <noscript> 65 | <div>JavaScript is disabled on your browser.</div> 66 | </noscript> 67 | <h2>Frame Alert</h2> 68 | <p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="com/mypopsy/maps/package-summary.html">Non-frame version</a>.</p> 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/widget/AspectLockedImageView.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo.widget; 2 | 3 | import android.content.Context; 4 | import android.content.res.TypedArray; 5 | import android.util.AttributeSet; 6 | import android.util.Log; 7 | import android.widget.ImageView; 8 | 9 | import com.mypopsy.staticmaps.demo.R; 10 | 11 | 12 | public class AspectLockedImageView extends ImageView { 13 | 14 | private static final boolean DEBUG = false; 15 | private double mAspectRatio; 16 | 17 | public AspectLockedImageView(Context context) { 18 | super(context); 19 | init(context, null, 0); 20 | } 21 | 22 | public AspectLockedImageView(Context context, AttributeSet attrs) { 23 | super(context, attrs); 24 | init(context, attrs, 0); 25 | } 26 | 27 | public AspectLockedImageView(Context context, AttributeSet attrs, int defStyle) { 28 | super(context, attrs, defStyle); 29 | init(context, attrs, defStyle); 30 | } 31 | 32 | private void init(Context context, AttributeSet attrs, int defStyle) { 33 | TypedArray a = context.getTheme().obtainStyledAttributes(attrs, R.styleable.AspectLockedImageView, defStyle, 0); 34 | mAspectRatio = a.getFloat(R.styleable.AspectLockedImageView_aspectRatio, 0); 35 | a.recycle(); 36 | } 37 | 38 | public void setAspectRatio(double ratio) { 39 | if (ratio != mAspectRatio) { 40 | mAspectRatio = ratio; 41 | requestLayout(); 42 | } 43 | } 44 | 45 | public double getAspectRatio() { 46 | return mAspectRatio; 47 | } 48 | 49 | @Override 50 | protected void onMeasure(int widthSpec, int heightSpec) { 51 | 52 | int widthMode = MeasureSpec.getMode(widthSpec); 53 | int heightMode = MeasureSpec.getMode(heightSpec); 54 | 55 | 56 | if (mAspectRatio == 0.0 || ((widthMode == MeasureSpec.EXACTLY && 57 | heightMode == MeasureSpec.EXACTLY))) { 58 | super.onMeasure(widthSpec, heightSpec); 59 | return; 60 | } 61 | 62 | int lockedWidth=MeasureSpec.getSize(widthSpec); 63 | int lockedHeight=MeasureSpec.getSize(heightSpec); 64 | 65 | if(DEBUG) { 66 | Log.d(getClass().getSimpleName(), "{ratio=" + mAspectRatio + ", " + 67 | "lockedWidth=" + lockedWidth + ", lockedHeight=" + lockedHeight + ", " + 68 | "widthMode=" + (widthMode == MeasureSpec.EXACTLY ? "exactly" : widthMode == MeasureSpec.AT_MOST ? "at_most" : "unspecified") + ", " + 69 | "heightMode=" + (heightMode == MeasureSpec.EXACTLY ? "exactly" : heightMode == MeasureSpec.AT_MOST ? "at_most" : "unspecified") + "}"); 70 | } 71 | 72 | // Get the padding of the border background. 73 | int hPadding=getPaddingLeft() + getPaddingRight(); 74 | int vPadding=getPaddingTop() + getPaddingBottom(); 75 | 76 | // Resize the preview frame with correct aspect ratio. 77 | lockedWidth-=hPadding; 78 | lockedHeight-=vPadding; 79 | 80 | if (lockedHeight > 0 && ((lockedWidth > lockedHeight * mAspectRatio) 81 | || widthMode == MeasureSpec.UNSPECIFIED)) { 82 | lockedWidth=(int)(lockedHeight * mAspectRatio + .5); 83 | } 84 | else { 85 | lockedHeight=(int)(lockedWidth / mAspectRatio + .5); 86 | } 87 | 88 | // Add the padding of the border. 89 | lockedWidth+=hPadding; 90 | lockedHeight+=vPadding; 91 | 92 | // Ask children to follow the new preview dimension. 93 | super.onMeasure(MeasureSpec.makeMeasureSpec(lockedWidth, 94 | MeasureSpec.EXACTLY), 95 | MeasureSpec.makeMeasureSpec(lockedHeight, 96 | MeasureSpec.EXACTLY)); 97 | } 98 | } -------------------------------------------------------------------------------- /library/javadoc/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Deprecated List (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 62 | 63 |
64 |

Deprecated API

65 |

Contents

66 |
67 | 68 |
69 | 70 | 71 | 72 | 73 | 81 |
82 | 109 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Google Static Maps API [![](https://jitpack.io/v/renaudcerrato/static-maps-api.svg)](https://jitpack.io/#renaudcerrato/static-maps-api) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-static--maps--api-green.svg?style=true)](https://android-arsenal.com/details/1/3103) 2 | 3 | 4 | Fluent and clean Java interface for [Google Static Maps API](https://developers.google.com/maps/documentation/static-maps/). 5 | 6 | > [DEMO APK](https://github.com/renaudcerrato/static-maps-api/raw/master/app/app-debug.apk) 7 | 8 |

9 | 10 | # Why? 11 | 12 | Because using Google Play Services to show a Google Map may be overkill, or simply because Google Play Services are not available (Amazon, I'm looking at you!). 13 | 14 | 15 | # How? 16 | 17 | Most of the official API is available under a fluent java interface. You'll find below some example usage, for more details, see the [official documentation](https://developers.google.com/maps/documentation/static-maps/intro) or look at the [demo source](https://github.com/renaudcerrato/static-maps-api/blob/master/app/src/main/java/com/mypopsy/staticmaps/demo/ui/DemoFragment.java). 18 | 19 | 20 | ## Basic usage 21 | 22 | ```java 23 | StaticMap map = new StaticMap().center("NYC").size(320, 240); 24 | load(map.toURL()); // load into your image view 25 | ``` 26 |

27 | 28 | ## Map Type 29 | 30 | ```java 31 | new StaticMap().center("NYC").type(HYBRID).size(320, 240); 32 | ``` 33 |

34 | 35 | ## Markers 36 | 37 | ### Custom colors 38 | 39 | ```java 40 | new StaticMap() 41 | .size(320, 240) 42 | .marker(Style.BLUE, new GeoPoint("Tour Eiffel")) 43 | .marker(Style.RED, new GeoPoint("Cathédrale Notre Dame")) 44 | .marker(Style.GREEN, new GeoPoint("Sacré-Coeur, 75018")) 45 | .marker(Style.ORANGE, new GeoPoint("Musée du Louvre")) 46 | .marker(Style.PURPLE, new GeoPoint("Arc de Triomphe")); 47 | ``` 48 | 49 | 50 |

51 | 52 | 53 | 54 | 55 | ### Custom icons 56 | ```java 57 | new StaticMap() 58 | .size(320, 240) 59 | .marker(Style.builder().icon(ICON_URL_GHOSTBUSTER).build(), new GeoPoint(40.7195532,-74.0067987)) 60 | .marker(Style.RED.toBuilder().label('A').build(), new GeoPoint(40.7529234,-73.9827515)) 61 | .marker(Style.GREEN.toBuilder().label('B').build(), new GeoPoint("Columbia University, NYC")); 62 | ``` 63 | 64 |

65 | 66 | ## Path 67 | 68 | ### Line 69 | 70 | ```java 71 | new StaticMap() 72 | .size(320, 240) 73 | .path(Path.Style.builder().color(BLUE).build(), 74 | new GeoPoint(40.737102,-73.990318), 75 | new GeoPoint(40.749825,-73.987963), 76 | new GeoPoint(40.752946,-73.987384), 77 | new GeoPoint(40.755823,-73.986397)); 78 | ``` 79 | 80 |

81 | ### Filled 82 | 83 | ```java 84 | new StaticMap() 85 | .size(320, 240) 86 | .path(Path.Style.builder().color(Color.TRANSPARENT).fill(0x66ff0000).build(), 87 | new GeoPoint("Miami, Florida"), 88 | new GeoPoint("San Juan, Puerto Rico"), 89 | new GeoPoint("Bermuda Island")); 90 | ``` 91 | 92 |

93 | 94 | # Install 95 | 96 | This repository can be found on JitPack: 97 | 98 | https://jitpack.io/#renaudcerrato/static-maps-api 99 | 100 | Add it in your root build.gradle at the end of repositories: 101 | ``` 102 | allprojects { 103 | repositories { 104 | ... 105 | maven { url "https://jitpack.io" } 106 | } 107 | } 108 | ``` 109 | 110 | Add the dependency: 111 | ``` 112 | dependencies { 113 | compile 'com.github.renaudcerrato:static-maps-api:1.0.4' 114 | } 115 | ``` 116 | 117 | Or you can simply download the jars: 118 | 119 | * [static-maps-api-1.0.4.jar](https://jitpack.io/com/github/renaudcerrato/static-maps-api/1.0.2/static-maps-api-1.0.4.jar) 120 | * [static-maps-api-1.0.4-javadoc.jar](https://jitpack.io/com/github/renaudcerrato/static-maps-api/1.0.2/static-maps-api-1.0.4-javadoc.jar) 121 | * [static-maps-api-1.0.4-sources.jar](https://jitpack.io/com/github/renaudcerrato/static-maps-api/1.0.2/static-maps-api-1.0.4-sources.jar) 122 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /app/src/main/java/com/mypopsy/staticmaps/demo/adapter/ArrayRecyclerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.mypopsy.staticmaps.demo.adapter; 2 | 3 | import android.support.v7.widget.RecyclerView; 4 | 5 | import java.util.ArrayList; 6 | import java.util.Arrays; 7 | import java.util.Collection; 8 | import java.util.Collections; 9 | import java.util.Comparator; 10 | import java.util.List; 11 | 12 | public abstract class ArrayRecyclerAdapter 13 | extends RecyclerView.Adapter { 14 | 15 | /** 16 | * Contains the list of objects that represent the data of this ArrayAdapter. 17 | * The content of this list is referred to as "the array" in the documentation. 18 | */ 19 | private List mObjects; 20 | /** 21 | * Lock used to modify the content of {@link #mObjects}. Any write operation 22 | * performed on the array should be synchronized on this lock. 23 | */ 24 | private final Object mLock = new Object(); 25 | /** 26 | * Indicates whether or not {@link #notifyDataSetChanged()} must be called whenever 27 | * {@link #mObjects} is modified. 28 | */ 29 | private boolean mNotifyOnChange = true; 30 | 31 | public ArrayRecyclerAdapter() { 32 | this(new ArrayList()); 33 | } 34 | 35 | public ArrayRecyclerAdapter(T[] objects) { 36 | this(Arrays.asList(objects)); 37 | } 38 | 39 | public ArrayRecyclerAdapter(List objects) { 40 | mObjects = objects; 41 | } 42 | 43 | /** 44 | * Adds the specified object at the end of the array. 45 | * 46 | * @param object The object to add at the end of the array. 47 | */ 48 | public void add(T object) { 49 | int pos; 50 | synchronized (mLock) { 51 | pos = getItemCount(); 52 | mObjects.add(object); 53 | } 54 | if (mNotifyOnChange) notifyItemInserted(pos); 55 | } 56 | /** 57 | * Adds the specified Collection at the end of the array. 58 | * 59 | * @param collection The Collection to add at the end of the array. 60 | */ 61 | public void addAll(Collection collection) { 62 | int pos; 63 | synchronized (mLock) { 64 | pos = getItemCount(); 65 | mObjects.addAll(collection); 66 | } 67 | if (mNotifyOnChange) notifyItemRangeInserted(pos, collection.size()); 68 | } 69 | /** 70 | * Adds the specified items at the end of the array. 71 | * 72 | * @param items The items to add at the end of the array. 73 | */ 74 | public void addAll(T ... items) { 75 | int start; 76 | synchronized (mLock) { 77 | start = getItemCount(); 78 | Collections.addAll(mObjects, items); 79 | } 80 | if (mNotifyOnChange) notifyItemRangeInserted(start, items.length); 81 | } 82 | /** 83 | * Inserts the specified object at the specified index in the array. 84 | * 85 | * @param object The object to insert into the array. 86 | * @param index The index at which the object must be inserted. 87 | */ 88 | public void insert(T object, int index) { 89 | synchronized (mLock) { 90 | mObjects.add(index, object); 91 | } 92 | if (mNotifyOnChange) notifyItemInserted(index); 93 | } 94 | /** 95 | * Removes the specified object from the array. 96 | * 97 | * @param object The object to remove. 98 | */ 99 | public void remove(T object) { 100 | int pos; 101 | synchronized (mLock) { 102 | pos = getPosition(object); 103 | if(pos == -1) return; 104 | mObjects.remove(pos); 105 | } 106 | if (mNotifyOnChange) notifyItemRemoved(pos); 107 | } 108 | /** 109 | * Remove all elements from the list. 110 | */ 111 | public void clear() { 112 | synchronized (mLock) { 113 | mObjects.clear(); 114 | } 115 | if (mNotifyOnChange) notifyDataSetChanged(); 116 | } 117 | /** 118 | * Sorts the content of this adapter using the specified comparator. 119 | * 120 | * @param comparator The comparator used to sort the objects contained 121 | * in this adapter. 122 | */ 123 | public void sort(Comparator comparator) { 124 | synchronized (mLock) { 125 | Collections.sort(mObjects, comparator); 126 | } 127 | if (mNotifyOnChange) notifyDataSetChanged(); 128 | } 129 | 130 | /** 131 | * Control whether methods that change the list ({@link #add}, 132 | * {@link #insert}, {@link #remove}, {@link #clear}) automatically call 133 | * {@link #notifyDataSetChanged}. If set to false, caller must 134 | * manually call notifyDataSetChanged() to have the changes 135 | * reflected in the attached view. 136 | * 137 | * The default is true, and calling notifyDataSetChanged() 138 | * resets the flag to true. 139 | * 140 | * @param notifyOnChange if true, modifications to the list will 141 | * automatically call {@link 142 | * #notifyDataSetChanged} 143 | */ 144 | public void setNotifyOnChange(boolean notifyOnChange) { 145 | mNotifyOnChange = notifyOnChange; 146 | } 147 | 148 | /** 149 | * {@inheritDoc} 150 | */ 151 | public int getItemCount() { 152 | return mObjects.size(); 153 | } 154 | /** 155 | * {@inheritDoc} 156 | */ 157 | public T getItem(int position) { 158 | return mObjects.get(position); 159 | } 160 | /** 161 | * Returns the position of the specified item in the array. 162 | * 163 | * @param item The item to retrieve the position of. 164 | * 165 | * @return The position of the specified item. 166 | */ 167 | public int getPosition(T item) { 168 | return mObjects.indexOf(item); 169 | } 170 | /** 171 | * {@inheritDoc} 172 | */ 173 | public long getItemId(int position) { 174 | return position; 175 | } 176 | } -------------------------------------------------------------------------------- /library/javadoc/overview-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Class Hierarchy (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 62 | 63 |
64 |

Hierarchy For All Packages

65 | Package Hierarchies: 66 | 69 |
70 |
71 |

Class Hierarchy

72 | 90 |

Enum Hierarchy

91 | 104 |
105 | 106 |
107 | 108 | 109 | 110 | 111 | 119 |
120 | 147 | 148 | 149 | 150 | -------------------------------------------------------------------------------- /library/javadoc/com/mypopsy/maps/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.mypopsy.maps Class Hierarchy (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 62 | 63 |
64 |

Hierarchy For Package com.mypopsy.maps

65 |
66 |
67 |

Class Hierarchy

68 | 86 |

Enum Hierarchy

87 | 100 |
101 | 102 |
103 | 104 | 105 | 106 | 107 | 115 |
116 | 143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /library/javadoc/com/mypopsy/maps/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.mypopsy.maps (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 62 | 63 |
64 |

Package com.mypopsy.maps

65 |
66 |
67 | 147 |
148 | 149 |
150 | 151 | 152 | 153 | 154 | 162 |
163 | 190 | 191 | 192 | 193 | -------------------------------------------------------------------------------- /library/javadoc/constant-values.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Constant Field Values (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 62 | 63 |
64 |

Constant Field Values

65 |

Contents

66 | 69 |
70 |
71 | 72 | 73 |

com.mypopsy.*

74 | 168 |
169 | 170 |
171 | 172 | 173 | 174 | 175 | 183 |
184 | 211 | 212 | 213 | 214 | -------------------------------------------------------------------------------- /library/javadoc/help-doc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | API Help (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 62 | 63 |
64 |

How This API Document Is Organized

65 |
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
66 |
67 |
68 |
    69 |
  • 70 |

    Package

    71 |

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    72 |
      73 |
    • Interfaces (italic)
    • 74 |
    • Classes
    • 75 |
    • Enums
    • 76 |
    • Exceptions
    • 77 |
    • Errors
    • 78 |
    • Annotation Types
    • 79 |
    80 |
  • 81 |
  • 82 |

    Class/Interface

    83 |

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    84 |
      85 |
    • Class inheritance diagram
    • 86 |
    • Direct Subclasses
    • 87 |
    • All Known Subinterfaces
    • 88 |
    • All Known Implementing Classes
    • 89 |
    • Class/interface declaration
    • 90 |
    • Class/interface description
    • 91 |
    92 |
      93 |
    • Nested Class Summary
    • 94 |
    • Field Summary
    • 95 |
    • Constructor Summary
    • 96 |
    • Method Summary
    • 97 |
    98 |
      99 |
    • Field Detail
    • 100 |
    • Constructor Detail
    • 101 |
    • Method Detail
    • 102 |
    103 |

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    104 |
  • 105 |
  • 106 |

    Annotation Type

    107 |

    Each annotation type has its own separate page with the following sections:

    108 |
      109 |
    • Annotation Type declaration
    • 110 |
    • Annotation Type description
    • 111 |
    • Required Element Summary
    • 112 |
    • Optional Element Summary
    • 113 |
    • Element Detail
    • 114 |
    115 |
  • 116 |
  • 117 |

    Enum

    118 |

    Each enum has its own separate page with the following sections:

    119 |
      120 |
    • Enum declaration
    • 121 |
    • Enum description
    • 122 |
    • Enum Constant Summary
    • 123 |
    • Enum Constant Detail
    • 124 |
    125 |
  • 126 |
  • 127 |

    Tree (Class Hierarchy)

    128 |

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    129 |
      130 |
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • 131 |
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • 132 |
    133 |
  • 134 |
  • 135 |

    Deprecated API

    136 |

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    137 |
  • 138 |
  • 139 |

    Index

    140 |

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    141 |
  • 142 |
  • 143 |

    Prev/Next

    144 |

    These links take you to the next or previous class, interface, package, or related page.

    145 |
  • 146 |
  • 147 |

    Frames/No Frames

    148 |

    These links show and hide the HTML frames. All pages are available with or without frames.

    149 |
  • 150 |
  • 151 |

    All Classes

    152 |

    The All Classes link shows all classes and interfaces except non-static nested types.

    153 |
  • 154 |
  • 155 |

    Serialized Form

    156 |

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    157 |
  • 158 |
  • 159 |

    Constant Field Values

    160 |

    The Constant Field Values page lists the static final fields and their values.

    161 |
  • 162 |
163 | This help file applies to API documentation generated using the standard doclet.
164 | 165 |
166 | 167 | 168 | 169 | 170 | 178 |
179 | 206 | 207 | 208 | 209 | -------------------------------------------------------------------------------- /library/javadoc/com/mypopsy/maps/StaticMap.Marker.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | StaticMap.Marker (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 77 | 78 | 79 |
80 |
com.mypopsy.maps
81 |

Class StaticMap.Marker

82 |
83 |
84 | 97 |
98 |
    99 |
  • 100 |
    101 |
    Enclosing class:
    102 |
    StaticMap
    103 |
    104 |
    105 |
    106 |
    public static class StaticMap.Marker
    107 | extends StaticMap.GeoPoint
    108 |
  • 109 |
110 |
111 |
112 | 178 |
179 |
180 |
    181 |
  • 182 | 183 |
      184 |
    • 185 | 186 | 187 |

      Constructor Detail

      188 | 189 | 190 | 191 |
        192 |
      • 193 |

        StaticMap.Marker

        194 |
        public StaticMap.Marker(double latitude,
        195 |                 double longitude)
        196 |
      • 197 |
      198 | 199 | 200 | 201 |
        202 |
      • 203 |

        StaticMap.Marker

        204 |
        public StaticMap.Marker(@Nonnull
        205 |                 java.lang.String address)
        206 |
      • 207 |
      208 |
    • 209 |
    210 |
  • 211 |
212 |
213 |
214 | 215 | 216 |
217 | 218 | 219 | 220 | 221 | 229 |
230 | 272 | 273 | 274 | 275 | -------------------------------------------------------------------------------- /library/javadoc/com/mypopsy/maps/StaticMap.MarkerGroup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | StaticMap.MarkerGroup (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 77 | 78 | 79 |
80 |
com.mypopsy.maps
81 |

Class StaticMap.MarkerGroup

82 |
83 |
84 |
    85 |
  • java.lang.Object
  • 86 |
  • 87 |
      88 |
    • com.mypopsy.maps.StaticMap.MarkerGroup
    • 89 |
    90 |
  • 91 |
92 |
93 |
    94 |
  • 95 |
    96 |
    Enclosing class:
    97 |
    StaticMap
    98 |
    99 |
    100 |
    101 |
    public static class StaticMap.MarkerGroup
    102 | extends java.lang.Object
    103 |
  • 104 |
105 |
106 |
107 |
    108 |
  • 109 | 110 | 132 | 133 |
      134 |
    • 135 | 136 | 137 |

      Method Summary

      138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 |
      Methods 
      Modifier and TypeMethod and Description
      booleanequals(java.lang.Object obj) 
      inthashCode() 
      java.lang.StringtoString() 
      157 |
        158 |
      • 159 | 160 | 161 |

        Methods inherited from class java.lang.Object

        162 | clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • 163 |
      164 |
    • 165 |
    166 |
  • 167 |
168 |
169 |
170 |
    171 |
  • 172 | 173 | 199 | 200 |
      201 |
    • 202 | 203 | 204 |

      Method Detail

      205 | 206 | 207 | 208 |
        209 |
      • 210 |

        toString

        211 |
        public java.lang.String toString()
        212 |
        213 |
        Overrides:
        214 |
        toString in class java.lang.Object
        215 |
        216 |
      • 217 |
      218 | 219 | 220 | 221 |
        222 |
      • 223 |

        equals

        224 |
        public boolean equals(java.lang.Object obj)
        225 |
        226 |
        Overrides:
        227 |
        equals in class java.lang.Object
        228 |
        229 |
      • 230 |
      231 | 232 | 233 | 234 |
        235 |
      • 236 |

        hashCode

        237 |
        public int hashCode()
        238 |
        239 |
        Overrides:
        240 |
        hashCode in class java.lang.Object
        241 |
        242 |
      • 243 |
      244 |
    • 245 |
    246 |
  • 247 |
248 |
249 |
250 | 251 | 252 |
253 | 254 | 255 | 256 | 257 | 265 |
266 | 308 | 309 | 310 | 311 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- /library/javadoc/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Javadoc style sheet */ 2 | /* 3 | Overall document style 4 | */ 5 | body { 6 | background-color:#ffffff; 7 | color:#353833; 8 | font-family:Arial, Helvetica, sans-serif; 9 | font-size:76%; 10 | margin:0; 11 | } 12 | a:link, a:visited { 13 | text-decoration:none; 14 | color:#4c6b87; 15 | } 16 | a:hover, a:focus { 17 | text-decoration:none; 18 | color:#bb7a2a; 19 | } 20 | a:active { 21 | text-decoration:none; 22 | color:#4c6b87; 23 | } 24 | a[name] { 25 | color:#353833; 26 | } 27 | a[name]:hover { 28 | text-decoration:none; 29 | color:#353833; 30 | } 31 | pre { 32 | font-size:1.3em; 33 | } 34 | h1 { 35 | font-size:1.8em; 36 | } 37 | h2 { 38 | font-size:1.5em; 39 | } 40 | h3 { 41 | font-size:1.4em; 42 | } 43 | h4 { 44 | font-size:1.3em; 45 | } 46 | h5 { 47 | font-size:1.2em; 48 | } 49 | h6 { 50 | font-size:1.1em; 51 | } 52 | ul { 53 | list-style-type:disc; 54 | } 55 | code, tt { 56 | font-size:1.2em; 57 | } 58 | dt code { 59 | font-size:1.2em; 60 | } 61 | table tr td dt code { 62 | font-size:1.2em; 63 | vertical-align:top; 64 | } 65 | sup { 66 | font-size:.6em; 67 | } 68 | /* 69 | Document title and Copyright styles 70 | */ 71 | .clear { 72 | clear:both; 73 | height:0px; 74 | overflow:hidden; 75 | } 76 | .aboutLanguage { 77 | float:right; 78 | padding:0px 21px; 79 | font-size:.8em; 80 | z-index:200; 81 | margin-top:-7px; 82 | } 83 | .legalCopy { 84 | margin-left:.5em; 85 | } 86 | .bar a, .bar a:link, .bar a:visited, .bar a:active { 87 | color:#FFFFFF; 88 | text-decoration:none; 89 | } 90 | .bar a:hover, .bar a:focus { 91 | color:#bb7a2a; 92 | } 93 | .tab { 94 | background-color:#0066FF; 95 | background-image:url(resources/titlebar.gif); 96 | background-position:left top; 97 | background-repeat:no-repeat; 98 | color:#ffffff; 99 | padding:8px; 100 | width:5em; 101 | font-weight:bold; 102 | } 103 | /* 104 | Navigation bar styles 105 | */ 106 | .bar { 107 | background-image:url(resources/background.gif); 108 | background-repeat:repeat-x; 109 | color:#FFFFFF; 110 | padding:.8em .5em .4em .8em; 111 | height:auto;/*height:1.8em;*/ 112 | font-size:1em; 113 | margin:0; 114 | } 115 | .topNav { 116 | background-image:url(resources/background.gif); 117 | background-repeat:repeat-x; 118 | color:#FFFFFF; 119 | float:left; 120 | padding:0; 121 | width:100%; 122 | clear:right; 123 | height:2.8em; 124 | padding-top:10px; 125 | overflow:hidden; 126 | } 127 | .bottomNav { 128 | margin-top:10px; 129 | background-image:url(resources/background.gif); 130 | background-repeat:repeat-x; 131 | color:#FFFFFF; 132 | float:left; 133 | padding:0; 134 | width:100%; 135 | clear:right; 136 | height:2.8em; 137 | padding-top:10px; 138 | overflow:hidden; 139 | } 140 | .subNav { 141 | background-color:#dee3e9; 142 | border-bottom:1px solid #9eadc0; 143 | float:left; 144 | width:100%; 145 | overflow:hidden; 146 | } 147 | .subNav div { 148 | clear:left; 149 | float:left; 150 | padding:0 0 5px 6px; 151 | } 152 | ul.navList, ul.subNavList { 153 | float:left; 154 | margin:0 25px 0 0; 155 | padding:0; 156 | } 157 | ul.navList li{ 158 | list-style:none; 159 | float:left; 160 | padding:3px 6px; 161 | } 162 | ul.subNavList li{ 163 | list-style:none; 164 | float:left; 165 | font-size:90%; 166 | } 167 | .topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { 168 | color:#FFFFFF; 169 | text-decoration:none; 170 | } 171 | .topNav a:hover, .bottomNav a:hover { 172 | text-decoration:none; 173 | color:#bb7a2a; 174 | } 175 | .navBarCell1Rev { 176 | background-image:url(resources/tab.gif); 177 | background-color:#a88834; 178 | color:#FFFFFF; 179 | margin: auto 5px; 180 | border:1px solid #c9aa44; 181 | } 182 | /* 183 | Page header and footer styles 184 | */ 185 | .header, .footer { 186 | clear:both; 187 | margin:0 20px; 188 | padding:5px 0 0 0; 189 | } 190 | .indexHeader { 191 | margin:10px; 192 | position:relative; 193 | } 194 | .indexHeader h1 { 195 | font-size:1.3em; 196 | } 197 | .title { 198 | color:#2c4557; 199 | margin:10px 0; 200 | } 201 | .subTitle { 202 | margin:5px 0 0 0; 203 | } 204 | .header ul { 205 | margin:0 0 25px 0; 206 | padding:0; 207 | } 208 | .footer ul { 209 | margin:20px 0 5px 0; 210 | } 211 | .header ul li, .footer ul li { 212 | list-style:none; 213 | font-size:1.2em; 214 | } 215 | /* 216 | Heading styles 217 | */ 218 | div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { 219 | background-color:#dee3e9; 220 | border-top:1px solid #9eadc0; 221 | border-bottom:1px solid #9eadc0; 222 | margin:0 0 6px -8px; 223 | padding:2px 5px; 224 | } 225 | ul.blockList ul.blockList ul.blockList li.blockList h3 { 226 | background-color:#dee3e9; 227 | border-top:1px solid #9eadc0; 228 | border-bottom:1px solid #9eadc0; 229 | margin:0 0 6px -8px; 230 | padding:2px 5px; 231 | } 232 | ul.blockList ul.blockList li.blockList h3 { 233 | padding:0; 234 | margin:15px 0; 235 | } 236 | ul.blockList li.blockList h2 { 237 | padding:0px 0 20px 0; 238 | } 239 | /* 240 | Page layout container styles 241 | */ 242 | .contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { 243 | clear:both; 244 | padding:10px 20px; 245 | position:relative; 246 | } 247 | .indexContainer { 248 | margin:10px; 249 | position:relative; 250 | font-size:1.0em; 251 | } 252 | .indexContainer h2 { 253 | font-size:1.1em; 254 | padding:0 0 3px 0; 255 | } 256 | .indexContainer ul { 257 | margin:0; 258 | padding:0; 259 | } 260 | .indexContainer ul li { 261 | list-style:none; 262 | } 263 | .contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { 264 | font-size:1.1em; 265 | font-weight:bold; 266 | margin:10px 0 0 0; 267 | color:#4E4E4E; 268 | } 269 | .contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { 270 | margin:10px 0 10px 20px; 271 | } 272 | .serializedFormContainer dl.nameValue dt { 273 | margin-left:1px; 274 | font-size:1.1em; 275 | display:inline; 276 | font-weight:bold; 277 | } 278 | .serializedFormContainer dl.nameValue dd { 279 | margin:0 0 0 1px; 280 | font-size:1.1em; 281 | display:inline; 282 | } 283 | /* 284 | List styles 285 | */ 286 | ul.horizontal li { 287 | display:inline; 288 | font-size:0.9em; 289 | } 290 | ul.inheritance { 291 | margin:0; 292 | padding:0; 293 | } 294 | ul.inheritance li { 295 | display:inline; 296 | list-style:none; 297 | } 298 | ul.inheritance li ul.inheritance { 299 | margin-left:15px; 300 | padding-left:15px; 301 | padding-top:1px; 302 | } 303 | ul.blockList, ul.blockListLast { 304 | margin:10px 0 10px 0; 305 | padding:0; 306 | } 307 | ul.blockList li.blockList, ul.blockListLast li.blockList { 308 | list-style:none; 309 | margin-bottom:25px; 310 | } 311 | ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { 312 | padding:0px 20px 5px 10px; 313 | border:1px solid #9eadc0; 314 | background-color:#f9f9f9; 315 | } 316 | ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { 317 | padding:0 0 5px 8px; 318 | background-color:#ffffff; 319 | border:1px solid #9eadc0; 320 | border-top:none; 321 | } 322 | ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { 323 | margin-left:0; 324 | padding-left:0; 325 | padding-bottom:15px; 326 | border:none; 327 | border-bottom:1px solid #9eadc0; 328 | } 329 | ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { 330 | list-style:none; 331 | border-bottom:none; 332 | padding-bottom:0; 333 | } 334 | table tr td dl, table tr td dl dt, table tr td dl dd { 335 | margin-top:0; 336 | margin-bottom:1px; 337 | } 338 | /* 339 | Table styles 340 | */ 341 | .contentContainer table, .classUseContainer table, .constantValuesContainer table { 342 | border-bottom:1px solid #9eadc0; 343 | width:100%; 344 | } 345 | .contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { 346 | width:100%; 347 | } 348 | .contentContainer .description table, .contentContainer .details table { 349 | border-bottom:none; 350 | } 351 | .contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ 352 | vertical-align:top; 353 | padding-right:20px; 354 | } 355 | .contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, 356 | .contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, 357 | .contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, 358 | .contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { 359 | padding-right:3px; 360 | } 361 | .overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { 362 | position:relative; 363 | text-align:left; 364 | background-repeat:no-repeat; 365 | color:#FFFFFF; 366 | font-weight:bold; 367 | clear:none; 368 | overflow:hidden; 369 | padding:0px; 370 | margin:0px; 371 | } 372 | caption a:link, caption a:hover, caption a:active, caption a:visited { 373 | color:#FFFFFF; 374 | } 375 | .overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { 376 | white-space:nowrap; 377 | padding-top:8px; 378 | padding-left:8px; 379 | display:block; 380 | float:left; 381 | background-image:url(resources/titlebar.gif); 382 | height:18px; 383 | } 384 | .overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { 385 | width:10px; 386 | background-image:url(resources/titlebar_end.gif); 387 | background-repeat:no-repeat; 388 | background-position:top right; 389 | position:relative; 390 | float:left; 391 | } 392 | ul.blockList ul.blockList li.blockList table { 393 | margin:0 0 12px 0px; 394 | width:100%; 395 | } 396 | .tableSubHeadingColor { 397 | background-color: #EEEEFF; 398 | } 399 | .altColor { 400 | background-color:#eeeeef; 401 | } 402 | .rowColor { 403 | background-color:#ffffff; 404 | } 405 | .overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { 406 | text-align:left; 407 | padding:3px 3px 3px 7px; 408 | } 409 | th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { 410 | background:#dee3e9; 411 | border-top:1px solid #9eadc0; 412 | border-bottom:1px solid #9eadc0; 413 | text-align:left; 414 | padding:3px 3px 3px 7px; 415 | } 416 | td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { 417 | font-weight:bold; 418 | } 419 | td.colFirst, th.colFirst { 420 | border-left:1px solid #9eadc0; 421 | white-space:nowrap; 422 | } 423 | td.colLast, th.colLast { 424 | border-right:1px solid #9eadc0; 425 | } 426 | td.colOne, th.colOne { 427 | border-right:1px solid #9eadc0; 428 | border-left:1px solid #9eadc0; 429 | } 430 | table.overviewSummary { 431 | padding:0px; 432 | margin-left:0px; 433 | } 434 | table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, 435 | table.overviewSummary td.colOne, table.overviewSummary th.colOne { 436 | width:25%; 437 | vertical-align:middle; 438 | } 439 | table.packageSummary td.colFirst, table.overviewSummary th.colFirst { 440 | width:25%; 441 | vertical-align:middle; 442 | } 443 | /* 444 | Content styles 445 | */ 446 | .description pre { 447 | margin-top:0; 448 | } 449 | .deprecatedContent { 450 | margin:0; 451 | padding:10px 0; 452 | } 453 | .docSummary { 454 | padding:0; 455 | } 456 | /* 457 | Formatting effect styles 458 | */ 459 | .sourceLineNo { 460 | color:green; 461 | padding:0 30px 0 0; 462 | } 463 | h1.hidden { 464 | visibility:hidden; 465 | overflow:hidden; 466 | font-size:.9em; 467 | } 468 | .block { 469 | display:block; 470 | margin:3px 0 0 0; 471 | } 472 | .strong { 473 | font-weight:bold; 474 | } 475 | -------------------------------------------------------------------------------- /library/javadoc/com/mypopsy/maps/StaticMap.GeoPoint.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | StaticMap.GeoPoint (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 77 | 78 | 79 |
80 |
com.mypopsy.maps
81 |

Class StaticMap.GeoPoint

82 |
83 |
84 |
    85 |
  • java.lang.Object
  • 86 |
  • 87 |
      88 |
    • com.mypopsy.maps.StaticMap.GeoPoint
    • 89 |
    90 |
  • 91 |
92 |
93 |
    94 |
  • 95 |
    96 |
    Direct Known Subclasses:
    97 |
    StaticMap.Marker
    98 |
    99 |
    100 |
    Enclosing class:
    101 |
    StaticMap
    102 |
    103 |
    104 |
    105 |
    public static class StaticMap.GeoPoint
    106 | extends java.lang.Object
    107 |
  • 108 |
109 |
110 |
111 |
    112 |
  • 113 | 114 |
      115 |
    • 116 | 117 | 118 |

      Constructor Summary

      119 | 120 | 121 | 122 | 123 | 124 | 125 | 127 | 128 | 129 | 132 | 133 | 134 | 135 | 136 |
      Constructors 
      Constructor and Description
      StaticMap.GeoPoint(double latitude, 126 | double longitude) 
      StaticMap.GeoPoint(double latitude, 130 | double longitude, 131 | java.lang.String address) 
      StaticMap.GeoPoint(java.lang.String address) 
      137 |
    • 138 |
    139 | 140 |
      141 |
    • 142 | 143 | 144 |

      Method Summary

      145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 |
      Methods 
      Modifier and TypeMethod and Description
      java.lang.Stringaddress() 
      booleanequals(java.lang.Object obj) 
      booleanhasCoordinates() 
      inthashCode() 
      doublelatitude() 
      doublelongitude() 
      java.lang.StringtoString() 
      180 |
        181 |
      • 182 | 183 | 184 |

        Methods inherited from class java.lang.Object

        185 | clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • 186 |
      187 |
    • 188 |
    189 |
  • 190 |
191 |
192 |
193 |
    194 |
  • 195 | 196 |
      197 |
    • 198 | 199 | 200 |

      Constructor Detail

      201 | 202 | 203 | 204 |
        205 |
      • 206 |

        StaticMap.GeoPoint

        207 |
        public StaticMap.GeoPoint(@Nonnull
        208 |                   java.lang.String address)
        209 |
      • 210 |
      211 | 212 | 213 | 214 |
        215 |
      • 216 |

        StaticMap.GeoPoint

        217 |
        public StaticMap.GeoPoint(double latitude,
        218 |                   double longitude)
        219 |
      • 220 |
      221 | 222 | 223 | 224 |
        225 |
      • 226 |

        StaticMap.GeoPoint

        227 |
        public StaticMap.GeoPoint(double latitude,
        228 |                   double longitude,
        229 |                   java.lang.String address)
        230 |
      • 231 |
      232 |
    • 233 |
    234 | 235 |
      236 |
    • 237 | 238 | 239 |

      Method Detail

      240 | 241 | 242 | 243 |
        244 |
      • 245 |

        hasCoordinates

        246 |
        public boolean hasCoordinates()
        247 |
      • 248 |
      249 | 250 | 251 | 252 |
        253 |
      • 254 |

        latitude

        255 |
        public double latitude()
        256 |
      • 257 |
      258 | 259 | 260 | 261 |
        262 |
      • 263 |

        longitude

        264 |
        public double longitude()
        265 |
      • 266 |
      267 | 268 | 269 | 270 |
        271 |
      • 272 |

        address

        273 |
        @Nullable
        274 | public java.lang.String address()
        275 |
      • 276 |
      277 | 278 | 279 | 280 |
        281 |
      • 282 |

        toString

        283 |
        public java.lang.String toString()
        284 |
        285 |
        Overrides:
        286 |
        toString in class java.lang.Object
        287 |
        288 |
      • 289 |
      290 | 291 | 292 | 293 |
        294 |
      • 295 |

        equals

        296 |
        public boolean equals(java.lang.Object obj)
        297 |
        298 |
        Overrides:
        299 |
        equals in class java.lang.Object
        300 |
        301 |
      • 302 |
      303 | 304 | 305 | 306 |
        307 |
      • 308 |

        hashCode

        309 |
        public int hashCode()
        310 |
        311 |
        Overrides:
        312 |
        hashCode in class java.lang.Object
        313 |
        314 |
      • 315 |
      316 |
    • 317 |
    318 |
  • 319 |
320 |
321 |
322 | 323 | 324 |
325 | 326 | 327 | 328 | 329 | 337 |
338 | 380 | 381 | 382 | 383 | -------------------------------------------------------------------------------- /library/javadoc/com/mypopsy/maps/StaticMap.Path.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | StaticMap.Path (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 77 | 78 | 79 |
80 |
com.mypopsy.maps
81 |

Class StaticMap.Path

82 |
83 |
84 |
    85 |
  • java.lang.Object
  • 86 |
  • 87 |
      88 |
    • com.mypopsy.maps.StaticMap.Path
    • 89 |
    90 |
  • 91 |
92 |
93 |
    94 |
  • 95 |
    96 |
    Enclosing class:
    97 |
    StaticMap
    98 |
    99 |
    100 |
    101 |
    public static class StaticMap.Path
    102 | extends java.lang.Object
    103 |
  • 104 |
105 |
106 |
107 |
    108 |
  • 109 | 110 |
      111 |
    • 112 | 113 | 114 |

      Nested Class Summary

      115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 |
      Nested Classes 
      Modifier and TypeClass and Description
      static class StaticMap.Path.Style 
      126 |
    • 127 |
    128 | 129 | 151 | 152 | 169 | 170 |
      171 |
    • 172 | 173 | 174 |

      Method Summary

      175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 |
      Methods 
      Modifier and TypeMethod and Description
      booleanequals(java.lang.Object obj) 
      inthashCode() 
      java.lang.StringtoString() 
      194 |
        195 |
      • 196 | 197 | 198 |

        Methods inherited from class java.lang.Object

        199 | clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • 200 |
      201 |
    • 202 |
    203 |
  • 204 |
205 |
206 |
207 |
    208 |
  • 209 | 210 | 236 | 237 | 255 | 256 |
      257 |
    • 258 | 259 | 260 |

      Method Detail

      261 | 262 | 263 | 264 |
        265 |
      • 266 |

        toString

        267 |
        public java.lang.String toString()
        268 |
        269 |
        Overrides:
        270 |
        toString in class java.lang.Object
        271 |
        272 |
      • 273 |
      274 | 275 | 276 | 277 |
        278 |
      • 279 |

        equals

        280 |
        public boolean equals(java.lang.Object obj)
        281 |
        282 |
        Overrides:
        283 |
        equals in class java.lang.Object
        284 |
        285 |
      • 286 |
      287 | 288 | 289 | 290 |
        291 |
      • 292 |

        hashCode

        293 |
        public int hashCode()
        294 |
        295 |
        Overrides:
        296 |
        hashCode in class java.lang.Object
        297 |
        298 |
      • 299 |
      300 |
    • 301 |
    302 |
  • 303 |
304 |
305 |
306 | 307 | 308 |
309 | 310 | 311 | 312 | 313 | 321 |
322 | 364 | 365 | 366 | 367 | -------------------------------------------------------------------------------- /library/javadoc/com/mypopsy/maps/StaticMap.Marker.Style.Size.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | StaticMap.Marker.Style.Size (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 77 | 78 | 79 |
80 |
com.mypopsy.maps
81 |

Enum StaticMap.Marker.Style.Size

82 |
83 |
84 |
    85 |
  • java.lang.Object
  • 86 |
  • 87 | 95 |
  • 96 |
97 |
98 | 115 |
116 |
117 |
    118 |
  • 119 | 120 |
      121 |
    • 122 | 123 | 124 |

      Enum Constant Summary

      125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 |
      Enum Constants 
      Enum Constant and Description
      MID 
      NORMAL 
      SMALL 
      TINY 
      143 |
    • 144 |
    145 | 146 |
      147 |
    • 148 | 149 | 150 |

      Method Summary

      151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 162 | 163 | 164 | 165 | 169 | 170 |
      Methods 
      Modifier and TypeMethod and Description
      static StaticMap.Marker.Style.SizevalueOf(java.lang.String name) 160 |
      Returns the enum constant of this type with the specified name.
      161 |
      static StaticMap.Marker.Style.Size[]values() 166 |
      Returns an array containing the constants of this enum type, in 167 | the order they are declared.
      168 |
      171 |
        172 |
      • 173 | 174 | 175 |

        Methods inherited from class java.lang.Enum

        176 | clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • 177 |
      178 |
        179 |
      • 180 | 181 | 182 |

        Methods inherited from class java.lang.Object

        183 | getClass, notify, notifyAll, wait, wait, wait
      • 184 |
      185 |
    • 186 |
    187 |
  • 188 |
189 |
190 |
191 |
    192 |
  • 193 | 194 | 237 | 238 |
      239 |
    • 240 | 241 | 242 |

      Method Detail

      243 | 244 | 245 | 246 |
        247 |
      • 248 |

        values

        249 |
        public static StaticMap.Marker.Style.Size[] values()
        250 |
        Returns an array containing the constants of this enum type, in 251 | the order they are declared. This method may be used to iterate 252 | over the constants as follows: 253 |
        254 | for (StaticMap.Marker.Style.Size c : StaticMap.Marker.Style.Size.values())
        255 |     System.out.println(c);
        256 | 
        257 |
        Returns:
        an array containing the constants of this enum type, in the order they are declared
        258 |
      • 259 |
      260 | 261 | 262 | 263 |
        264 |
      • 265 |

        valueOf

        266 |
        public static StaticMap.Marker.Style.Size valueOf(java.lang.String name)
        267 |
        Returns the enum constant of this type with the specified name. 268 | The string must match exactly an identifier used to declare an 269 | enum constant in this type. (Extraneous whitespace characters are 270 | not permitted.)
        271 |
        Parameters:
        name - the name of the enum constant to be returned.
        272 |
        Returns:
        the enum constant with the specified name
        273 |
        Throws:
        274 |
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        275 |
        java.lang.NullPointerException - if the argument is null
        276 |
      • 277 |
      278 |
    • 279 |
    280 |
  • 281 |
282 |
283 |
284 | 285 | 286 |
287 | 288 | 289 | 290 | 291 | 299 |
300 | 342 | 343 | 344 | 345 | -------------------------------------------------------------------------------- /library/javadoc/com/mypopsy/maps/StaticMap.Type.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | StaticMap.Type (library API) 7 | 8 | 9 | 10 | 11 | 17 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 34 |
35 | 77 | 78 | 79 |
80 |
com.mypopsy.maps
81 |

Enum StaticMap.Type

82 |
83 |
84 |
    85 |
  • java.lang.Object
  • 86 |
  • 87 |
      88 |
    • java.lang.Enum<StaticMap.Type>
    • 89 |
    • 90 |
        91 |
      • com.mypopsy.maps.StaticMap.Type
      • 92 |
      93 |
    • 94 |
    95 |
  • 96 |
97 |
98 |
    99 |
  • 100 |
    101 |
    All Implemented Interfaces:
    102 |
    java.io.Serializable, java.lang.Comparable<StaticMap.Type>
    103 |
    104 |
    105 |
    Enclosing class:
    106 |
    StaticMap
    107 |
    108 |
    109 |
    110 |
    public static enum StaticMap.Type
    111 | extends java.lang.Enum<StaticMap.Type>
    112 |
    Map Types
    113 |
  • 114 |
115 |
116 |
117 |
    118 |
  • 119 | 120 |
      121 |
    • 122 | 123 | 124 |

      Enum Constant Summary

      125 | 126 | 127 | 128 | 129 | 130 | 131 | 135 | 136 | 137 | 140 | 141 | 142 | 145 | 146 | 147 | 150 | 151 |
      Enum Constants 
      Enum Constant and Description
      HYBRID 132 |
      specifies a hybrid of the satellite and roadmap image, 133 | showing a transparent layer of major streets and place names on the satellite image.
      134 |
      ROADMAP 138 |
      specifies a standard roadmap image, as is normally shown on the Google Maps website (default)
      139 |
      SATELLITE 143 |
      specifies a satellite image
      144 |
      TERRAIN 148 |
      specifies a physical relief map image, showing terrain and vegetation.
      149 |
      152 |
    • 153 |
    154 | 155 |
      156 |
    • 157 | 158 | 159 |

      Method Summary

      160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 171 | 172 | 173 | 174 | 178 | 179 |
      Methods 
      Modifier and TypeMethod and Description
      static StaticMap.TypevalueOf(java.lang.String name) 169 |
      Returns the enum constant of this type with the specified name.
      170 |
      static StaticMap.Type[]values() 175 |
      Returns an array containing the constants of this enum type, in 176 | the order they are declared.
      177 |
      180 |
        181 |
      • 182 | 183 | 184 |

        Methods inherited from class java.lang.Enum

        185 | clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • 186 |
      187 |
        188 |
      • 189 | 190 | 191 |

        Methods inherited from class java.lang.Object

        192 | getClass, notify, notifyAll, wait, wait, wait
      • 193 |
      194 |
    • 195 |
    196 |
  • 197 |
198 |
199 |
200 |
    201 |
  • 202 | 203 |
      204 |
    • 205 | 206 | 207 |

      Enum Constant Detail

      208 | 209 | 210 | 211 |
        212 |
      • 213 |

        ROADMAP

        214 |
        public static final StaticMap.Type ROADMAP
        215 |
        specifies a standard roadmap image, as is normally shown on the Google Maps website (default)
        216 |
      • 217 |
      218 | 219 | 220 | 221 |
        222 |
      • 223 |

        SATELLITE

        224 |
        public static final StaticMap.Type SATELLITE
        225 |
        specifies a satellite image
        226 |
      • 227 |
      228 | 229 | 230 | 231 |
        232 |
      • 233 |

        TERRAIN

        234 |
        public static final StaticMap.Type TERRAIN
        235 |
        specifies a physical relief map image, showing terrain and vegetation.
        236 |
      • 237 |
      238 | 239 | 240 | 241 |
        242 |
      • 243 |

        HYBRID

        244 |
        public static final StaticMap.Type HYBRID
        245 |
        specifies a hybrid of the satellite and roadmap image, 246 | showing a transparent layer of major streets and place names on the satellite image.
        247 |
      • 248 |
      249 |
    • 250 |
    251 | 252 |
      253 |
    • 254 | 255 | 256 |

      Method Detail

      257 | 258 | 259 | 260 |
        261 |
      • 262 |

        values

        263 |
        public static StaticMap.Type[] values()
        264 |
        Returns an array containing the constants of this enum type, in 265 | the order they are declared. This method may be used to iterate 266 | over the constants as follows: 267 |
        268 | for (StaticMap.Type c : StaticMap.Type.values())
        269 |     System.out.println(c);
        270 | 
        271 |
        Returns:
        an array containing the constants of this enum type, in the order they are declared
        272 |
      • 273 |
      274 | 275 | 276 | 277 |
        278 |
      • 279 |

        valueOf

        280 |
        public static StaticMap.Type valueOf(java.lang.String name)
        281 |
        Returns the enum constant of this type with the specified name. 282 | The string must match exactly an identifier used to declare an 283 | enum constant in this type. (Extraneous whitespace characters are 284 | not permitted.)
        285 |
        Parameters:
        name - the name of the enum constant to be returned.
        286 |
        Returns:
        the enum constant with the specified name
        287 |
        Throws:
        288 |
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        289 |
        java.lang.NullPointerException - if the argument is null
        290 |
      • 291 |
      292 |
    • 293 |
    294 |
  • 295 |
296 |
297 |
298 | 299 | 300 |
301 | 302 | 303 | 304 | 305 | 313 |
314 | 356 | 357 | 358 | 359 | --------------------------------------------------------------------------------