com.moximedia.aims
Class AimsSimpleRenderer

java.lang.Object
  extended bycom.moximedia.aims.AimsSimpleRenderer
All Implemented Interfaces:
AimsRenderer, java.lang.Cloneable, java.io.Serializable

public class AimsSimpleRenderer
extends java.lang.Object
implements AimsRenderer, java.io.Serializable, java.lang.Cloneable

Author:
Doug Cates - www.moximedia.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.moximedia.aims.AimsRenderer
RENDERER_TYPE_GROUP, RENDERER_TYPE_SCALEDEPENDENT, RENDERER_TYPE_SIMPLE, RENDERER_TYPE_SIMPLELABEL, RENDERER_TYPE_VALUEMAP, RENDERER_TYPE_VALUEMAPLABEL
 
Constructor Summary
AimsSimpleRenderer()
          Creates new SimpleRenderer
 
Method Summary
 void adjustScaleFactors(double multiplier)
          Adjusts the scale factors for this renderer.
 java.lang.Object clone()
          Creates a copy of this renderer.
 int getRendererType()
          Returns an indicator of what type of renderer this is.
 AimsSymbol getSymbol()
          Returns the symbol associated with this renderer.
 void highlight(AimsColor highlightColor, double transparency)
           
 boolean isModified()
          Returns a boolean value indicating whether the renderer or it's symbols have been modified by the user since it was loaded from the map service.
 void removeLabels()
          Removes labels from this renderer and any subrenderers (if applicable).
 void setModified(boolean isModified)
           
 void setSymbol(AimsSymbol aSymbol)
          Sets the symbol used to symbolize all of the features.
 void showLabels(boolean showLabels)
           
 java.lang.String toAxlString()
          Returns the AXL string to refresh this object.
 java.lang.String toAxlString(AimsEnvironment env)
          Returns the AXL string to send to the application server to apply this renderer to a layer.
 java.lang.String toString()
          Returns a text representation of of this class.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AimsSimpleRenderer

public AimsSimpleRenderer()
Creates new SimpleRenderer

Method Detail

clone

public java.lang.Object clone()
Creates a copy of this renderer.

Specified by:
clone in interface AimsRenderer
Returns:
An object that is a copy of this renderer. The object must be cast to an AimsSimpleRenderer or AimsRenderer before use.

isModified

public boolean isModified()
Returns a boolean value indicating whether the renderer or it's symbols have been modified by the user since it was loaded from the map service.

Specified by:
isModified in interface AimsRenderer
Returns:
True if modified, otherwise false.

setSymbol

public void setSymbol(AimsSymbol aSymbol)
Sets the symbol used to symbolize all of the features.

Parameters:
aSymbol - An appropriate symbol for the layer type. If layer type is polygon, then polygon, line, and point symbols can be used. If layer type is line, then line and point symbols can be used. If layer type is point, then only point symbols can be used.

getSymbol

public AimsSymbol getSymbol()
Returns the symbol associated with this renderer.

Returns:
The symbol associated with this renderer.

toString

public java.lang.String toString()
Returns a text representation of of this class.

Specified by:
toString in interface AimsRenderer
Returns:
A string describing the class

toAxlString

public java.lang.String toAxlString()
Returns the AXL string to refresh this object.

Specified by:
toAxlString in interface AimsRenderer
Returns:
The AXL string to refresh this object.

toAxlString

public java.lang.String toAxlString(AimsEnvironment env)
Returns the AXL string to send to the application server to apply this renderer to a layer.

Specified by:
toAxlString in interface AimsRenderer
Returns:
The AXL string containing this object, and all sub objects.

highlight

public void highlight(AimsColor highlightColor,
                      double transparency)
Specified by:
highlight in interface AimsRenderer

setModified

public void setModified(boolean isModified)
Specified by:
setModified in interface AimsRenderer

removeLabels

public void removeLabels()
Removes labels from this renderer and any subrenderers (if applicable). This method is used by the createHighlightLayer method to avoid duplicate labels on the map.

Specified by:
removeLabels in interface AimsRenderer

showLabels

public void showLabels(boolean showLabels)
Specified by:
showLabels in interface AimsRenderer

adjustScaleFactors

public void adjustScaleFactors(double multiplier)
Adjusts the scale factors for this renderer. Used for some renderers when changing the units of a map.

Specified by:
adjustScaleFactors in interface AimsRenderer
Parameters:
multiplier - The multiplication factor for adjusting scale factors.

getRendererType

public int getRendererType()
Returns an indicator of what type of renderer this is.

Specified by:
getRendererType in interface AimsRenderer
Returns:
An enumerated value indicating the type of renderer this is. Always returns AimsRenderer.RENDERER_TYPE_SIMPLE.


Internet Mapping Framework for ArcIMS Java Object Model API (v5.1.00)
Copyright © 2006 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.