public abstract class

BaseRenderer

extends Object
implements Renderer
java.lang.Object
   ↳ com.esri.core.renderer.BaseRenderer
Known Direct Subclasses

Class Overview

Common implementation for all supported renderers. Note that custom derived renderers are not supported.

Summary

Fields
protected String rotationExpression
protected RotationType rotationType
Public Constructors
BaseRenderer()
Protected Constructors
BaseRenderer(JsonNode node)
Public Methods
String getRotationExpression()
Returns the rotation expression.
RotationType getRotationType()
Gets the RotationType.
void setRotationExpression(String rotationExpression)
Sets the rotation expression.
void setRotationType(RotationType rotationType)
Sets the RotationType.
String toJson()
Converts into a JSON string.
Protected Methods
abstract String getType()
void toJson(JsonGenerator node)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.esri.core.renderer.Renderer

Fields

protected String rotationExpression

protected RotationType rotationType

Public Constructors

public BaseRenderer ()

Protected Constructors

protected BaseRenderer (JsonNode node)

Parameters
node JsonNode

Public Methods

public String getRotationExpression ()

Returns the rotation expression.

Returns
String the rotation expression, null if not set.

public RotationType getRotationType ()

Gets the RotationType.

Returns
RotationType rotation type, null if not set.

public void setRotationExpression (String rotationExpression)

Sets the rotation expression. This property is optional.

It is a simple expression that specifies that the angle of rotation is based on a feature attribute value. It must take the form of an attribute name enclosed in square brackets, for example, [Rotation].

Parameters
rotationExpression String: rotation expression, null value is ignored.

public void setRotationType (RotationType rotationType)

Sets the RotationType. This property is optional.

Parameters
rotationType RotationType: rotation type.

public String toJson ()

Converts into a JSON string.

Returns
String a JSON string.
Throws
Exception

Protected Methods

protected abstract String getType ()

Returns
String

protected void toJson (JsonGenerator node)

Parameters
node JsonGenerator
Throws
Exception