public class PrintTemplate
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
PrintTemplate.ExportOptions |
static class |
PrintTemplate.Format |
static class |
PrintTemplate.Layout |
static class |
PrintTemplate.LayoutOptions |
Modifier and Type | Method and Description |
---|---|
static PrintTemplate |
create()
Creates a new PrintTemplate object.
|
PrintTemplate.ExportOptions |
getExportOptions()
Define the map width, height and dpi.
|
PrintTemplate.Format |
getFormat()
The print output format.
|
java.lang.String |
getLabel()
The text that appears on the PrintWidget's print button.
|
PrintTemplate.Layout |
getLayout()
The layout used for the print output.
|
java.lang.String |
getLayoutAsString()
The layout used for the print output.
|
PrintTemplate.LayoutOptions |
getLayoutOptions()
Define the layout elements.
|
boolean |
preserveScale()
Define whether the printed map will preserve the map scale or the map extent.
|
void |
setExportOptions(PrintTemplate.ExportOptions exportOptions)
Set the exportOptions parameter.
|
void |
setFormat(PrintTemplate.Format format)
Set the format parameter.
|
void |
setFormat(java.lang.String format)
Set the format parameter.
|
void |
setLabel(java.lang.String label)
Set the label parameter.
|
void |
setLayout(PrintTemplate.Layout layout)
Set the layout parameter.
|
void |
setLayout(java.lang.String layout)
Set the layout parameter.
|
void |
setLayoutOptions(PrintTemplate.LayoutOptions layoutOptions)
Set the layoutOptions parameter.
|
void |
setPreserveScale(boolean preserveScale)
Set the preserveScale parameter.
|
public static PrintTemplate create()
public final PrintTemplate.ExportOptions getExportOptions()
public final void setExportOptions(PrintTemplate.ExportOptions exportOptions)
exportOptions
- - Define the map width, height and dpi. Required when the layoutTemplate
is set to 'MAP_ONLY'.public final PrintTemplate.Format getFormat()
public final void setFormat(PrintTemplate.Format format)
format
- - The print output format.public final void setFormat(java.lang.String format)
format
- - The print output format.public final java.lang.String getLabel()
public final void setLabel(java.lang.String label)
label
- - The text that appears on the PrintWidget's print button.public final PrintTemplate.Layout getLayout()
public final java.lang.String getLayoutAsString()
public final void setLayout(PrintTemplate.Layout layout)
layout
- - The layout used for the print output.public final void setLayout(java.lang.String layout)
layout
- - The layout used for the print output.public final PrintTemplate.LayoutOptions getLayoutOptions()
public final void setLayoutOptions(PrintTemplate.LayoutOptions layoutOptions)
layoutOptions
- - Define the layout elements.public final boolean preserveScale()
public final void setPreserveScale(boolean preserveScale)
preserveScale
- - Define whether the printed map will preserve the map scale or the map extent. Only one
of these properties can be preserved to produce a high-resolution map for printing. If preserveScale is set to
true, the map displayed in the print window will match the current scale of the map in the application. If
preserveScale is false, the current extent of the map in the application displays in the printed map but
the scale may change. The default value is true.