From 63efa9bf7d7df678b6061eea722ead20f8328b02 Mon Sep 17 00:00:00 2001
From: Tobrun
Date: Mon, 8 Aug 2016 21:51:52 -0400
Subject: [PATCH] [android] #5880 - javadoc cleanup part one
---
.../mapboxsdk/MapboxAccountManager.java | 6 +-
.../mapboxsdk/annotations/Annotation.java | 14 +-
.../mapbox/mapboxsdk/annotations/Marker.java | 15 +-
.../annotations/MarkerViewManager.java | 2 +
.../mapboxsdk/camera/CameraPosition.java | 2 +-
.../mapboxsdk/geometry/ProjectedMeters.java | 6 +-
.../com/mapbox/mapboxsdk/maps/MapView.java | 2 +-
.../com/mapbox/mapboxsdk/maps/MapboxMap.java | 6 +-
.../mapboxsdk/maps/MapboxMapOptions.java | 4 +-
.../com/mapbox/mapboxsdk/maps/UiSettings.java | 8 +-
.../mapboxsdk/offline/OfflineManager.java | 26 +-
.../mapboxsdk/offline/OfflineRegion.java | 43 +-
.../style/layers/PropertyFactory.java | 553 +++++++++++++++++-
.../style/layers/property_factory.java.ejs | 27 +-
.../mapbox/mapboxsdk/utils/ColorUtils.java | 4 +-
15 files changed, 670 insertions(+), 48 deletions(-)
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/MapboxAccountManager.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/MapboxAccountManager.java
index 8f2597c60af..f8a83550f09 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/MapboxAccountManager.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/MapboxAccountManager.java
@@ -60,7 +60,7 @@ public static MapboxAccountManager getInstance() {
}
/**
- * Access Token for this application
+ * Access Token for this application.
*
* @return Mapbox Access Token
*/
@@ -69,10 +69,10 @@ public String getAccessToken() {
}
/**
- * Runtime validation of Access Token
+ * Runtime validation of Access Token.
*
* @param accessToken Access Token to check
- * @throws InvalidAccessTokenException
+ * @throws InvalidAccessTokenException the exception thrown
*/
public static void validateAccessToken(String accessToken) throws InvalidAccessTokenException {
if (TextUtils.isEmpty(accessToken) || (!accessToken.toLowerCase(MapboxConstants.MAPBOX_LOCALE).startsWith("pk.") && !accessToken.toLowerCase(MapboxConstants.MAPBOX_LOCALE).startsWith("sk."))) {
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Annotation.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Annotation.java
index 3c4868c84b4..d7df692e173 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Annotation.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Annotation.java
@@ -34,6 +34,8 @@ protected Annotation() {
*
* This ID is unique for a MapView instance and is suitable for associating your own extra
* data with.
+ *
+ * @return the assigned id
*/
public long getId() {
return id;
@@ -48,6 +50,8 @@ public void remove() {
/**
* Do not use this method. Used internally by the SDK.
+ *
+ * @param id the assigned id
*/
public void setId(long id) {
this.id = id;
@@ -55,15 +59,17 @@ public void setId(long id) {
/**
* Do not use this method. Used internally by the SDK.
+ *
+ * @param mapboxMap the hosting mapbox map
*/
public void setMapboxMap(MapboxMap mapboxMap) {
this.mapboxMap = mapboxMap;
}
/**
- * Gets the associated MapboxMap
+ * Gets the hosting mapbox map.
*
- * @return The MapboxMap
+ * @return the MapboxMap
*/
protected MapboxMap getMapboxMap() {
return mapboxMap;
@@ -71,13 +77,15 @@ protected MapboxMap getMapboxMap() {
/**
* Don not use this method. Used internally by the SDK.
+ *
+ * @param mapView the hosting map view
*/
public void setMapView(MapView mapView) {
this.mapView = mapView;
}
/**
- * Gets the associated MapView
+ * Gets the hosting map view.
*
* @return The MapView
*/
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java
index d24f020a18d..38c83731042 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/Marker.java
@@ -3,6 +3,7 @@
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
+
import com.mapbox.mapboxsdk.R;
import com.mapbox.mapboxsdk.geometry.LatLng;
import com.mapbox.mapboxsdk.maps.MapView;
@@ -41,7 +42,7 @@ public Marker(BaseMarkerOptions baseMarkerOptions) {
title = baseMarkerOptions.title;
}
- Marker(BaseMarkerViewOptions baseMarkerViewOptions){
+ Marker(BaseMarkerViewOptions baseMarkerViewOptions) {
position = baseMarkerViewOptions.position;
snippet = baseMarkerViewOptions.snippet;
icon = baseMarkerViewOptions.icon;
@@ -72,6 +73,8 @@ public void hideInfoWindow() {
/**
* Do not use this method. Used internally by the SDK.
+ *
+ * @return true if the infoWindow is shown
*/
public boolean isInfoWindowShown() {
return infoWindowShown;
@@ -126,7 +129,7 @@ public InfoWindow getInfoWindow() {
* Update only for default Marker's InfoWindow content for Title and Snippet
*/
private void refreshInfoWindowContent() {
- if (isInfoWindowShown() && mapView != null && mapboxMap != null && mapboxMap.getInfoWindowAdapter() == null) {
+ if (isInfoWindowShown() && mapView != null && mapboxMap != null && mapboxMap.getInfoWindowAdapter() == null) {
InfoWindow infoWindow = getInfoWindow(mapView);
if (mapView.getContext() != null) {
infoWindow.adaptDefaultMarker(this, mapboxMap, mapView);
@@ -140,6 +143,10 @@ private void refreshInfoWindowContent() {
/**
* Do not use this method. Used internally by the SDK.
+ *
+ * @param mapboxMap the hosting mapbox map
+ * @param mapView the hosting map view
+ * @return the info window that was shown
*/
public InfoWindow showInfoWindow(@NonNull MapboxMap mapboxMap, @NonNull MapView mapView) {
setMapboxMap(mapboxMap);
@@ -177,6 +184,8 @@ private InfoWindow getInfoWindow(@NonNull MapView mapView) {
/**
* Do not use this method. Used internally by the SDK.
+ *
+ * @param topOffsetPixels the top offset pixels.
*/
public void setTopOffsetPixels(int topOffsetPixels) {
this.topOffsetPixels = topOffsetPixels;
@@ -184,6 +193,8 @@ public void setTopOffsetPixels(int topOffsetPixels) {
/**
* Do not use this method. Used internally by the SDK.
+ *
+ * @param rightOffsetPixels the right offset pixels.
*/
public void setRightOffsetPixels(int rightOffsetPixels) {
this.rightOffsetPixels = rightOffsetPixels;
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerViewManager.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerViewManager.java
index d138ded9631..682ba140c4b 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerViewManager.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerViewManager.java
@@ -156,7 +156,9 @@ public void setTilt(float tilt) {
}
/**
+ * Update and invalidate the MarkerView icon.
*
+ * @param markerView the marker view to updates
*/
public void updateIcon(@NonNull MarkerView markerView) {
View convertView = markerViewMap.get(markerView);
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/camera/CameraPosition.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/camera/CameraPosition.java
index f9346e21d67..3a365de60a0 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/camera/CameraPosition.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/camera/CameraPosition.java
@@ -137,7 +137,7 @@ public Builder() {
/**
* Creates a builder for building CameraPosition objects using radiants.
*
- * @param isRadiant
+ * @param isRadiant true if heading is in radiants
*/
public Builder(boolean isRadiant) {
this.isRadiant = isRadiant;
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/ProjectedMeters.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/ProjectedMeters.java
index 8887658a3e4..1f1417b4b67 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/ProjectedMeters.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/ProjectedMeters.java
@@ -27,10 +27,10 @@ public ProjectedMeters[] newArray(int size) {
private double easting;
/**
- * Creates a ProjectedMeters based on projected meters in north and east direction
+ * Creates a ProjectedMeters based on projected meters in north and east direction.
*
- * @param northing
- * @param easting
+ * @param northing the northing in meters
+ * @param easting the easting in meters
*/
public ProjectedMeters(double northing, double easting) {
this.northing = northing;
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
index 6b0c207a1aa..318eec80b49 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
@@ -881,8 +881,8 @@ public String getStyleUrl() {
* DEPRECATED @see MapboxAccountManager#start(String)
*
*
- *
* Sets the current Mapbox access token used to load map styles and tiles.
+ *
*
* You must set a valid access token before you call {@link MapView#onCreate(Bundle)}
* or an exception will be thrown.
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java
index 26f13ed3534..5cae6e70bbd 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java
@@ -1908,7 +1908,6 @@ public MarkerViewAdapter(Context context) {
/**
* Called when an MarkerView is removed from the MapView or the View object is going to be reused.
*
- *
* This method should be used to reset an animated view back to it's original state for view reuse.
*
*
@@ -1990,8 +1989,9 @@ public final void releaseView(View view) {
/**
* Interface definition for a callback to be invoked when the user clicks on a MarkerView.
- *
- * @see MarkerViewManager#setOnMarkerViewClickListener(OnMarkerViewClickListener)
+ *
+ * {@link MarkerViewManager#setOnMarkerViewClickListener(OnMarkerViewClickListener)}
+ *
*/
public interface OnMarkerViewClickListener {
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java
index 0fd6b1390d2..42609b82655 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java
@@ -124,11 +124,11 @@ private MapboxMapOptions(Parcel in) {
}
/**
- * Creates a GoogleMapsOptions from the attribute set
+ * Creates a MapboxMapsOptions from the attribute set.s
*
* @param context Context related to a map view.
* @param attrs Attributeset containing configuration
- * @return
+ * @return the MapboxMapOptions created from attributes
*/
public static MapboxMapOptions createFromAttributes(@NonNull Context context, @Nullable AttributeSet attrs) {
MapboxMapOptions mapboxMapOptions = new MapboxMapOptions();
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java
index 4ce631fc3e6..a06f4493096 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/UiSettings.java
@@ -8,8 +8,6 @@
import android.view.Gravity;
import android.view.View;
-import com.mapbox.mapboxsdk.maps.widgets.MyLocationViewSettings;
-
/**
* Settings for the user interface of a MapboxMap. To obtain this interface, call getUiSettings().
*/
@@ -492,7 +490,7 @@ public boolean isZoomControlsEnabled() {
/**
* Gets whether the markers are automatically deselected (and therefore, their infowindows
* closed) when a map tap is detected.
-
+ *
* @return If true, markers are deselected on a map tap.
*/
public boolean isDeselectMarkersOnTap() {
@@ -503,7 +501,7 @@ public boolean isDeselectMarkersOnTap() {
* Sets whether the markers are automatically deselected (and therefore, their infowindows
* closed) when a map tap is detected.
*
- * @param deselectMarkersOnTap
+ * @param deselectMarkersOnTap determines if markers should be deslected on tap
*/
public void setDeselectMarkersOnTap(boolean deselectMarkersOnTap) {
this.deselectMarkersOnTap = deselectMarkersOnTap;
@@ -580,7 +578,7 @@ public void setFocalPoint(@Nullable PointF focalPoint) {
/**
* Returns the gesture focal point
*
- * @return The focal point
+ * @return The focal point
*/
public PointF getFocalPoint() {
return focalPoint;
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java
index 7b41184a5a0..80d5ff7db08 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java
@@ -55,16 +55,16 @@ public class OfflineManager {
*/
public interface ListOfflineRegionsCallback {
/**
- * Receives the list of offline regions
+ * Receives the list of offline regions.
*
- * @param offlineRegions
+ * @param offlineRegions the offline region array
*/
void onList(OfflineRegion[] offlineRegions);
/**
- * Receives the error message
+ * Receives the error message.
*
- * @param error
+ * @param error the error message
*/
void onError(String error);
}
@@ -75,16 +75,16 @@ public interface ListOfflineRegionsCallback {
*/
public interface CreateOfflineRegionCallback {
/**
- * Receives the newly created offline region
+ * Receives the newly created offline region.
*
- * @param offlineRegion
+ * @param offlineRegion the offline region to create
*/
void onCreate(OfflineRegion offlineRegion);
/**
- * Receives the error message
+ * Receives the error message.
*
- * @param error
+ * @param error the error message to be shown
*/
void onError(String error);
}
@@ -149,6 +149,8 @@ public static String getDatabasePath(Context context) {
*
* Code from https://developer.android.com/guide/topics/data/data-storage.html#filesExternal
*
+ *
+ * @return true if external storage is readable
*/
public static boolean isExternalStorageReadable() {
String state = Environment.getExternalStorageState();
@@ -193,7 +195,7 @@ public static synchronized OfflineManager getInstance(Context context) {
/**
* Access token getter/setter
*
- * @param accessToken
+ * @param accessToken the accessToken to be used by the offline manager.
* @deprecated As of release 4.1.0, replaced by {@link MapboxAccountManager#start(Context, String)} ()}
*/
@Deprecated
@@ -226,6 +228,8 @@ private Handler getHandler() {
* The query will be executed asynchronously and the results passed to the given
* callback on the main thread.
*
+ *
+ * @param callback the callback to be invoked
*/
public void listOfflineRegions(@NonNull final ListOfflineRegionsCallback callback) {
listOfflineRegions(mDefaultFileSourcePtr, new ListOfflineRegionsCallback() {
@@ -262,6 +266,10 @@ public void run() {
* downloading resources, call `OfflineRegion.setDownloadState(DownloadState.STATE_ACTIVE)`,
* optionally registering an `OfflineRegionObserver` beforehand.
*
+ *
+ * @param definition the offline region definition
+ * @param metadata the metadata in bytes
+ * @param callback the callback to be invoked
*/
public void createOfflineRegion(
@NonNull OfflineRegionDefinition definition,
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java
index 3756c93df23..22cb034f085 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java
@@ -55,8 +55,11 @@ public interface OfflineRegionObserver {
* Implement this method to be notified of a change in the status of an
* offline region. Status changes include any change in state of the members
* of OfflineRegionStatus.
- *
+ *
* This method will be executed on the main thread.
+ *
+ *
+ * @param status the changed status
*/
void onStatusChanged(OfflineRegionStatus status);
@@ -65,8 +68,11 @@ public interface OfflineRegionObserver {
* regional resources. Such errors may be recoverable; for example the implementation
* will attempt to re-request failed resources based on an exponential backoff
* algorithm, or when it detects that network access has been restored.
- *
+ *
* This method will be executed on the main thread.
+ *
+ *
+ * @param error the offline region error message
*/
void onError(OfflineRegionError error);
@@ -93,14 +99,14 @@ public interface OfflineRegionStatusCallback {
/**
* Receives the status
*
- * @param status
+ * @param status the offline region status
*/
void onStatus(OfflineRegionStatus status);
/**
* Receives the error message
*
- * @param error
+ * @param error the error message
*/
void onError(String error);
}
@@ -118,7 +124,7 @@ public interface OfflineRegionDeleteCallback {
/**
* Receives the error message
*
- * @param error
+ * @param error the error message
*/
void onError(String error);
}
@@ -127,15 +133,17 @@ public interface OfflineRegionDeleteCallback {
* A region is either inactive (not downloading, but previously-downloaded
* resources are available for use), or active (resources are being downloaded
* or will be downloaded, if necessary, when network access is available).
- *
+ *
* This state is independent of whether or not the complete set of resources
* is currently available for offline use. To check if that is the case, use
* `OfflineRegionStatus.isComplete()`.
+ *
*/
@IntDef({STATE_INACTIVE, STATE_ACTIVE})
@Retention(RetentionPolicy.SOURCE)
- public @interface DownloadState {}
+ public @interface DownloadState {
+ }
public static final int STATE_INACTIVE = 0;
public static final int STATE_ACTIVE = 1;
@@ -148,6 +156,8 @@ public interface OfflineRegionDeleteCallback {
/**
* Gets whether or not the `OfflineRegionObserver` will continue to deliver messages even if
* the region state has been set as STATE_INACTIVE.
+ *
+ * @return true if delivering inactive messages
*/
public boolean isDeliveringInactiveMessages() {
return deliverInactiveMessages;
@@ -157,6 +167,8 @@ public boolean isDeliveringInactiveMessages() {
* When set true, the `OfflineRegionObserver` will continue to deliver messages even if
* the region state has been set as STATE_INACTIVE (operations happen asynchronously). If set
* false, the client won't be notified of further messages.
+ *
+ * @param deliverInactiveMessages true if it should deliver inactive messages
*/
public void setDeliverInactiveMessages(boolean deliverInactiveMessages) {
this.deliverInactiveMessages = deliverInactiveMessages;
@@ -203,6 +215,8 @@ private Handler getHandler() {
/**
* Register an observer to be notified when the state of the region changes.
+ *
+ * @param observer the observer to be notified
*/
public void setObserver(@NonNull final OfflineRegionObserver observer) {
setOfflineRegionObserver(new OfflineRegionObserver() {
@@ -246,6 +260,8 @@ public void run() {
/**
* Pause or resume downloading of regional resources.
+ *
+ * @param state the download state
*/
public void setDownloadState(@DownloadState int state) {
this.state = state;
@@ -256,6 +272,8 @@ public void setDownloadState(@DownloadState int state) {
* Retrieve the current status of the region. The query will be executed
* asynchronously and the results passed to the given callback which will be
* executed on the main thread.
+ *
+ * @param callback the callback to invoked.
*/
public void getStatus(@NonNull final OfflineRegionStatusCallback callback) {
getOfflineRegionStatus(new OfflineRegionStatusCallback() {
@@ -284,14 +302,19 @@ public void run() {
/**
* Remove an offline region from the database and perform any resources evictions
* necessary as a result.
- *
+ *
* Eviction works by removing the least-recently requested resources not also required
* by other regions, until the database shrinks below a certain size.
- *
+ *
+ *
* When the operation is complete or encounters an error, the given callback will be
* executed on the main thread.
- *
+ *
+ *
* After you call this method, you may not call any additional methods on this object.
+ *
+ *
+ * @param callback the callback to be invoked
*/
public void delete(@NonNull final OfflineRegionDeleteCallback callback) {
deleteOfflineRegion(new OfflineRegionDeleteCallback() {
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/PropertyFactory.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/PropertyFactory.java
index 1a1aa48065d..4d4a924dab1 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/PropertyFactory.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/PropertyFactory.java
@@ -12,14 +12,20 @@
public class PropertyFactory {
/**
- * Set visibility
+ * Set the property visibility.
+ *
+ * @param value the visibility value
+ * @return property wrapper around visibility
*/
public static Property visibility(@Property.VISIBILITY String value) {
return new LayoutProperty<>("visibility", value);
}
/**
- * Set visibility
+ * Set the property visibility.
+ *
+ * @param function the visibility function
+ * @return property wrapper around a String function
*/
public static Property> visibility(Function function) {
return new LayoutProperty<>("visibility", function);
@@ -27,6 +33,9 @@ public static Property> visibility(Function function) {
/**
* Whether or not the fill should be antialiased.
+ *
+ * @param value a Boolean value
+ * @return property wrapper around Boolean
*/
public static Property fillAntialias(Boolean value) {
return new PaintProperty<>("fill-antialias", value);
@@ -34,6 +43,9 @@ public static Property fillAntialias(Boolean value) {
/**
* Whether or not the fill should be antialiased.
+ *
+ * @param function a wrapper function for Boolean
+ * @return property wrapper around a Boolean function
*/
public static Property> fillAntialias(Function function) {
return new PaintProperty<>("fill-antialias", function);
@@ -41,6 +53,9 @@ public static Property> fillAntialias(Function functi
/**
* The opacity of the entire fill layer. In contrast to the fill-color, this value will also affect the 1px stroke around the fill, if the stroke is used.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property fillOpacity(Float value) {
return new PaintProperty<>("fill-opacity", value);
@@ -48,6 +63,9 @@ public static Property fillOpacity(Float value) {
/**
* The opacity of the entire fill layer. In contrast to the fill-color, this value will also affect the 1px stroke around the fill, if the stroke is used.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> fillOpacity(Function function) {
return new PaintProperty<>("fill-opacity", function);
@@ -55,6 +73,9 @@ public static Property> fillOpacity(Function function) {
/**
* The color of the filled part of this layer. This color can be specified as rgba with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.
+ *
+ * @param value a int color value
+ * @return property wrapper around String color
*/
public static Property fillColor(@ColorInt int value) {
return new PaintProperty<>("fill-color", colorToRgbaString(value));
@@ -62,6 +83,9 @@ public static Property fillColor(@ColorInt int value) {
/**
* The color of the filled part of this layer. This color can be specified as rgba with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property fillColor(String value) {
return new PaintProperty<>("fill-color", value);
@@ -69,6 +93,9 @@ public static Property fillColor(String value) {
/**
* The color of the filled part of this layer. This color can be specified as rgba with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> fillColor(Function function) {
return new PaintProperty<>("fill-color", function);
@@ -76,6 +103,9 @@ public static Property> fillColor(Function function) {
/**
* The outline color of the fill. Matches the value of `fill-color` if unspecified.
+ *
+ * @param value a int color value
+ * @return property wrapper around String color
*/
public static Property fillOutlineColor(@ColorInt int value) {
return new PaintProperty<>("fill-outline-color", colorToRgbaString(value));
@@ -83,6 +113,9 @@ public static Property fillOutlineColor(@ColorInt int value) {
/**
* The outline color of the fill. Matches the value of `fill-color` if unspecified.
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property fillOutlineColor(String value) {
return new PaintProperty<>("fill-outline-color", value);
@@ -90,6 +123,9 @@ public static Property fillOutlineColor(String value) {
/**
* The outline color of the fill. Matches the value of `fill-color` if unspecified.
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> fillOutlineColor(Function function) {
return new PaintProperty<>("fill-outline-color", function);
@@ -97,6 +133,9 @@ public static Property> fillOutlineColor(Function funct
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
+ *
+ * @param value a Float[] value
+ * @return property wrapper around Float[]
*/
public static Property fillTranslate(Float[] value) {
return new PaintProperty<>("fill-translate", value);
@@ -104,6 +143,9 @@ public static Property fillTranslate(Float[] value) {
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
+ *
+ * @param function a wrapper function for Float[]
+ * @return property wrapper around a Float[] function
*/
public static Property> fillTranslate(Function function) {
return new PaintProperty<>("fill-translate", function);
@@ -111,6 +153,9 @@ public static Property> fillTranslate(Function functi
/**
* Control whether the translation is relative to the map (north) or viewport (screen)
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property fillTranslateAnchor(@Property.FILL_TRANSLATE_ANCHOR String value) {
return new PaintProperty<>("fill-translate-anchor", value);
@@ -118,6 +163,9 @@ public static Property fillTranslateAnchor(@Property.FILL_TRANSLATE_ANCH
/**
* Control whether the translation is relative to the map (north) or viewport (screen)
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> fillTranslateAnchor(Function function) {
return new PaintProperty<>("fill-translate-anchor", function);
@@ -125,6 +173,9 @@ public static Property> fillTranslateAnchor(Function fu
/**
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property fillPattern(String value) {
return new PaintProperty<>("fill-pattern", value);
@@ -132,6 +183,9 @@ public static Property fillPattern(String value) {
/**
* Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512).
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> fillPattern(Function function) {
return new PaintProperty<>("fill-pattern", function);
@@ -139,6 +193,9 @@ public static Property> fillPattern(Function function)
/**
* The opacity at which the line will be drawn.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property lineOpacity(Float value) {
return new PaintProperty<>("line-opacity", value);
@@ -146,6 +203,9 @@ public static Property lineOpacity(Float value) {
/**
* The opacity at which the line will be drawn.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> lineOpacity(Function function) {
return new PaintProperty<>("line-opacity", function);
@@ -153,6 +213,9 @@ public static Property> lineOpacity(Function function) {
/**
* The color with which the line will be drawn.
+ *
+ * @param value a int color value
+ * @return property wrapper around String color
*/
public static Property lineColor(@ColorInt int value) {
return new PaintProperty<>("line-color", colorToRgbaString(value));
@@ -160,6 +223,9 @@ public static Property lineColor(@ColorInt int value) {
/**
* The color with which the line will be drawn.
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property lineColor(String value) {
return new PaintProperty<>("line-color", value);
@@ -167,6 +233,9 @@ public static Property lineColor(String value) {
/**
* The color with which the line will be drawn.
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> lineColor(Function function) {
return new PaintProperty<>("line-color", function);
@@ -174,6 +243,9 @@ public static Property> lineColor(Function function) {
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
+ *
+ * @param value a Float[] value
+ * @return property wrapper around Float[]
*/
public static Property lineTranslate(Float[] value) {
return new PaintProperty<>("line-translate", value);
@@ -181,6 +253,9 @@ public static Property lineTranslate(Float[] value) {
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
+ *
+ * @param function a wrapper function for Float[]
+ * @return property wrapper around a Float[] function
*/
public static Property> lineTranslate(Function function) {
return new PaintProperty<>("line-translate", function);
@@ -188,6 +263,9 @@ public static Property> lineTranslate(Function functi
/**
* Control whether the translation is relative to the map (north) or viewport (screen)
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property lineTranslateAnchor(@Property.LINE_TRANSLATE_ANCHOR String value) {
return new PaintProperty<>("line-translate-anchor", value);
@@ -195,6 +273,9 @@ public static Property lineTranslateAnchor(@Property.LINE_TRANSLATE_ANCH
/**
* Control whether the translation is relative to the map (north) or viewport (screen)
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> lineTranslateAnchor(Function function) {
return new PaintProperty<>("line-translate-anchor", function);
@@ -202,6 +283,9 @@ public static Property> lineTranslateAnchor(Function fu
/**
* Stroke thickness.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property lineWidth(Float value) {
return new PaintProperty<>("line-width", value);
@@ -209,6 +293,9 @@ public static Property lineWidth(Float value) {
/**
* Stroke thickness.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> lineWidth(Function function) {
return new PaintProperty<>("line-width", function);
@@ -216,6 +303,9 @@ public static Property> lineWidth(Function function) {
/**
* Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property lineGapWidth(Float value) {
return new PaintProperty<>("line-gap-width", value);
@@ -223,6 +313,9 @@ public static Property lineGapWidth(Float value) {
/**
* Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> lineGapWidth(Function function) {
return new PaintProperty<>("line-gap-width", function);
@@ -230,6 +323,9 @@ public static Property> lineGapWidth(Function function) {
/**
* The line's offset perpendicular to its direction. Values may be positive or negative, where positive indicates "rightwards" (if you were moving in the direction of the line) and negative indicates "leftwards."
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property lineOffset(Float value) {
return new PaintProperty<>("line-offset", value);
@@ -237,6 +333,9 @@ public static Property lineOffset(Float value) {
/**
* The line's offset perpendicular to its direction. Values may be positive or negative, where positive indicates "rightwards" (if you were moving in the direction of the line) and negative indicates "leftwards."
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> lineOffset(Function function) {
return new PaintProperty<>("line-offset", function);
@@ -244,6 +343,9 @@ public static Property> lineOffset(Function function) {
/**
* Blur applied to the line, in pixels.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property lineBlur(Float value) {
return new PaintProperty<>("line-blur", value);
@@ -251,6 +353,9 @@ public static Property lineBlur(Float value) {
/**
* Blur applied to the line, in pixels.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> lineBlur(Function function) {
return new PaintProperty<>("line-blur", function);
@@ -258,6 +363,9 @@ public static Property> lineBlur(Function function) {
/**
* Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width.
+ *
+ * @param value a Float[] value
+ * @return property wrapper around Float[]
*/
public static Property lineDasharray(Float[] value) {
return new PaintProperty<>("line-dasharray", value);
@@ -265,6 +373,9 @@ public static Property lineDasharray(Float[] value) {
/**
* Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width.
+ *
+ * @param function a wrapper function for Float[]
+ * @return property wrapper around a Float[] function
*/
public static Property> lineDasharray(Function function) {
return new PaintProperty<>("line-dasharray", function);
@@ -272,6 +383,9 @@ public static Property> lineDasharray(Function functi
/**
* Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property linePattern(String value) {
return new PaintProperty<>("line-pattern", value);
@@ -279,6 +393,9 @@ public static Property linePattern(String value) {
/**
* Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512).
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> linePattern(Function function) {
return new PaintProperty<>("line-pattern", function);
@@ -286,6 +403,9 @@ public static Property> linePattern(Function function)
/**
* The opacity at which the icon will be drawn.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property iconOpacity(Float value) {
return new PaintProperty<>("icon-opacity", value);
@@ -293,6 +413,9 @@ public static Property iconOpacity(Float value) {
/**
* The opacity at which the icon will be drawn.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> iconOpacity(Function function) {
return new PaintProperty<>("icon-opacity", function);
@@ -300,6 +423,9 @@ public static Property> iconOpacity(Function function) {
/**
* The color of the icon. This can only be used with sdf icons.
+ *
+ * @param value a int color value
+ * @return property wrapper around String color
*/
public static Property iconColor(@ColorInt int value) {
return new PaintProperty<>("icon-color", colorToRgbaString(value));
@@ -307,6 +433,9 @@ public static Property iconColor(@ColorInt int value) {
/**
* The color of the icon. This can only be used with sdf icons.
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property iconColor(String value) {
return new PaintProperty<>("icon-color", value);
@@ -314,6 +443,9 @@ public static Property iconColor(String value) {
/**
* The color of the icon. This can only be used with sdf icons.
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> iconColor(Function function) {
return new PaintProperty<>("icon-color", function);
@@ -321,6 +453,9 @@ public static Property> iconColor(Function function) {
/**
* The color of the icon's halo. Icon halos can only be used with sdf icons.
+ *
+ * @param value a int color value
+ * @return property wrapper around String color
*/
public static Property iconHaloColor(@ColorInt int value) {
return new PaintProperty<>("icon-halo-color", colorToRgbaString(value));
@@ -328,6 +463,9 @@ public static Property iconHaloColor(@ColorInt int value) {
/**
* The color of the icon's halo. Icon halos can only be used with sdf icons.
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property iconHaloColor(String value) {
return new PaintProperty<>("icon-halo-color", value);
@@ -335,6 +473,9 @@ public static Property iconHaloColor(String value) {
/**
* The color of the icon's halo. Icon halos can only be used with sdf icons.
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> iconHaloColor(Function function) {
return new PaintProperty<>("icon-halo-color", function);
@@ -342,6 +483,9 @@ public static Property> iconHaloColor(Function function
/**
* Distance of halo to the icon outline.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property iconHaloWidth(Float value) {
return new PaintProperty<>("icon-halo-width", value);
@@ -349,6 +493,9 @@ public static Property iconHaloWidth(Float value) {
/**
* Distance of halo to the icon outline.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> iconHaloWidth(Function function) {
return new PaintProperty<>("icon-halo-width", function);
@@ -356,6 +503,9 @@ public static Property> iconHaloWidth(Function function)
/**
* Fade out the halo towards the outside.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property iconHaloBlur(Float value) {
return new PaintProperty<>("icon-halo-blur", value);
@@ -363,6 +513,9 @@ public static Property iconHaloBlur(Float value) {
/**
* Fade out the halo towards the outside.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> iconHaloBlur(Function function) {
return new PaintProperty<>("icon-halo-blur", function);
@@ -370,6 +523,9 @@ public static Property> iconHaloBlur(Function function) {
/**
* Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
+ *
+ * @param value a Float[] value
+ * @return property wrapper around Float[]
*/
public static Property iconTranslate(Float[] value) {
return new PaintProperty<>("icon-translate", value);
@@ -377,6 +533,9 @@ public static Property iconTranslate(Float[] value) {
/**
* Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
+ *
+ * @param function a wrapper function for Float[]
+ * @return property wrapper around a Float[] function
*/
public static Property> iconTranslate(Function function) {
return new PaintProperty<>("icon-translate", function);
@@ -384,6 +543,9 @@ public static Property> iconTranslate(Function functi
/**
* Control whether the translation is relative to the map (north) or viewport (screen).
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property iconTranslateAnchor(@Property.ICON_TRANSLATE_ANCHOR String value) {
return new PaintProperty<>("icon-translate-anchor", value);
@@ -391,6 +553,9 @@ public static Property iconTranslateAnchor(@Property.ICON_TRANSLATE_ANCH
/**
* Control whether the translation is relative to the map (north) or viewport (screen).
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> iconTranslateAnchor(Function function) {
return new PaintProperty<>("icon-translate-anchor", function);
@@ -398,6 +563,9 @@ public static Property> iconTranslateAnchor(Function fu
/**
* The opacity at which the text will be drawn.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property textOpacity(Float value) {
return new PaintProperty<>("text-opacity", value);
@@ -405,6 +573,9 @@ public static Property textOpacity(Float value) {
/**
* The opacity at which the text will be drawn.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> textOpacity(Function function) {
return new PaintProperty<>("text-opacity", function);
@@ -412,6 +583,9 @@ public static Property> textOpacity(Function function) {
/**
* The color with which the text will be drawn.
+ *
+ * @param value a int color value
+ * @return property wrapper around String color
*/
public static Property textColor(@ColorInt int value) {
return new PaintProperty<>("text-color", colorToRgbaString(value));
@@ -419,6 +593,9 @@ public static Property textColor(@ColorInt int value) {
/**
* The color with which the text will be drawn.
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property textColor(String value) {
return new PaintProperty<>("text-color", value);
@@ -426,6 +603,9 @@ public static Property textColor(String value) {
/**
* The color with which the text will be drawn.
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> textColor(Function function) {
return new PaintProperty<>("text-color", function);
@@ -433,6 +613,9 @@ public static Property> textColor(Function function) {
/**
* The color of the text's halo, which helps it stand out from backgrounds.
+ *
+ * @param value a int color value
+ * @return property wrapper around String color
*/
public static Property textHaloColor(@ColorInt int value) {
return new PaintProperty<>("text-halo-color", colorToRgbaString(value));
@@ -440,6 +623,9 @@ public static Property textHaloColor(@ColorInt int value) {
/**
* The color of the text's halo, which helps it stand out from backgrounds.
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property textHaloColor(String value) {
return new PaintProperty<>("text-halo-color", value);
@@ -447,6 +633,9 @@ public static Property textHaloColor(String value) {
/**
* The color of the text's halo, which helps it stand out from backgrounds.
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> textHaloColor(Function function) {
return new PaintProperty<>("text-halo-color", function);
@@ -454,6 +643,9 @@ public static Property> textHaloColor(Function function
/**
* Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property textHaloWidth(Float value) {
return new PaintProperty<>("text-halo-width", value);
@@ -461,6 +653,9 @@ public static Property textHaloWidth(Float value) {
/**
* Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> textHaloWidth(Function function) {
return new PaintProperty<>("text-halo-width", function);
@@ -468,6 +663,9 @@ public static Property> textHaloWidth(Function function)
/**
* The halo's fadeout distance towards the outside.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property textHaloBlur(Float value) {
return new PaintProperty<>("text-halo-blur", value);
@@ -475,6 +673,9 @@ public static Property textHaloBlur(Float value) {
/**
* The halo's fadeout distance towards the outside.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> textHaloBlur(Function function) {
return new PaintProperty<>("text-halo-blur", function);
@@ -482,6 +683,9 @@ public static Property> textHaloBlur(Function function) {
/**
* Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
+ *
+ * @param value a Float[] value
+ * @return property wrapper around Float[]
*/
public static Property textTranslate(Float[] value) {
return new PaintProperty<>("text-translate", value);
@@ -489,6 +693,9 @@ public static Property textTranslate(Float[] value) {
/**
* Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
+ *
+ * @param function a wrapper function for Float[]
+ * @return property wrapper around a Float[] function
*/
public static Property> textTranslate(Function function) {
return new PaintProperty<>("text-translate", function);
@@ -496,6 +703,9 @@ public static Property> textTranslate(Function functi
/**
* Control whether the translation is relative to the map (north) or viewport (screen).
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property textTranslateAnchor(@Property.TEXT_TRANSLATE_ANCHOR String value) {
return new PaintProperty<>("text-translate-anchor", value);
@@ -503,6 +713,9 @@ public static Property textTranslateAnchor(@Property.TEXT_TRANSLATE_ANCH
/**
* Control whether the translation is relative to the map (north) or viewport (screen).
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> textTranslateAnchor(Function function) {
return new PaintProperty<>("text-translate-anchor", function);
@@ -510,6 +723,9 @@ public static Property> textTranslateAnchor(Function fu
/**
* Circle radius.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property circleRadius(Float value) {
return new PaintProperty<>("circle-radius", value);
@@ -517,6 +733,9 @@ public static Property circleRadius(Float value) {
/**
* Circle radius.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> circleRadius(Function function) {
return new PaintProperty<>("circle-radius", function);
@@ -524,6 +743,9 @@ public static Property> circleRadius(Function function) {
/**
* The color of the circle.
+ *
+ * @param value a int color value
+ * @return property wrapper around String color
*/
public static Property circleColor(@ColorInt int value) {
return new PaintProperty<>("circle-color", colorToRgbaString(value));
@@ -531,6 +753,9 @@ public static Property circleColor(@ColorInt int value) {
/**
* The color of the circle.
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property circleColor(String value) {
return new PaintProperty<>("circle-color", value);
@@ -538,6 +763,9 @@ public static Property circleColor(String value) {
/**
* The color of the circle.
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> circleColor(Function function) {
return new PaintProperty<>("circle-color", function);
@@ -545,6 +773,9 @@ public static Property> circleColor(Function function)
/**
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property circleBlur(Float value) {
return new PaintProperty<>("circle-blur", value);
@@ -552,6 +783,9 @@ public static Property circleBlur(Float value) {
/**
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> circleBlur(Function function) {
return new PaintProperty<>("circle-blur", function);
@@ -559,6 +793,9 @@ public static Property> circleBlur(Function function) {
/**
* The opacity at which the circle will be drawn.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property circleOpacity(Float value) {
return new PaintProperty<>("circle-opacity", value);
@@ -566,6 +803,9 @@ public static Property circleOpacity(Float value) {
/**
* The opacity at which the circle will be drawn.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> circleOpacity(Function function) {
return new PaintProperty<>("circle-opacity", function);
@@ -573,6 +813,9 @@ public static Property> circleOpacity(Function function)
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
+ *
+ * @param value a Float[] value
+ * @return property wrapper around Float[]
*/
public static Property circleTranslate(Float[] value) {
return new PaintProperty<>("circle-translate", value);
@@ -580,6 +823,9 @@ public static Property circleTranslate(Float[] value) {
/**
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
+ *
+ * @param function a wrapper function for Float[]
+ * @return property wrapper around a Float[] function
*/
public static Property> circleTranslate(Function function) {
return new PaintProperty<>("circle-translate", function);
@@ -587,6 +833,9 @@ public static Property> circleTranslate(Function func
/**
* Control whether the translation is relative to the map (north) or viewport (screen)
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property circleTranslateAnchor(@Property.CIRCLE_TRANSLATE_ANCHOR String value) {
return new PaintProperty<>("circle-translate-anchor", value);
@@ -594,6 +843,9 @@ public static Property circleTranslateAnchor(@Property.CIRCLE_TRANSLATE_
/**
* Control whether the translation is relative to the map (north) or viewport (screen)
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> circleTranslateAnchor(Function function) {
return new PaintProperty<>("circle-translate-anchor", function);
@@ -601,6 +853,9 @@ public static Property> circleTranslateAnchor(Function
/**
* Controls the scaling behavior of the circle when the map is pitched. The value `map` scales circles according to their apparent distance to the camera. The value `viewport` results in no pitch-related scaling.
+ *
+ * @param value a String value
+ * @return property wrapper around String
*/
public static Property circlePitchScale(@Property.CIRCLE_PITCH_SCALE String value) {
return new PaintProperty<>("circle-pitch-scale", value);
@@ -608,6 +863,9 @@ public static Property circlePitchScale(@Property.CIRCLE_PITCH_SCALE Str
/**
* Controls the scaling behavior of the circle when the map is pitched. The value `map` scales circles according to their apparent distance to the camera. The value `viewport` results in no pitch-related scaling.
+ *
+ * @param function a wrapper function for String
+ * @return property wrapper around a String function
*/
public static Property> circlePitchScale(Function function) {
return new PaintProperty<>("circle-pitch-scale", function);
@@ -615,6 +873,9 @@ public static Property> circlePitchScale(Function funct
/**
* The opacity at which the image will be drawn.
+ *
+ * @param value a Float value
+ * @return property wrapper around Float
*/
public static Property rasterOpacity(Float value) {
return new PaintProperty<>("raster-opacity", value);
@@ -622,6 +883,9 @@ public static Property rasterOpacity(Float value) {
/**
* The opacity at which the image will be drawn.
+ *
+ * @param function a wrapper function for Float
+ * @return property wrapper around a Float function
*/
public static Property> rasterOpacity(Function function) {
return new PaintProperty<>("raster-opacity", function);
@@ -629,6 +893,9 @@ public static Property