Class MapModel
- All Implemented Interfaces:
Serializable
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldanimation.Getter for the fieldbackgroundColor.Getter for the fieldborderColor.Getter for the fieldborderRadius.Getter for the fieldborderWidth.Getter for the fieldclassName.Getter for the fieldheight.getMap()Getter for the fieldmap.Number[]Getter for the fieldmargin.Getter for the fieldmarginBottom.Getter for the fieldmarginLeft.Getter for the fieldmarginRight.Getter for the fieldmarginTop.Getter for the fieldplotBackgroundColor.Getter for the fieldplotBackgroundImage.Getter for the fieldplotBorderColor.Getter for the fieldplotBorderWidth.Getter for the fieldplotShadow.Getter for the fieldreflow.Getter for the fieldresetZoomButton.Getter for the fieldselectionMarkerFill.Getter for the fieldshadow.Number[]Getter for the fieldspacing.Getter for the fieldspacingBottom.Getter for the fieldspacingLeft.Getter for the fieldspacingRight.Getter for the fieldspacingTop.getStyle()Getter for the fieldstyle.getType()Getter for the fieldtype.getWidth()Getter for the fieldwidth.voidsetAnimation(Boolean animation) Set the overall animation for all chart updating.voidsetBackgroundColor(Color backgroundColor) The background color or gradient for the outer chart area.voidsetBorderColor(Color borderColor) The color of the outer chart border.voidsetBorderRadius(Number borderRadius) The corner radius of the outer chart border.voidsetBorderWidth(Number borderWidth) The pixel width of the outer chart border.voidsetClassName(String className) A CSS class name to apply to the charts containerdiv, allowing unique CSS styling for each chart.voidAn explicit height for the chart.voidSetter for the fieldmap.voidSets all margins to the same valuevoidSets the vertical margin for top and bottom and the horizontal margin for the right and left marginvoidSet all margins in one callvoidsetMarginBottom(Number marginBottom) The margin between the bottom outer edge of the chart and the plot area.voidsetMarginLeft(Number marginLeft) The margin between the left outer edge of the chart and the plot area.voidsetMarginRight(Number marginRight) The margin between the right outer edge of the chart and the plot area.voidsetMarginTop(Number marginTop) The margin between the top outer edge of the chart and the plot area.voidsetPlotBackgroundColor(Color plotBackgroundColor) The background color or gradient for the plot area.voidsetPlotBackgroundImage(String plotBackgroundImage) The URL for an image to use as the plot background.voidsetPlotBorderColor(Color plotBorderColor) The color of the inner chart or plot area border.voidsetPlotBorderWidth(Number plotBorderWidth) The pixel width of the plot area border.voidsetPlotShadow(Boolean plotShadow) Whether to apply a drop shadow to the plot area.voidWhether to reflow the chart to fit the width of the container div on resizing the window.voidsetResetZoomButton(ResetZoomButton resetZoomButton) The button that appears after a selection zoom, allowing the user to reset zoom.voidsetSelectionMarkerFill(Color selectionMarkerFill) The background color of the marker square when selecting (zooming in on) an area of the chart.voidWhether to apply a drop shadow to the outer chart area.voidsetSpacing(Number[] spacing) The distance between the outer edge of the chart and the content, like title and legend.voidsetSpacingBottom(Number spacingBottom) The space between the bottom edge of the chart and the content (plot area, title, subtitle or legend in top position).voidsetSpacingLeft(Number spacingLeft) The space between the left edge of the chart and the content (plot area,title, subtitle or legend in top position).voidsetSpacingRight(Number spacingRight) The space between the right edge of the chart and the content (plot area, title, subtitle or legend in top position).voidsetSpacingTop(Number spacingTop) The space between the top edge of the chart and the content (plot area, title, subtitle or legend in top position).voidAdditional CSS styles to apply inline to the containerdiv.voidsetStyledMode(Boolean styledMode) Whether to apply styled mode.voidThe default series type for the chart.voidAn explicit width for the chart.
-
Constructor Details
-
MapModel
public MapModel()Constructor for MapModel.
-
-
Method Details
-
getStyledMode
-
setStyledMode
Whether to apply styled mode. When in styled mode, no presentational attributes or CSS are applied to the chart SVG. Instead, CSS rules are required to style the chart. The default style sheet is available from https://code.highcharts.com/css/highcharts.css.- Parameters:
styledMode- if true, style mode is applied
-
getAnimation
Getter for the field
animation.- Returns:
- a
Booleanobject. - See Also:
-
setAnimation
Set the overall animation for all chart updating. Animation can be disabled throughout the chart by setting it to false here. It can be overridden for each individual API method as a function parameter. The only animation not affected by this option is the initial series animation, see plotOptions.series.animation.
The animation can either be set as a boolean or a configuration object. If
true, it will use the 'swing' jQuery easing and a duration of 500 ms. If used as a configuration object, the following properties are supported:- duration
- The duration of the animation in milliseconds.
- easing
- A string reference to an easing function set on the
Mathobject. See the easing demo.
Defaults to: true
- Parameters:
animation- aBooleanobject.
-
getBackgroundColor
Getter for the field
backgroundColor.- Returns:
- a
Colorobject. - See Also:
-
setBackgroundColor
The background color or gradient for the outer chart area.Defaults to: #FFFFFF
- Parameters:
backgroundColor- aColorobject.
-
getBorderColor
Getter for the field
borderColor.- Returns:
- a
Colorobject. - See Also:
-
setBorderColor
The color of the outer chart border.Defaults to: #4572A7
- Parameters:
borderColor- aColorobject.
-
getBorderRadius
Getter for the field
borderRadius.- Returns:
- a
Numberobject. - See Also:
-
setBorderRadius
The corner radius of the outer chart border.Defaults to: 0
- Parameters:
borderRadius- aNumberobject.
-
getBorderWidth
Getter for the field
borderWidth.- Returns:
- a
Numberobject. - See Also:
-
setBorderWidth
The pixel width of the outer chart border.Defaults to: 0
- Parameters:
borderWidth- aNumberobject.
-
getClassName
Getter for the field
className.- Returns:
- a
Stringobject. - See Also:
-
setClassName
A CSS class name to apply to the charts containerdiv, allowing unique CSS styling for each chart.- Parameters:
className- aStringobject.
-
getHeight
Getter for the field
height.- Returns:
- a
Numberobject. - See Also:
-
setHeight
An explicit height for the chart. By default (whennull) the height is calculated from the offset height of the containing element, or 400 pixels if the containing element's height is 0.Defaults to: null
- Parameters:
height- aNumberobject.
-
getMargin
Getter for the field
margin.- Returns:
- an array of
Numberobjects. - See Also:
-
getMarginBottom
Getter for the field
marginBottom.- Returns:
- a
Numberobject. - See Also:
-
setMarginBottom
The margin between the bottom outer edge of the chart and the plot area. Use this to set a fixed pixel value for the margin as opposed to the default dynamic margin. See alsospacingBottom.- Parameters:
marginBottom- aNumberobject.
-
getMarginLeft
Getter for the field
marginLeft.- Returns:
- a
Numberobject. - See Also:
-
setMarginLeft
The margin between the left outer edge of the chart and the plot area. Use this to set a fixed pixel value for the margin as opposed to the default dynamic margin. See alsospacingLeft.- Parameters:
marginLeft- aNumberobject.
-
getMarginRight
Getter for the field
marginRight.- Returns:
- a
Numberobject. - See Also:
-
setMarginRight
The margin between the right outer edge of the chart and the plot area. Use this to set a fixed pixel value for the margin as opposed to the default dynamic margin. See alsospacingRight.- Parameters:
marginRight- aNumberobject.
-
getMarginTop
Getter for the field
marginTop.- Returns:
- a
Numberobject. - See Also:
-
setMarginTop
The margin between the top outer edge of the chart and the plot area. Use this to set a fixed pixel value for the margin as opposed to the default dynamic margin. See alsospacingTop.- Parameters:
marginTop- aNumberobject.
-
getPlotBackgroundColor
Getter for the field
plotBackgroundColor.- Returns:
- a
Colorobject. - See Also:
-
setPlotBackgroundColor
The background color or gradient for the plot area.- Parameters:
plotBackgroundColor- aColorobject.
-
getPlotBackgroundImage
Getter for the field
plotBackgroundImage.- Returns:
- a
Stringobject. - See Also:
-
setPlotBackgroundImage
The URL for an image to use as the plot background. To set an image as the background for the entire chart, set a CSS background image to the container element. Note that for the image to be applied to exported charts, its URL needs to be accessible by the export server.- Parameters:
plotBackgroundImage- aStringobject.
-
getPlotBorderColor
Getter for the field
plotBorderColor.- Returns:
- a
Colorobject. - See Also:
-
setPlotBorderColor
The color of the inner chart or plot area border.Defaults to: #C0C0C0
- Parameters:
plotBorderColor- aColorobject.
-
getPlotBorderWidth
Getter for the field
plotBorderWidth.- Returns:
- a
Numberobject. - See Also:
-
setPlotBorderWidth
The pixel width of the plot area border.Defaults to: 0
- Parameters:
plotBorderWidth- aNumberobject.
-
getPlotShadow
Getter for the field
plotShadow.- Returns:
- a
Booleanobject. - See Also:
-
setPlotShadow
Whether to apply a drop shadow to the plot area. Requires that plotBackgroundColor be set. Since 2.3 the shadow can be an object configuration containingcolor,offsetX,offsetY,opacityandwidth.Defaults to: false
- Parameters:
plotShadow- aBooleanobject.
-
getReflow
Getter for the field
reflow.- Returns:
- a
Booleanobject. - See Also:
-
setReflow
Whether to reflow the chart to fit the width of the container div on resizing the window.Defaults to: true
- Parameters:
reflow- aBooleanobject.
-
getResetZoomButton
Getter for the field
resetZoomButton.- Returns:
- a
ResetZoomButtonobject. - See Also:
-
setResetZoomButton
The button that appears after a selection zoom, allowing the user to reset zoom. In Highmaps, the reset zoom button is rarely used, as the controls for mapNavigation are used instead.
For live demos, see the resetZoomButton options for basic Highcharts.
- Parameters:
resetZoomButton- aResetZoomButtonobject.
-
getSelectionMarkerFill
Getter for the field
selectionMarkerFill.- Returns:
- a
Colorobject. - See Also:
-
setSelectionMarkerFill
The background color of the marker square when selecting (zooming in on) an area of the chart.Defaults to: rgba(69,114,167,0.25)
- Parameters:
selectionMarkerFill- aColorobject.
-
getShadow
Getter for the field
shadow.- Returns:
- a
Booleanobject. - See Also:
-
setShadow
Whether to apply a drop shadow to the outer chart area. Requires that backgroundColor be set. Since 2.3 the shadow can be an object configuration containingcolor,offsetX,offsetY,opacityandwidth.Defaults to: false
- Parameters:
shadow- aBooleanobject.
-
getSpacing
Getter for the field
spacing.- Returns:
- an array of
Numberobjects. - See Also:
-
setSpacing
The distance between the outer edge of the chart and the content, like title and legend. The numbers in the array designate top, right, bottom and left respectively. Use the options spacingTop, spacingRight, spacingBottom and spacingLeft options for shorthand setting of one option.Defaults to: [10, 10, 15, 10]
- Parameters:
spacing- an array ofNumberobjects.
-
getSpacingBottom
Getter for the field
spacingBottom.- Returns:
- a
Numberobject. - See Also:
-
setSpacingBottom
The space between the bottom edge of the chart and the content (plot area, title, subtitle or legend in top position).
Defaults to: 15
- Parameters:
spacingBottom- aNumberobject.
-
getSpacingLeft
Getter for the field
spacingLeft.- Returns:
- a
Numberobject. - See Also:
-
setSpacingLeft
The space between the left edge of the chart and the content (plot area,title, subtitle or legend in top position).
Defaults to: 10
- Parameters:
spacingLeft- aNumberobject.
-
getSpacingRight
Getter for the field
spacingRight.- Returns:
- a
Numberobject. - See Also:
-
setSpacingRight
The space between the right edge of the chart and the content (plot area, title, subtitle or legend in top position).
Defaults to: 10
- Parameters:
spacingRight- aNumberobject.
-
getSpacingTop
Getter for the field
spacingTop.- Returns:
- a
Numberobject. - See Also:
-
setSpacingTop
The space between the top edge of the chart and the content (plot area, title, subtitle or legend in top position).
Defaults to: 10
- Parameters:
spacingTop- aNumberobject.
-
getStyle
Getter for the field
style.- Returns:
- a
Styleobject. - See Also:
-
setStyle
Additional CSS styles to apply inline to the containerdiv. Note that since the default font styles are applied in the renderer, it is ignorant of the individual chart options and must be set globally. Defaults to:style: { fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif', // default font fontSize: '12px' }Defaults to: {"fontFamily": "\"Lucida Grande\", \"Lucida Sans Unicode\", Verdana, Arial, Helvetica, sans-serif" ,"fontSize":"12px"}
- Parameters:
style- aStyleobject.
-
getType
Getter for the field
type.- Returns:
- a
MapTypeobject. - See Also:
-
setType
The default series type for the chart. Can be any of the chart types listed under plotOptions.Defaults to: map
- Parameters:
type- aMapTypeobject.
-
getWidth
Getter for the field
width.- Returns:
- a
Numberobject. - See Also:
-
setWidth
An explicit width for the chart. By default (whennull) the width is calculated from the offset width of the containing element.Defaults to: null
- Parameters:
width- aNumberobject.
-
setMargin
Sets all margins to the same value- Parameters:
margin- aNumberobject.
-
setMargin
Sets the vertical margin for top and bottom and the horizontal margin for the right and left margin -
setMargin
Set all margins in one call -
getMap
Getter for the field
map.- Returns:
- a
Stringobject.
-
setMap
Setter for the field
map.- Parameters:
map- aStringobject.
-