com.esri.adf.web.tasks
Class PrintTask

java.lang.Object
  extended by com.esri.adf.web.tasks.PrintTask
All Implemented Interfaces:
WebResultsObserver, TaskInfoBean, WebContextInitialize, WebContextObserver, Serializable

public class PrintTask
extends Object
implements WebContextInitialize, WebContextObserver, TaskInfoBean, WebResultsObserver, Serializable

The task class is to help user to print out the current map, legend, the map elements and query result data.

The output map quality can be improved by changing its DPI(dot per inch), which is an integer from 96 to 300.

 This task can be configured at the design-time in faces-config.xml as shown below,
 
  <managed-bean>
    <managed-bean-name>printTask</managed-bean-name>
    <managed-bean-class>com.esri.adf.web.tasks.PrintTask</managed-bean-class>
    <managed-bean-scope>none</managed-bean-scope>
 
    <managed-property>
      <property-name>mapTitle</property-name>
      <value>Map</value>
    </managed-property>
 
    <managed-property>
      <property-name>printResultOnly</property-name>
      <value>false</value>
    </managed-property>
 
    <managed-property>
      <property-name>mapSize</property-name>
      <value>5.0</value>
    </managed-property>
 
    <managed-property>
      <property-name>mapQuality</property-name>
      <value>100</value>
    </managed-property>
 
    <managed-property>
      <property-name>printLegend</property-name>
      <value>true</value>
    </managed-property>
 
    <managed-property>
      <property-name>printScalebar</property-name>
      <value>true</value>
    </managed-property>
 
    <managed-property>
      <property-name>printNorthArrow</property-name>
      <value>true</value>
    </managed-property>
 
    <managed-property>
      <property-name>legendColumns</property-name>
      <value>2</value>
    </managed-property>
 
    <managed-property>
      <property-name>mapSizes</property-name>
      <map-entries>
        <map-entry>
          <key>3.0</key>
          <value>Small</value>
        </map-entry>
        <map-entry>
          <key>5.0</key>
          <value>Medium</value>
        </map-entry>
        <map-entry>
          <key>7.0</key>
          <value>Large</value>
        </map-entry>
      </map-entries>
    </managed-property>
 
    <managed-property>
      <property-name>mapQualities</property-name>
      <map-entries>
        <map-entry>
          <key>96</key>
          <value>Draft</value>
        </map-entry>
        <map-entry>
          <key>200</key>
          <value>Normal</value>
        </map-entry>
      </map-entries>
    </managed-property>
 
    <managed-property>
      <property-name>printButtonText</property-name>
      <value>print Button</value>
    </managed-property>
 
    <managed-property>
      <property-name>displayMapTitle</property-name>
      <value>true</value>
    </managed-property>
 
    <managed-property>
      <property-name>displayPrintResultOnlyChoice</property-name>
      <value>true</value>
    </managed-property>
 
    <managed-property>
      <property-name>displayMapSizeChoices</property-name>
      <value>true</value>
    </managed-property>
 
    <managed-property>
      <property-name>displayMapQualityChoices</property-name>
      <value>true</value>
    </managed-property>
 
    <managed-property>
      <property-name>displayPrintScalebarChoice</property-name>
      <value>true</value>
    </managed-property>
 
    <managed-property>
      <property-name>displayPrintLegendChoice</property-name>
      <value>true</value>
    </managed-property>
 
    <managed-property>
      <property-name>displayPrintNorthArrowChoice</property-name>
      <value>true</value>
    </managed-property>
 
   <managed-property>
      <property-name>preserveScale</property-name>
      <value>true</value>
    </managed-property>

   </managed-bean>   
 

See Also:
Serialized Form

Field Summary
static String LEGEND_SHOWALL
          the constant string for generating legend
static String LEGEND_SHOWNONE
          the constant string for generating legend
static String MAPSIZE_CM
          the constant string for centimeter
static String MAPSIZE_INCH
          the constant string for inch
protected  WebNorthArrow mWebNorthArrow
          the WebNorthArrow object
protected  WebScaleBar mWebScaleBar
          the WebScaleBar object
 
Fields inherited from interface com.esri.adf.web.data.results.WebResultsObserver
ALL_RESULTS_CLEARED, RESULT_ADDED, RESULT_MODIFIED, RESULT_REMOVED, RESULT_REPLACED
 
Constructor Summary
PrintTask()
           
 
Method Summary
 boolean checkTocNode(TocNode node)
          The method is called when the legend is generated.
 String createPrintMap(WebContext webContext)
          Deprecated. Use createPrintMapImage method as createPrintMapImage generates the map image and returns the bytes of the map image created.
 byte[] createPrintMapImage(WebContext webContext)
          Creates a printable map and returns its image in a byte array.
 void createPrintPage(TaskEvent event)
          Creates the printable map.
 void destroy()
          Destroys the references.
 String getCopyrightText()
          Returns the copyright text string
 double getCustomPrintHeight()
          returns the custom print map height
 double getCustomPrintWidth()
          Returns the custom print map width;
 String getDisplayName()
          Gets the task display name
protected  String getErrorMessage()
          If there is some exception occurred during the generation of printing map image, the error will be sent back to client.
 int getLegendColumns()
          Returns the legend columns
 String getLegendLayerVisibilityList()
          Returns the layer list to be shown in the legend
 Map<Integer,String> getMapQualities()
          Returns the map qualities in a Map structure.
 int getMapQuality()
          Returns the map quality DPI;
 double getMapSize()
          Returns the current map size in double.If the user selects the small, the value is 3.0, medium is 5.0 and large is 7.0 by default.
 Map<Double,String> getMapSizes()
          Returns a HashMap object which stores the pair of map size, and label.
 String getMapSizeUnit()
          Returns the printing map unit constant.
 String getMapTitle()
          Gets the map title
 String getMapUrl()
          Returns url stlye string
 List<? extends PrintableResult> getPrintableResults()
          Returns a list of PrintableResult objects.
 String getPrintButtonText()
          Set the print task printing button text
 int getPrintMapHeight()
          Returns the map height in pixel.This is the map height shown on the print page.
 int getPrintMapWidth()
          Returns the map width in pixel.This is the map width shown on the print page.
 String getPrintTemplate()
          Returns the printing template file name.
 Object[] getQueryResults()
          Returns an array object with length equal to 2.
 String getResultList()
          Returns the query result string in form of "resutl1, result2";
 Map<String,ResultNode> getResultLists()
          Returns a result map
 TaskInfo getTaskInfo()
          Returns the task info class
 WebContext getWebContext()
          Returns the WebContext object
 WebToc getWebToc()
          Returns the WebToc object of the printing task
 boolean hasMapNorthArrow()
          Returns true if there is a north arrow in current context.
 boolean hasMapScalebar()
          Returns true if there is a WebScaleBar in the current WebContext.
 void init(WebContext webContext)
          Initilaizes the PrintTask.
 boolean isDisplayMapQualityChoices()
          Returns true if the map quality combobox is visible.
 boolean isDisplayMapSizeChoices()
          Returns true if the map size combobox is visible.
 boolean isDisplayMapTitle()
          Returns true if the map title input text field is visible
 boolean isDisplayPrintLegendChoice()
          Returns true if the printing legend choice is visible.
 boolean isDisplayPrintNorthArrowChoice()
          Returns true if the printing north arrow check box is visible.
 boolean isDisplayPrintResultList()
          Returns true if the print result list box is visible.
 boolean isDisplayPrintResultOnlyChoice()
          Returns true if the print results choice is visible;
 boolean isDisplayPrintScalebarChoice()
          Returns true if the printing scale bar check box is visible.
 boolean isLayerShown(int layerId)
          Check if the given layer sequential number to be shown in the legend.
protected static boolean isNumeric(String s)
          To test if the string is numeric;
 boolean isPreserveScale()
          Returns true if the printed map scale is preserved same as the current scale in map viewer.
 boolean isPrintLegend()
          Returns the default value for printing legend choice.
 boolean isPrintNorthArrow()
          Returns true for default value of print north arrow
 boolean isPrintResultOnly()
          Returns true if the print map is not created and only the results are generated.
 boolean isPrintScalebar()
          Returns true for default value of printing scalebar
 void setCopyrightText(String text)
          Sets the copyright text string
 void setCustomPrintHeight(double customPrintHeight)
          Sets the print map height in default unit(inch).
 void setCustomPrintWidth(double customPrintWidth)
          Sets the print map width in default unit(inch).
 void setDisplayMapQualityChoices(boolean displayMapQualityChoices)
          Sets the visibility of the map quality combobox.
 void setDisplayMapSizeChoices(boolean displayMapSizeChoices)
          Sets the visibility of the map size combobox.
 void setDisplayMapTitle(boolean displayMapTitle)
          Sets the visibility of map title input field.
 void setDisplayName(String displayName)
          Sets the task display name
 void setDisplayPrintLegendChoice(boolean displayPrintLegendChoice)
          Sets the visibility of the printing legend choice.
 void setDisplayPrintNorthArrowChoice(boolean printNorthArrow)
          Sets the visibility of the printing north arrow choice.
 void setDisplayPrintResultList(boolean displayPrintResultList)
          Sets the visibility of print result list.
 void setDisplayPrintResultOnlyChoice(boolean displayPrintResultChoice)
          Sets the visibility of print results only choice.
 void setDisplayPrintScalebarChoice(boolean printScalebar)
          Sets the visibility of the printing scalebar choice.
 void setLegendColumns(int legendColumns)
          Sets the number of columns for displaying legend.
 void setLegendLayerVisibilityList(String layerVisibleList)
          Sets the visible layer list for the legend.
 void setMapQuality(int quality)
          Sets the map quality DPI, e.g.
 void setMapSize(double value)
          Sets the map size (width), the print map height is calculated proportionally based on the ratio of current map height and width.
 void setMapSizeUnit(String unit)
          Sets the print map unit.
 void setMapTitle(String value)
          Sets the map title
 void setPreserveScale(boolean preserveScale)
          Specifies whether to preserve the map scale in the printed map.
 void setPrintableResults(List<? extends PrintableResult> resultList)
          Sets a list of PrintableResult objects
 void setPrintButtonText(String printButtonText)
          Returns the print task printing button text
 void setPrintLegend(boolean printLegend)
          Sets default value for printing legend.
 void setPrintNorthArrow(boolean printNorthArrow)
          Sets default value for printing north arrow if the server has.
 void setPrintResultOnly(boolean value)
          If it is set to true, then it will print only the results and not the map.
 void setPrintScalebar(boolean printScalebar)
          Sets default value for printing scalebar if the server has.
 void setPrintTemplate(String templateFile)
          Specifies the template file to use for the print page.
 void setResultList(String ResultList)
          Sets the selected results string to be printed out.
 void setTaskInfo(TaskInfo taskInfo)
          Sets the task info object
 void setVisibleGraphicFeatures(String flist)
          Sets the visibility of graphic features.The method is called from the print task UI.
protected static String toLocalString(String message)
          Returns the localized string value.
 String toString()
          Returns a printing map url String
 void update(WebContext webContext, Object arg)
          The method is to update print scale and result list.
 void webResultsUpdate(WebResults results, int updateType, ResultNode affectedNode, Object args)
          The implemented method for WebResultsObserver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAPSIZE_INCH

public static final String MAPSIZE_INCH
the constant string for inch

See Also:
Constant Field Values

MAPSIZE_CM

public static final String MAPSIZE_CM
the constant string for centimeter

See Also:
Constant Field Values

LEGEND_SHOWALL

public static final String LEGEND_SHOWALL
the constant string for generating legend

See Also:
Constant Field Values

LEGEND_SHOWNONE

public static final String LEGEND_SHOWNONE
the constant string for generating legend

See Also:
Constant Field Values

mWebNorthArrow

protected WebNorthArrow mWebNorthArrow
the WebNorthArrow object


mWebScaleBar

protected WebScaleBar mWebScaleBar
the WebScaleBar object

Constructor Detail

PrintTask

public PrintTask()
Method Detail

init

public void init(WebContext webContext)
Initilaizes the PrintTask. Sets up the listeners.

Specified by:
init in interface WebContextInitialize
Parameters:
webContext - WebContext- the WebContext
See Also:
WebContext.init(WebContext), WebContext.addResource(String, GISResource, int), WebContext.removeResource(GISResource)

update

public void update(WebContext webContext,
                   Object arg)
The method is to update print scale and result list.

Specified by:
update in interface WebContextObserver
Parameters:
webContext - the WebContext that has been refreshed
arg - the argument passed to the WebContext's refresh(arg) method
See Also:
WebContext.refresh(Object), WebContext.addObserver(WebContextObserver), WebContext.removeObserver(WebContextObserver)

destroy

public void destroy()
Destroys the references.

Specified by:
destroy in interface WebContextInitialize
See Also:
WebContext.destroy()

getTaskInfo

public TaskInfo getTaskInfo()
Returns the task info class

Specified by:
getTaskInfo in interface TaskInfoBean
Returns:
a TaskInfo object

setTaskInfo

public void setTaskInfo(TaskInfo taskInfo)
Sets the task info object

Specified by:
setTaskInfo in interface TaskInfoBean
Parameters:
taskInfo - a TaskInfo object.

getDisplayName

public String getDisplayName()
Gets the task display name

Returns:
String

setDisplayName

public void setDisplayName(String displayName)
Sets the task display name

Parameters:
displayName - String

getWebContext

public WebContext getWebContext()
Returns the WebContext object

Returns:
WebContext;

getWebToc

public WebToc getWebToc()
Returns the WebToc object of the printing task


getErrorMessage

protected String getErrorMessage()
If there is some exception occurred during the generation of printing map image, the error will be sent back to client.

Returns:
the printing error message

toLocalString

protected static String toLocalString(String message)
Returns the localized string value.

Returns:
the localized string value

isNumeric

protected static final boolean isNumeric(String s)
To test if the string is numeric;

Parameters:
s - - String
Returns:
boolean - true if the string is numeric;

isLayerShown

public boolean isLayerShown(int layerId)
Check if the given layer sequential number to be shown in the legend.

Parameters:
layerId - - layer sequential number counted from 0

checkTocNode

public boolean checkTocNode(TocNode node)
The method is called when the legend is generated. It is intended to be overridden by users who want to turn off certain layers. By default, it always returns true.

Parameters:
node - - a TocNode object
Returns:
boolean, the node will be draw in the legend, otherwise.

setCopyrightText

public void setCopyrightText(String text)
Sets the copyright text string

Parameters:
text - - String

getCopyrightText

public String getCopyrightText()
Returns the copyright text string

Returns:
String- the copyright string.

setPrintTemplate

public void setPrintTemplate(String templateFile)
Specifies the template file to use for the print page. The file is specified using a path relative to the web application's context root. For eg, if the file is called 'mytemplate.jsp' and it is under the web application's top level directory called 'print', the path would be "print/mytemplate.jsf".

The default value is 'print.jsf'.


getPrintTemplate

public String getPrintTemplate()
Returns the printing template file name.

Returns:
a String

setPreserveScale

public void setPreserveScale(boolean preserveScale)
Specifies whether to preserve the map scale in the printed map. . If true, the scale of the printed map, and thus, visibility of scale-dependent layers will be the same as the main map, but the geographic extent of the printed map may be slightly larger or smaller. If false, the extent of the printed map will be the same as the main map but the scale might differ slightly, and thus scale-dependent layers may or may not render.

It is false by default to preserve the extent.

Parameters:
scalePreserved - boolean

isPreserveScale

public boolean isPreserveScale()
Returns true if the printed map scale is preserved same as the current scale in map viewer.

Returns:
boolean

isPrintResultOnly

public boolean isPrintResultOnly()
Returns true if the print map is not created and only the results are generated.

Returns:
boolean

setPrintResultOnly

public void setPrintResultOnly(boolean value)
If it is set to true, then it will print only the results and not the map.

Parameters:
value - - boolean

getMapSizes

public Map<Double,String> getMapSizes()
Returns a HashMap object which stores the pair of map size, and label.

Returns:
java.util.Map

getMapTitle

public String getMapTitle()
Gets the map title

Returns:
String - map title

setMapTitle

public void setMapTitle(String value)
Sets the map title

Parameters:
value - - String

getMapSize

public double getMapSize()
Returns the current map size in double.If the user selects the small, the value is 3.0, medium is 5.0 and large is 7.0 by default.

Returns:
double

setMapSize

public void setMapSize(double value)
Sets the map size (width), the print map height is calculated proportionally based on the ratio of current map height and width.

Parameters:
value - - double

getMapQuality

public int getMapQuality()
Returns the map quality DPI;

Returns:
int integer

setMapQuality

public void setMapQuality(int quality)
Sets the map quality DPI, e.g. "200"

Parameters:
quality - String

getMapQualities

public Map<Integer,String> getMapQualities()
Returns the map qualities in a Map structure.

Returns:
java.util.Map

hasMapScalebar

public boolean hasMapScalebar()
Returns true if there is a WebScaleBar in the current WebContext.

Returns:
boolean - true/false

hasMapNorthArrow

public boolean hasMapNorthArrow()
Returns true if there is a north arrow in current context.

Returns:
boolean

setCustomPrintWidth

public void setCustomPrintWidth(double customPrintWidth)
Sets the print map width in default unit(inch). If both the custom print width and height are set, the map size will be ignored.

Parameters:
customPrintWidth - - double

setCustomPrintHeight

public void setCustomPrintHeight(double customPrintHeight)
Sets the print map height in default unit(inch). If both the custom print width and height are set, the map size will be ignored.

Parameters:
customPrintHeight - - double

getCustomPrintWidth

public double getCustomPrintWidth()
Returns the custom print map width;

Returns:
double

getCustomPrintHeight

public double getCustomPrintHeight()
returns the custom print map height

Returns:
double

getMapUrl

public String getMapUrl()
Returns url stlye string

Returns:
- String

getPrintMapHeight

public int getPrintMapHeight()
Returns the map height in pixel.This is the map height shown on the print page. It is used in height attribute in the <img> tag

Returns:
int - in pixel.

getPrintMapWidth

public int getPrintMapWidth()
Returns the map width in pixel.This is the map width shown on the print page. It is used as width attribute in the <img> tag

Returns:
int - in pixel.

getResultList

public String getResultList()
Returns the query result string in form of "resutl1, result2";

Returns:
String.

setResultList

public void setResultList(String ResultList)
Sets the selected results string to be printed out. The ResultList is a string consisted of query id delimited by ",".

Parameters:
ResultList - - String

setVisibleGraphicFeatures

public void setVisibleGraphicFeatures(String flist)
Sets the visibility of graphic features.The method is called from the print task UI. The string is consisted of the current visible query result id separated by the comma.

Parameters:
flist - - String

getResultLists

public Map<String,ResultNode> getResultLists()
Returns a result map

Returns:
java.util.Map

createPrintMap

@Deprecated
public String createPrintMap(WebContext webContext)
Deprecated. Use createPrintMapImage method as createPrintMapImage generates the map image and returns the bytes of the map image created.

This method creates a printable map and saves the mime data of the created map image in WebSession, and returns its URL.

Parameters:
webContext - the context object, passing null will use the context from this object
Returns:
URL of printable map

createPrintMapImage

public byte[] createPrintMapImage(WebContext webContext)
Creates a printable map and returns its image in a byte array.

Returns:
a byte array or null object

createPrintPage

public void createPrintPage(TaskEvent event)
Creates the printable map. The method is called by the "create print map" button on the Task UI.

Parameters:
event - - TaskEvent

webResultsUpdate

public void webResultsUpdate(WebResults results,
                             int updateType,
                             ResultNode affectedNode,
                             Object args)
The implemented method for WebResultsObserver. The method is called when a result is added, removed in the WebResult container.

Specified by:
webResultsUpdate in interface WebResultsObserver
Parameters:
results - the WebResults object that was updated
updateType - the type of update (such as WebResultsObserver.RESULT_ADDED, WebResultsObserver.ALL_RESULTS_CLEARED, etc.)
affectedNode - the primarily affected ResultNode (optional)
args - an arbitrary argument which observers can use to fine-tune their update behaviors (optional)

getQueryResults

public Object[] getQueryResults()
Returns an array object with length equal to 2. The array only contains two objects: first one is an ArrayList object, which is a list of current query result label identity; the second one is an ArrayList , which contains the query details(a list of QueryResult objects) of corresponding each label identity.

Returns:
Object array

getLegendLayerVisibilityList

public String getLegendLayerVisibilityList()
Returns the layer list to be shown in the legend

Returns:
a string - e.g "0,1,4", the layer id with 0, 1, 4 will be shown in the legend.

setLegendLayerVisibilityList

public void setLegendLayerVisibilityList(String layerVisibleList)
Sets the visible layer list for the legend. This will not change the current map layers visibility. It only affects the layer visibilities of the legend. The layer id provided in the layerVisibilitylist of this method will be shown in the legend. The layer id is a sequential number counted from the top for the checkable layers in the all services starting from 0. For example, if there are two resources added to the map control and each has two layers, then the checkable layers are numbered as 0, 1, 2, and 3.

Parameters:
layerVisibleList - - a String consisting a set of layer numbers separated by a comma, e.g. "2,3"

isDisplayMapTitle

public boolean isDisplayMapTitle()
Returns true if the map title input text field is visible

Returns:
boolean

setDisplayMapTitle

public void setDisplayMapTitle(boolean displayMapTitle)
Sets the visibility of map title input field.

Parameters:
displayMapTitle - - boolean

setDisplayPrintResultList

public void setDisplayPrintResultList(boolean displayPrintResultList)
Sets the visibility of print result list. Default is true.

Parameters:
displayPrintResultList - boolean

isDisplayPrintResultList

public boolean isDisplayPrintResultList()
Returns true if the print result list box is visible.

Returns:
boolean

setDisplayPrintResultOnlyChoice

public void setDisplayPrintResultOnlyChoice(boolean displayPrintResultChoice)
Sets the visibility of print results only choice. Default is true.

Parameters:
displayPrintResultChoice - - boolean

isDisplayPrintResultOnlyChoice

public boolean isDisplayPrintResultOnlyChoice()
Returns true if the print results choice is visible;

Returns:
boolean

setPrintNorthArrow

public void setPrintNorthArrow(boolean printNorthArrow)
Sets default value for printing north arrow if the server has. Default is true.

Parameters:
printNorthArrow - boolean

isPrintNorthArrow

public boolean isPrintNorthArrow()
Returns true for default value of print north arrow

Returns:
boolean

setPrintScalebar

public void setPrintScalebar(boolean printScalebar)
Sets default value for printing scalebar if the server has. Default is true.

Parameters:
printScalebar - boolean

isPrintScalebar

public boolean isPrintScalebar()
Returns true for default value of printing scalebar

Returns:
boolean

setPrintLegend

public void setPrintLegend(boolean printLegend)
Sets default value for printing legend. Default is true.

Parameters:
printLegend - boolean

isPrintLegend

public boolean isPrintLegend()
Returns the default value for printing legend choice.

Returns:
boolean

setDisplayPrintScalebarChoice

public void setDisplayPrintScalebarChoice(boolean printScalebar)
Sets the visibility of the printing scalebar choice. Default is false.

Parameters:
printScalebar - boolean

isDisplayPrintScalebarChoice

public boolean isDisplayPrintScalebarChoice()
Returns true if the printing scale bar check box is visible.

Returns:
true/false

setDisplayPrintNorthArrowChoice

public void setDisplayPrintNorthArrowChoice(boolean printNorthArrow)
Sets the visibility of the printing north arrow choice. Default is false.

Parameters:
printNorthArrow - true/false

isDisplayPrintNorthArrowChoice

public boolean isDisplayPrintNorthArrowChoice()
Returns true if the printing north arrow check box is visible.

Returns:
boolean

setDisplayPrintLegendChoice

public void setDisplayPrintLegendChoice(boolean displayPrintLegendChoice)
Sets the visibility of the printing legend choice. Default is false.

Parameters:
displayPrintLegendChoice - - boolean

isDisplayPrintLegendChoice

public boolean isDisplayPrintLegendChoice()
Returns true if the printing legend choice is visible.

Returns:
boolean

getMapSizeUnit

public String getMapSizeUnit()
Returns the printing map unit constant.

Returns:
String.

setMapSizeUnit

public void setMapSizeUnit(String unit)
Sets the print map unit. The string should be one of "Inches" or "Centimeters"


setPrintButtonText

public void setPrintButtonText(String printButtonText)
Returns the print task printing button text


getPrintButtonText

public String getPrintButtonText()
Set the print task printing button text


setLegendColumns

public void setLegendColumns(int legendColumns)
Sets the number of columns for displaying legend. The value can be 1, 2, 3 or 4. Default is 1.

Parameters:
legendColumns - - integer;

getLegendColumns

public int getLegendColumns()
Returns the legend columns

Returns:
an integer.

setDisplayMapSizeChoices

public void setDisplayMapSizeChoices(boolean displayMapSizeChoices)
Sets the visibility of the map size combobox.

Parameters:
displayMapSizeChoices -

isDisplayMapSizeChoices

public boolean isDisplayMapSizeChoices()
Returns true if the map size combobox is visible.

Returns:
- boolean

setDisplayMapQualityChoices

public void setDisplayMapQualityChoices(boolean displayMapQualityChoices)
Sets the visibility of the map quality combobox.

Parameters:
displayMapQualityChoices - - boolean

isDisplayMapQualityChoices

public boolean isDisplayMapQualityChoices()
Returns true if the map quality combobox is visible.

Returns:
boolean

toString

public String toString()
Returns a printing map url String

Overrides:
toString in class Object
Returns:
String

setPrintableResults

public void setPrintableResults(List<? extends PrintableResult> resultList)
Sets a list of PrintableResult objects

Parameters:
resultList - a List

getPrintableResults

public List<? extends PrintableResult> getPrintableResults()
Returns a list of PrintableResult objects.

Returns:
a List containing PrintableResult objects