If you think the Android project arcgis-android-sdk-gradle-samples listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/* Copyright 2014 ESRI
*//www.java2s.com
* All rights reserved under the copyright laws of the United States
* and applicable international laws, treaties, and conventions.
*
* You may freely redistribute and use this sample code, with or
* without modification, provided you include the original copyright
* notice and use restrictions.
*
* See the Sample code usage restrictions document for further information.
*
*/package com.arcgis.android.samples.localdata.localrasterdata;
publicenum RendererType {
RGB(0, "RGB Renderer"),
STRETCHED(1, "Stretched Renderer"),
HILLSHADE(2, "Hillshade Renderer"),
BLEND(3, "Blend Renderer");
privateint mCode;
private String mName;
staticpublic RendererType fromCode(int code) {
if (code == RGB.getCode()) {
return RGB;
} elseif (code == BLEND.getCode()) {
return BLEND;
} elseif (code == HILLSHADE.getCode()) {
return HILLSHADE;
}
return STRETCHED;
}
RendererType(int code, String name) {
mCode = code;
mName = name;
}
publicint getCode() {
return mCode;
}
public String getName() {
return mName;
}
}