com.esri.core.renderer
Class DictionaryRenderer

java.lang.Object
  extended by com.esri.core.renderer.DictionaryRenderer
All Implemented Interfaces:
Renderer<Graphic>, Serializable

public class DictionaryRenderer
extends Object
implements Renderer<Graphic>

A Dictionary Renderer implements Advanced Symbology

See Also:
Serialized Form

Field Summary
static String TYPE
           
 
Constructor Summary
protected DictionaryRenderer(org.codehaus.jackson.JsonNode node)
           
 
Method Summary
 double getLabelMaxScale()
          Gets the maximum scale at which labels are visible
 double getLabelMinScale()
          Gets the minimum scale at which labels are visible
 boolean getLabelsVisible()
          Determines whether labels are visible at any scale
 Symbol getSymbol(Graphic graphic)
          Subclasses must override this method.
 double getSymbolScaleFactor()
          Get the scale factor applied to point marker symbols
 void setLabelMaxScale(double maxScale)
          Sets the maximum scale at which labels are visible
 void setLabelMinScale(double minScale)
          Sets the minimum scale at which labels are visible
 void setLabelsVisible(boolean visible)
          Set whether labels are visible at any scale
 String toJson()
          Converts the render to a Json String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

DictionaryRenderer

protected DictionaryRenderer(org.codehaus.jackson.JsonNode node)
                      throws Exception
Throws:
Exception
Method Detail

getSymbol

public Symbol getSymbol(Graphic graphic)
Description copied from interface: Renderer
Subclasses must override this method. You wouldn't typically work with this method unless you need to create your own renderer.

Specified by:
getSymbol in interface Renderer<Graphic>
Parameters:
graphic - The Graphic to symbolize.
Returns:
the symbol based on the properties of the graphic.

toJson

public String toJson()
              throws Exception
Description copied from interface: Renderer
Converts the render to a Json String.

Specified by:
toJson in interface Renderer<Graphic>
Throws:
Exception

getLabelMaxScale

public double getLabelMaxScale()
Gets the maximum scale at which labels are visible

Returns:
The maximum value.

setLabelMaxScale

public void setLabelMaxScale(double maxScale)
Sets the maximum scale at which labels are visible

Parameters:
maxScale - The maximum scale

getLabelMinScale

public double getLabelMinScale()
Gets the minimum scale at which labels are visible

Returns:
The minimum value.

setLabelMinScale

public void setLabelMinScale(double minScale)
Sets the minimum scale at which labels are visible

Parameters:
minScale - The minimum scale

getLabelsVisible

public boolean getLabelsVisible()
Determines whether labels are visible at any scale

Returns:
The label visibility

setLabelsVisible

public void setLabelsVisible(boolean visible)
Set whether labels are visible at any scale

Parameters:
visible - The label visibility

getSymbolScaleFactor

public double getSymbolScaleFactor()
Get the scale factor applied to point marker symbols

Returns:
The scale factor value.


Copyright © 2012. All Rights Reserved.