@Generated(value="This class is generated and shouldn\'t be modified", comments="Incorrect and missing API should be reported to https://github.com/vaadin/vaadin-charts-flow/issues/new") public class Exporting extends AbstractConfigurationObject
Modifier and Type | Method and Description |
---|---|
Boolean |
getAllowHTML() |
Buttons |
getButtons() |
Boolean |
getEnabled() |
String |
getError() |
Boolean |
getFallbackToExportServer() |
String |
getFilename() |
String |
getLibURL() |
Map<String,ExportingMenuItemDefinition> |
getMenuItemDefinitions() |
Number |
getPrintMaxWidth() |
Number |
getScale() |
Number |
getSourceHeight() |
Number |
getSourceWidth() |
ExportFileType |
getType() |
String |
getUrl() |
Number |
getWidth() |
void |
setAllowHTML(Boolean allowHTML)
Experimental setting to allow HTML inside the chart (added through the
useHTML options), directly in the exported image. |
void |
setButtons(Buttons buttons)
Options for the export related buttons, print and export.
|
void |
setEnabled(Boolean enabled)
Whether to enable the exporting module.
|
void |
setError(String _fn_error) |
void |
setFallbackToExportServer(Boolean fallbackToExportServer)
Whether or not to fall back to the export server if the offline-exporting
module is unable to export the chart on the client side.
|
void |
setFilename(String filename)
The filename, without extension, to use for the exported chart.
|
void |
setLibURL(String libURL)
Path where Highcharts will look for export module dependencies to load on
demand if they don't already exist on
window . |
void |
setMenuItemDefinitions(Map<String,ExportingMenuItemDefinition> menuItemDefinitions)
An object consisting of definitions for the menu items in the context
menu.
|
void |
setPrintMaxWidth(Number printMaxWidth)
When printing the chart from the menu item in the burger menu, if the
on-screen chart exceeds this width, it is resized.
|
void |
setScale(Number scale)
Defines the scale or zoom factor for the exported image compared to the
on-screen display.
|
void |
setSourceHeight(Number sourceHeight)
Analogous to sourceWidth
|
void |
setSourceWidth(Number sourceWidth)
The width of the original chart when exported, unless an explicit chart.width is set.
|
void |
setType(ExportFileType type)
Default MIME type for exporting if
chart.exportChart() is
called without specifying a type option. |
void |
setUrl(String url)
The URL for the server module converting the SVG string to an image
format.
|
void |
setWidth(Number width)
The pixel width of charts exported to PNG or JPG.
|
public Exporting()
public Exporting(Boolean enabled)
public Boolean getAllowHTML()
setAllowHTML(Boolean)
public void setAllowHTML(Boolean allowHTML)
Experimental setting to allow HTML inside the chart (added through the
useHTML
options), directly in the exported image. This
allows you to preserve complicated HTML structures like tables or
bi-directional text in exported charts.
Disclaimer: The HTML is rendered in a foreignObject
tag in
the generated SVG. The official export server is based on PhantomJS,
which supports this, but other SVG clients, like Batik, does not support
it. This also applies to downloaded SVG that you want to open in a
desktop client.
Defaults to: false
public Buttons getButtons()
setButtons(Buttons)
public void setButtons(Buttons buttons)
public Boolean getEnabled()
setEnabled(Boolean)
public void setEnabled(Boolean enabled)
Defaults to: true
public String getError()
public void setError(String _fn_error)
public Boolean getFallbackToExportServer()
setFallbackToExportServer(Boolean)
public void setFallbackToExportServer(Boolean fallbackToExportServer)
Defaults to: true
public String getFilename()
setFilename(String)
public void setFilename(String filename)
Defaults to: chart
public String getLibURL()
setLibURL(String)
public void setLibURL(String libURL)
window
.
Should currently point to location of CanVG library, RGBColor.js, jsPDF and svg2pdf.js, required for
client side export in certain browsers.
Defaults to: https://code.highcharts.com/{version}/lib
public Map<String,ExportingMenuItemDefinition> getMenuItemDefinitions()
setMenuItemDefinitions(Map)
public void setMenuItemDefinitions(Map<String,ExportingMenuItemDefinition> menuItemDefinitions)
An object consisting of definitions for the menu items in the context
menu. Each key value pair has a key
that is referenced in
the menuItems
setting, and a value
, which is an object with the following
properties:
public Number getPrintMaxWidth()
setPrintMaxWidth(Number)
public void setPrintMaxWidth(Number printMaxWidth)
Defaults to: 780
public Number getScale()
setScale(Number)
public void setScale(Number scale)
Defaults to: 2
public Number getSourceHeight()
setSourceHeight(Number)
public void setSourceHeight(Number sourceHeight)
public Number getSourceWidth()
setSourceWidth(Number)
public void setSourceWidth(Number sourceWidth)
public ExportFileType getType()
setType(ExportFileType)
public void setType(ExportFileType type)
chart.exportChart()
is
called without specifying a type
option. Possible values are
image/png
, image/jpeg
,
application/pdf
and image/svg+xml
.
Defaults to: image/png
public String getUrl()
setUrl(String)
public void setUrl(String url)
Defaults to: https://export.highcharts.com
public Number getWidth()
setWidth(Number)
public void setWidth(Number width)
Defaults to: undefined
Copyright © 2020. All rights reserved.