com.esri.aims.mtier.model.axl.map
Class MapElementFactory

java.lang.Object
  |
  +--com.esri.aims.mtier.model.axl.map.MapElementFactory

public class MapElementFactory
extends Object

The MapElementFactory class contains methods for creating ArcXML elements pertaining to the map element.


Constructor Summary
MapElementFactory()
          Constructs an instance of a MapElementFactory object.
 
Method Summary
 com.esri.w3c.dom.Element createBackgroundElement(String color, String transcolor)
          Creates the ArcXML BACKGROUND Element
 com.esri.w3c.dom.Element createDrawElement(String map)
          Creates the ArcXML DRAW Element.
 com.esri.w3c.dom.Element createEnvironmentElement()
          Creates the ArcXML ENVIRONMENT Element
 com.esri.w3c.dom.Element createImageSizeElement(String width, String height, String dpi, String printHeight, String printWidth, String scaleSymbols)
          Creates the ArcXML IMAGESIZE Element.
 com.esri.w3c.dom.Element createLegendElement(String antialiasing, String autoextend, String backgroundcolor, String cansplit, String cellspacing, String columns, String display, String font, String height, String layerfontsize, String reverseorder, String splittext, String swatchheight, String swatchwidth, String title, String titlefontsize, String transcolor, String valuefontsize, String width)
          Creates the ArcXML LEGEND Element.
 com.esri.w3c.dom.Element createMapElement(String dynamic)
          Creates the ArcXML MAP Element.
 com.esri.w3c.dom.Element createMapUnitsElement(String units)
          Creates the ArcXML MAPUNITS Element.
 com.esri.w3c.dom.Element createSeparatorsElement(String cs, String ts)
          Creates the ArcXML SEPARATORS Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapElementFactory

public MapElementFactory()
Constructs an instance of a MapElementFactory object.

Method Detail

createDrawElement

public com.esri.w3c.dom.Element createDrawElement(String map)
Creates the ArcXML DRAW Element.

Parameters:
map - turns map generation on or off.
Returns:
Element

createLegendElement

public com.esri.w3c.dom.Element createLegendElement(String antialiasing,
                                                    String autoextend,
                                                    String backgroundcolor,
                                                    String cansplit,
                                                    String cellspacing,
                                                    String columns,
                                                    String display,
                                                    String font,
                                                    String height,
                                                    String layerfontsize,
                                                    String reverseorder,
                                                    String splittext,
                                                    String swatchheight,
                                                    String swatchwidth,
                                                    String title,
                                                    String titlefontsize,
                                                    String transcolor,
                                                    String valuefontsize,
                                                    String width)
Creates the ArcXML LEGEND Element.

Parameters:
antialiasing - used to make edges of labels and symbols smoother.
autoextend - if true automatically extends legend vertically past size specified in height if needed.
backgroundcolor - the legends background color using RGB values.
cansplit - allows splitting of valuemap layers between columns.
cellspacing - defines number of pixels to pad between entries.
columns - defines number of columns in legend.
display - turns the legend on or off.
font - font for legend title.
height - the legend height in pixels.
layerfontsize - font size for layer labels.
reverseorder - reverse order of layers.
splittext - text that displays in bottom of a column if a valuemap is carried over into the next column.
swatchheight - height of the symbol swatch in pixels.
swatchwidth - width of the symbol swatch in pixels.
title - title of the legend.
titlefontsize - fontsize for the title.
transcolor - transparency color using RGB values.
valuefontsize - fontsize for valuemap labels.
width - the legend width in pixels.
Returns:
Element

createBackgroundElement

public com.esri.w3c.dom.Element createBackgroundElement(String color,
                                                        String transcolor)
Creates the ArcXML BACKGROUND Element

Parameters:
color - background color for map using RGB values.
transcolor - transparent color in output image using RGB Values.
Returns:
Element

createMapElement

public com.esri.w3c.dom.Element createMapElement(String dynamic)
Creates the ArcXML MAP Element.

Parameters:
dynamic - allows users to add layers dynamically to a mapservice.
Returns:
Element

createMapUnitsElement

public com.esri.w3c.dom.Element createMapUnitsElement(String units)
Creates the ArcXML MAPUNITS Element.

Parameters:
units - overall map units of the data.
Returns:
Element

createSeparatorsElement

public com.esri.w3c.dom.Element createSeparatorsElement(String cs,
                                                        String ts)
Creates the ArcXML SEPARATORS Element.

Parameters:
cs - the coordinate separator is used to separate an x-coordinate from a y-coordinate.
ts - the tuple separator is used to separate coordinate pairs and string lists.
Returns:
Element

createEnvironmentElement

public com.esri.w3c.dom.Element createEnvironmentElement()
Creates the ArcXML ENVIRONMENT Element

Returns:
Element

createImageSizeElement

public com.esri.w3c.dom.Element createImageSizeElement(String width,
                                                       String height,
                                                       String dpi,
                                                       String printHeight,
                                                       String printWidth,
                                                       String scaleSymbols)
Creates the ArcXML IMAGESIZE Element.

Parameters:
width - image width in pixels.
height - image height in pixels.
Returns:
Element.