com.moximedia.aims
Class AimsScaleDependentRenderer

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

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

Implementation of ArcIMS ScaleDependentRenderer object.

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
AimsScaleDependentRenderer()
          Creates new ScaleDependentRenderer
 
Method Summary
 void adjustScaleFactors(double multiplier)
          Adjusts the scale factors for this renderer.
 java.lang.Object clone()
          Creates a copy of this renderer.
 double getLower()
           
 AimsRenderer getRenderer()
           
 int getRendererType()
          Returns an indicator of what type of renderer this is.
 double getUpper()
           
 void highlight(AimsColor highlightColor, double transparency)
           
 boolean isModified()
          Returns a boolean value indicating whether the renderer has 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 setAxlAttribute(AimsMap map, java.lang.String tag, java.lang.String name, java.lang.String value)
          Sets one of the attributes of this object using a string value.
 void setAxlAttribute(java.lang.String tag, java.lang.String name, java.lang.String value)
          Sets one of the attributes of this object using a string value.
 void setLower(double unitsPerPixel)
           
 void setModified(boolean isModified)
          Sets the modified flag of the renderer, indicating that it needs to be sent to the map server when the map is refreshed.
 void setRenderer(AimsRenderer renderer)
           
 void setUpper(double unitsPerPixel)
           
 void showLabels(boolean showLabels)
          Toggles the visibility of the label renderers in this renderer.
 java.lang.String toAxlString()
          Returns the AXL string to refresh this object.
 java.lang.String toAxlString(AimsEnvironment env)
           
 java.lang.String toString()
          Returns a text description of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AimsScaleDependentRenderer

public AimsScaleDependentRenderer()
Creates new ScaleDependentRenderer

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 AimsScaleDependentRenderer or AimsRenderer before use.

isModified

public boolean isModified()
Returns a boolean value indicating whether the renderer has 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.

setModified

public void setModified(boolean isModified)
Sets the modified flag of the renderer, indicating that it needs to be sent to the map server when the map is refreshed.

Specified by:
setModified in interface AimsRenderer
Parameters:
isModified - True if the renderer has been modified.

setLower

public void setLower(double unitsPerPixel)

getLower

public double getLower()

setRenderer

public void setRenderer(AimsRenderer renderer)

getRenderer

public AimsRenderer getRenderer()

setUpper

public void setUpper(double unitsPerPixel)

getUpper

public double getUpper()

setAxlAttribute

public void setAxlAttribute(AimsMap map,
                            java.lang.String tag,
                            java.lang.String name,
                            java.lang.String value)
Sets one of the attributes of this object using a string value. This method should only be called from the SAX event handler.

Parameters:
map - The map, used to calculate scales
tag - The AXL element tag containing this attribute (not used).
name - The AXL attribute name.
value - The AXL attribute value.

setAxlAttribute

public void setAxlAttribute(java.lang.String tag,
                            java.lang.String name,
                            java.lang.String value)
Sets one of the attributes of this object using a string value. This method should only be called from the SAX event handler.

Parameters:
tag - The AXL element tag containing this attribute (not used).
name - The AXL attribute name.
value - The AXL attribute value.

toString

public java.lang.String toString()
Returns a text description of this object.

Specified by:
toString in interface AimsRenderer
Returns:
The description of this object.

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)
Specified by:
toAxlString in interface AimsRenderer

highlight

public void highlight(AimsColor highlightColor,
                      double transparency)
Specified by:
highlight 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)
Toggles the visibility of the label renderers in this renderer.

Specified by:
showLabels in interface AimsRenderer
Parameters:
showLabels - The visibility property.

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_SCALEDEPENDENT.


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.