// This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make style-code-android`. package com.mapbox.mapboxsdk.style.layers; /** * Raster Layer */ public class RasterLayer extends Layer { public RasterLayer(long nativePtr) { super(nativePtr); } public RasterLayer(String layerId, String sourceId) { initialize(layerId, sourceId); } protected native void initialize(String layerId, String sourceId); public void setSourceLayer(String sourceLayer) { checkValidity(); nativeSetSourceLayer(sourceLayer); } // Property getters @SuppressWarnings("unchecked") public PropertyValue getRasterOpacity() { checkValidity(); return (PropertyValue) new PropertyValue(nativeGetRasterOpacity()); } @SuppressWarnings("unchecked") public PropertyValue getRasterHueRotate() { checkValidity(); return (PropertyValue) new PropertyValue(nativeGetRasterHueRotate()); } @SuppressWarnings("unchecked") public PropertyValue getRasterBrightnessMin() { checkValidity(); return (PropertyValue) new PropertyValue(nativeGetRasterBrightnessMin()); } @SuppressWarnings("unchecked") public PropertyValue getRasterBrightnessMax() { checkValidity(); return (PropertyValue) new PropertyValue(nativeGetRasterBrightnessMax()); } @SuppressWarnings("unchecked") public PropertyValue getRasterSaturation() { checkValidity(); return (PropertyValue) new PropertyValue(nativeGetRasterSaturation()); } @SuppressWarnings("unchecked") public PropertyValue getRasterContrast() { checkValidity(); return (PropertyValue) new PropertyValue(nativeGetRasterContrast()); } @SuppressWarnings("unchecked") public PropertyValue getRasterFadeDuration() { checkValidity(); return (PropertyValue) new PropertyValue(nativeGetRasterFadeDuration()); } private native Object nativeGetRasterOpacity(); private native Object nativeGetRasterHueRotate(); private native Object nativeGetRasterBrightnessMin(); private native Object nativeGetRasterBrightnessMax(); private native Object nativeGetRasterSaturation(); private native Object nativeGetRasterContrast(); private native Object nativeGetRasterFadeDuration(); }