6.3.1.5.5. SimpleFeatureRenderer

public class SimpleFeatureRenderer extends Renderer

6.3.1.5.5.1. Fields

6.3.1.5.5.1.1. GEOMETRY_PER_TASK

protected static final int GEOMETRY_PER_TASK

6.3.1.5.5.1.2. JSON_STYLE_KEY

public static final String JSON_STYLE_KEY

6.3.1.5.5.1.3. mDrawThreadPool

protected ThreadPoolExecutor mDrawThreadPool

6.3.1.5.5.1.4. mStyle

protected Style mStyle

6.3.1.5.5.2. Constructors

6.3.1.5.5.2.1. SimpleFeatureRenderer

public SimpleFeatureRenderer(Layer layer)

6.3.1.5.5.2.2. SimpleFeatureRenderer

public SimpleFeatureRenderer(Layer layer, Style style)

6.3.1.5.5.3. Methods

6.3.1.5.5.3.1. applyField

protected Style applyField(Style style, long featureId)

6.3.1.5.5.3.2. cancelDraw

public void cancelDraw()

6.3.1.5.5.3.3. fromJSON

public void fromJSON(JSONObject jsonObject)

6.3.1.5.5.3.4. fromJSON

public static void fromJSON(JSONObject jsonObject, AtomicReference<Style> style)

6.3.1.5.5.3.5. getStyle

protected Style getStyle(long featureId)

If subclass’s getStyle(long featureId) changes style params then must be so in the method body:

 try {
    Style styleClone = mStyle.clone();
    // changing styleClone params
    return styleClone;
} catch (CloneNotSupportedException e) {
    e.printStackTrace();
    return mStyle;
    // or treat this situation instead
}

or

 Style style = new Style(); // or from subclass of Style
// changing style params
return style;

6.3.1.5.5.3.6. getStyle

public Style getStyle()

6.3.1.5.5.3.7. runDraw

public void runDraw(GISDisplay display)

6.3.1.5.5.3.8. toJSON

public JSONObject toJSON()