com.moximedia.aims
Class AimsSimpleLabelRenderer

java.lang.Object
  extended bycom.moximedia.aims.AimsSimpleLabelRenderer
All Implemented Interfaces:
AimsRenderer, java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
AimsValueMapLabelRenderer

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

See Also:
Serialized Form

Constructor Summary
AimsSimpleLabelRenderer()
          Creates new SimpleLabelRenderer
 
Method Summary
 void adjustScaleFactors(double multiplier)
          Adjusts the scale factors for this renderer.
 java.lang.Object clone()
          Creates a copy of this renderer.
 java.lang.String getFeatureWeight()
          Gets the value of attribute featureWeight
 java.lang.String getField()
          Gets the value of attribute field
 java.lang.String getHowManyLabels()
          Gets the value of attribute howManyLabels
 double getLabelBufferRatio()
          Gets the value of attribute labelBufferRatio
 java.lang.String getLabelPriorities()
          Gets the value of attribute labelPriorities
 java.lang.String getLabelWeight()
          Gets the value of attribute labelWeight
 java.lang.String getLineLabelPosition()
          Gets the value of attribute lineLabelPosition
 java.lang.String getRotationalAngles()
          Gets the value of attribute rotationalAngles
 AimsSymbol getSymbol()
          Gets the value of attribute symbol.
 boolean getVisible()
          gets the visiblility of the renderer
 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(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 setFeatureWeight(java.lang.String featureWeight)
          Sets the value of attribute featureWeight.
 void setField(java.lang.String field)
          Sets the value of attribute field.
 void setHowManyLabels(java.lang.String howManyLabels)
          Sets the value of attribute howManyLabels.
 void setLabelBufferRatio(double labelBufferRatio)
          Sets the value of attribute labelBufferRatio.
 void setLabelPriorities(java.lang.String labelPriorities)
          Sets the value of attribute labelPriorities.
 void setLabelWeight(java.lang.String labelWeight)
          Sets the value of attribute labelWeight.
 void setLineLabelPosition(java.lang.String lineLabelPosition)
          Sets the value of attribute lineLabelPosition.
 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 setRotationalAngles(java.lang.String rotationalAngles)
          Sets the value of attribute rotationalAngles.
 void setSymbol(AimsSymbol symbol)
          Sets the value of attribute symbol.
 void setVisible(boolean isVisible)
          Sets the visiblility of the renderer
 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 refresh this object.
 java.lang.String toString()
          Returns a string containing the name of this class.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AimsSimpleLabelRenderer

public AimsSimpleLabelRenderer()
Creates new SimpleLabelRenderer

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

setSymbol

public void setSymbol(AimsSymbol symbol)
Sets the value of attribute symbol. The symbol may be of type CalloutMarkerSymbol, RasterShieldSymbol, ShieldSymbol, or TextSymbol.


getSymbol

public AimsSymbol getSymbol()
Gets the value of attribute symbol. The symbol may be of type CalloutMarkerSymbol, RasterShieldSymbol, ShieldSymbol, or TextSymbol. If you use this method, you must cast the symbol to the proper type.

Returns:
The value of attribute field

setField

public void setField(java.lang.String field)
Sets the value of attribute field.


getField

public java.lang.String getField()
Gets the value of attribute field

Returns:
The value of attribute field

setFeatureWeight

public void setFeatureWeight(java.lang.String featureWeight)
Sets the value of attribute featureWeight.


getFeatureWeight

public java.lang.String getFeatureWeight()
Gets the value of attribute featureWeight

Returns:
The value of attribute featureWeight

setHowManyLabels

public void setHowManyLabels(java.lang.String howManyLabels)
Sets the value of attribute howManyLabels.


getHowManyLabels

public java.lang.String getHowManyLabels()
Gets the value of attribute howManyLabels

Returns:
The value of attribute howManyLabels

setLabelBufferRatio

public void setLabelBufferRatio(double labelBufferRatio)
Sets the value of attribute labelBufferRatio.


getLabelBufferRatio

public double getLabelBufferRatio()
Gets the value of attribute labelBufferRatio

Returns:
The value of attribute labelBufferRatio

setLabelPriorities

public void setLabelPriorities(java.lang.String labelPriorities)
Sets the value of attribute labelPriorities.


getLabelPriorities

public java.lang.String getLabelPriorities()
Gets the value of attribute labelPriorities

Returns:
The value of attribute labelPriorities

setLabelWeight

public void setLabelWeight(java.lang.String labelWeight)
Sets the value of attribute labelWeight.


getLabelWeight

public java.lang.String getLabelWeight()
Gets the value of attribute labelWeight

Returns:
The value of attribute labelWeight

setLineLabelPosition

public void setLineLabelPosition(java.lang.String lineLabelPosition)
Sets the value of attribute lineLabelPosition.


getLineLabelPosition

public java.lang.String getLineLabelPosition()
Gets the value of attribute lineLabelPosition

Returns:
The value of attribute lineLabelPosition

setRotationalAngles

public void setRotationalAngles(java.lang.String rotationalAngles)
Sets the value of attribute rotationalAngles.


getRotationalAngles

public java.lang.String getRotationalAngles()
Gets the value of attribute rotationalAngles

Returns:
The value of attribute rotationalAngles

getVisible

public boolean getVisible()
gets the visiblility of the renderer

Returns:
The visibility property.

setVisible

public void setVisible(boolean isVisible)
Sets the visiblility of the renderer

Parameters:
isVisible - The visibility property.

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.
name - The AXL attribute name.
value - The AXL attribute value.

toString

public java.lang.String toString()
Returns a string containing the name of this class.

Specified by:
toString in interface AimsRenderer
Returns:
The name of 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 refresh this object.

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

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