com.moximedia.aims
Class AimsScaleDependentRenderer

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

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

Implementation of ArcIMS ScaleDependentRenderer object.

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

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()
           
 double getUpper()
           
 void highlight(AimsColor highlightColor, double transparency)
          Sets the symbols of this renderer to the specified highlight color.
 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 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)
          Returns the AXL string to refresh this object.
 java.lang.String toString()
          Returns a text description of this object.
 
Methods inherited from class com.moximedia.aims.AimsGroupRenderer
addRenderer, getRenderer, size
 
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
Overrides:
clone in class AimsGroupRenderer
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
Overrides:
isModified in class AimsGroupRenderer
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
Overrides:
setModified in class AimsGroupRenderer
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.

toString

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

Specified by:
toString in interface AimsRenderer
Overrides:
toString in class AimsGroupRenderer
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
Overrides:
toAxlString in class AimsGroupRenderer
Returns:
The AXL string to refresh this object.

toAxlString

public java.lang.String toAxlString(AimsEnvironment env)
Description copied from class: AimsGroupRenderer
Returns the AXL string to refresh this object.

Specified by:
toAxlString in interface AimsRenderer
Overrides:
toAxlString in class AimsGroupRenderer
Parameters:
env - The AimsEnvironment object used to generate the proper AXL for the ArcIMS version in use.
Returns:
The AXL string to refresh this object.

highlight

public void highlight(AimsColor highlightColor,
                      double transparency)
Description copied from class: AimsGroupRenderer
Sets the symbols of this renderer to the specified highlight color.

Specified by:
highlight in interface AimsRenderer
Overrides:
highlight in class AimsGroupRenderer
Parameters:
highlightColor - The color to use for highlighting features.

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
Overrides:
removeLabels in class AimsGroupRenderer

showLabels

public void showLabels(boolean showLabels)
Toggles the visibility of the label renderers in this renderer.

Specified by:
showLabels in interface AimsRenderer
Overrides:
showLabels in class AimsGroupRenderer
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
Overrides:
adjustScaleFactors in class AimsGroupRenderer
Parameters:
multiplier - The multiplication factor for adjusting scale factors.


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