Class StandardMapComponent
java.lang.Object
net.sf.jasperreports.components.map.StandardMapComponent
- All Implemented Interfaces:
Serializable,Cloneable,MapComponent,Component,JRChangeEventsSupport,JRCloneable
public class StandardMapComponent
extends Object
implements MapComponent, Serializable, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.static final Stringstatic final StringDeprecated.Replaced byPROPERTY_MARKER_DATA.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface net.sf.jasperreports.components.map.MapComponent
ATTRIBUTE_IMAGE_TYPE, ATTRIBUTE_MAP_SCALE, ATTRIBUTE_MAP_TYPE, ATTRIBUTE_MARKER_CLUSTERING, ATTRIBUTE_MARKER_SPIDERING, ATTRIBUTE_ON_ERROR_TYPE, DEFAULT_LATITUDE, DEFAULT_LONGITUDE, DEFAULT_MAP_TYPE, DEFAULT_ON_ERROR_TYPE, DEFAULT_PATH_NAME, DEFAULT_ZOOM, DEMO_MAP_ID, ELEMENT_LEGEND_ITEM, ELEMENT_MARKER_DATA, ELEMENT_PATH_DATA, ELEMENT_PATH_STYLE, ELEMENT_RESET_MAP_ITEM, ITEM_PROPERTY_address, ITEM_PROPERTY_clickable, ITEM_PROPERTY_draggable, ITEM_PROPERTY_latitude, ITEM_PROPERTY_longitude, ITEM_PROPERTY_MARKER_color, ITEM_PROPERTY_MARKER_cursor, ITEM_PROPERTY_MARKER_flat, ITEM_PROPERTY_MARKER_icon, ITEM_PROPERTY_MARKER_ICON_ANCHOR_x, ITEM_PROPERTY_MARKER_ICON_ANCHOR_y, ITEM_PROPERTY_MARKER_ICON_height, ITEM_PROPERTY_MARKER_ICON_ORIGIN_x, ITEM_PROPERTY_MARKER_ICON_ORIGIN_y, ITEM_PROPERTY_MARKER_ICON_url, ITEM_PROPERTY_MARKER_ICON_width, ITEM_PROPERTY_MARKER_INFOWINDOW_content, ITEM_PROPERTY_MARKER_INFOWINDOW_latitude, ITEM_PROPERTY_MARKER_INFOWINDOW_longitude, ITEM_PROPERTY_MARKER_INFOWINDOW_maxWidth, ITEM_PROPERTY_MARKER_INFOWINDOW_pixelOffset, ITEM_PROPERTY_MARKER_label, ITEM_PROPERTY_MARKER_optimized, ITEM_PROPERTY_MARKER_raiseOnDrag, ITEM_PROPERTY_MARKER_shadow, ITEM_PROPERTY_MARKER_SHADOW_ANCHOR_x, ITEM_PROPERTY_MARKER_SHADOW_ANCHOR_y, ITEM_PROPERTY_MARKER_SHADOW_height, ITEM_PROPERTY_MARKER_SHADOW_ORIGIN_x, ITEM_PROPERTY_MARKER_SHADOW_ORIGIN_y, ITEM_PROPERTY_MARKER_SHADOW_url, ITEM_PROPERTY_MARKER_SHADOW_width, ITEM_PROPERTY_MARKER_size, ITEM_PROPERTY_MARKER_target, ITEM_PROPERTY_MARKER_title, ITEM_PROPERTY_MARKER_url, ITEM_PROPERTY_MARKER_zIndex, ITEM_PROPERTY_name, ITEM_PROPERTY_style, ITEM_PROPERTY_STYLE_editable, ITEM_PROPERTY_STYLE_fillColor, ITEM_PROPERTY_STYLE_fillOpacity, ITEM_PROPERTY_STYLE_geodesic, ITEM_PROPERTY_STYLE_isPolygon, ITEM_PROPERTY_STYLE_strokeColor, ITEM_PROPERTY_STYLE_strokeOpacity, ITEM_PROPERTY_STYLE_strokeWeight, ITEM_PROPERTY_visible, LEGEND_OR_RESET_MAP_PROPERTY_enabled, LEGEND_OR_RESET_MAP_PROPERTY_label, LEGEND_OR_RESET_MAP_PROPERTY_position, LEGEND_PROPERTY_legendMaxHeight, LEGEND_PROPERTY_legendMaxHeight_fullscreen, LEGEND_PROPERTY_legendMaxWidth, LEGEND_PROPERTY_legendMaxWidth_fullscreen, LEGEND_PROPERTY_orientation, LEGEND_PROPERTY_useMarkerIcons, MAP_ELEMENT_NAME, MAP_ELEMENT_TYPE, PARAMETER_CACHE_RENDERER, PARAMETER_CLIENT, PARAMETER_DEFAULT_MARKER_ICON, PARAMETER_LANGUAGE, PARAMETER_LEGEND_PROPERTIES, PARAMETER_MAP_ID, PARAMETER_MARKERS, PARAMETER_ON_ERROR_TYPE, PARAMETER_PATH_LOCATIONS, PARAMETER_PATHS, PARAMETER_REQ_PARAMS, PARAMETER_RESET_MAP_PROPERTIES, PARAMETER_V, PARAMETER_ZOOM, PROPERTY_CLIENT_ID, PROPERTY_DEFAULT_MARKER_ICON, PROPERTY_GOOGLE_MAP_ID, PROPERTY_GOOGLE_VERSION, PROPERTY_KEY, PROPERTY_PREFIX, PROPERTY_SIGNATURE, PROPERTY_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMarkerData(int index, ItemData markerData) Deprecated.Replaced byaddMarkerItemData(int, MarkerItemData).voidaddMarkerData(ItemData markerData) Deprecated.Replaced byaddMarkerItemData(MarkerItemData).voidaddMarkerItemData(int index, MarkerItemData markerData) voidaddMarkerItemData(MarkerItemData markerItemData) voidaddPathData(int index, ItemData pathData) voidaddPathData(ItemData pathData) voidaddPathStyle(int index, ItemData pathStyle) voidaddPathStyle(ItemData pathStyle) clone()Returns aJRExpressionrepresenting the address of the map center.Returns the evaluation group name for the map component elementReturns the evaluation time of the map component elementReturns the property change support object for this instance.Returns the image format of the map.Returns aJRExpressionrepresenting the language for the labels on the map.Returns aJRExpressionrepresenting the latitude coordinate of the map centerReturns aJRExpressionrepresenting the longitude coordinate of the map centerReturns the scale factor of the Google map used to return higher-resolution map images when working with high resolution screens available on mobile devices.Returns the type of the Google map.Deprecated.Replaced bygetMarkerDataList().Deprecated.Replaced bygetMarkerItemDataList()Deprecated.Replaced bygetMarkerData().Returns a list ofMarkerItemDataobjects representing collections of markers on the mapReturns an attribute that customizes the way the engine handles a missing map image during report generation.Returns a list ofItemDataobjects representing collections of paths on the mapReturns a list ofItemDataobjects representing collections of path styles for the mapReturns a numeric expression representing the zoom factor of the map.removeMarkerData(ItemData markerData) Deprecated.Replaced byremoveMarkerItemData(MarkerItemData)removeMarkerItemData(MarkerItemData markerItemData) removePathData(ItemData pathData) removePathStyle(ItemData pathStyle) voidsetAddressExpression(JRExpression addressExpression) voidsetEvaluationGroup(String evaluationGroup) voidsetEvaluationTime(EvaluationTimeEnum evaluationTimeValue) voidsetImageType(MapImageTypeEnum imageType) voidsetLanguageExpression(JRExpression languageExpression) voidsetLatitudeExpression(JRExpression latitudeExpression) voidvoidsetLongitudeExpression(JRExpression longitudeExpression) voidsetMapScale(MapScaleEnum mapScale) voidsetMapType(MapTypeEnum mapType) voidsetMarkerClustering(Boolean markerClustering) voidsetMarkerData(ItemData markerData) Deprecated.Replaced byaddMarkerData(ItemData).voidsetMarkerDataset(MarkerDataset markerDataset) Deprecated.Replaced bysetMarkerData(ItemData).voidsetMarkerSpidering(Boolean markerSpidering) voidsetOnErrorType(OnErrorTypeEnum onErrorType) voidsetResetMap(Item resetMap) voidsetZoomExpression(JRExpression zoomExpression)
-
Field Details
-
PROPERTY_LATITUDE_EXPRESSION
- See Also:
-
PROPERTY_LONGITUDE_EXPRESSION
- See Also:
-
PROPERTY_ADDRESS_EXPRESSION
- See Also:
-
PROPERTY_ZOOM_EXPRESSION
- See Also:
-
PROPERTY_LANGUAGE_EXPRESSION
- See Also:
-
PROPERTY_EVALUATION_TIME
- See Also:
-
PROPERTY_EVALUATION_GROUP
- See Also:
-
PROPERTY_MAP_TYPE
- See Also:
-
PROPERTY_MAP_SCALE
- See Also:
-
PROPERTY_IMAGE_TYPE
- See Also:
-
PROPERTY_ON_ERROR_TYPE
- See Also:
-
PROPERTY_MARKER_CLUSTERING
- See Also:
-
PROPERTY_MARKER_SPIDERING
- See Also:
-
PROPERTY_MARKER_DATA_LIST
- See Also:
-
PROPERTY_PATH_STYLE_LIST
- See Also:
-
PROPERTY_PATH_DATA_LIST
- See Also:
-
PROPERTY_MARKER_DATASET
Deprecated.Replaced byPROPERTY_MARKER_DATA.- See Also:
-
PROPERTY_MARKER_DATA
Deprecated.Replaced byPROPERTY_MARKER_DATA_LIST.- See Also:
-
PROPERTY_LEGEND
- See Also:
-
PROPERTY_RESET_MAP
- See Also:
-
-
Constructor Details
-
StandardMapComponent
public StandardMapComponent() -
StandardMapComponent
-
-
Method Details
-
getLatitudeExpression
Description copied from interface:MapComponentReturns aJRExpressionrepresenting the latitude coordinate of the map center- Specified by:
getLatitudeExpressionin interfaceMapComponent- Returns:
- the latitude expression
-
setLatitudeExpression
-
getLongitudeExpression
Description copied from interface:MapComponentReturns aJRExpressionrepresenting the longitude coordinate of the map center- Specified by:
getLongitudeExpressionin interfaceMapComponent- Returns:
- the longitude expression
-
setLongitudeExpression
-
getAddressExpression
Description copied from interface:MapComponentReturns aJRExpressionrepresenting the address of the map center. If no latitude or longitude coordinates are provided, the address expression will be used to calculate these coordinates- Specified by:
getAddressExpressionin interfaceMapComponent- Returns:
- the address expression
-
setAddressExpression
-
getZoomExpression
Description copied from interface:MapComponentReturns a numeric expression representing the zoom factor of the map.- Specified by:
getZoomExpressionin interfaceMapComponent- Returns:
- the zoom expression
-
setZoomExpression
-
getLanguageExpression
Description copied from interface:MapComponentReturns aJRExpressionrepresenting the language for the labels on the map.- Specified by:
getLanguageExpressionin interfaceMapComponent- Returns:
- the language expression
-
setLanguageExpression
-
getEvaluationTime
Description copied from interface:MapComponentReturns the evaluation time of the map component element- Specified by:
getEvaluationTimein interfaceMapComponent- Returns:
- the evaluation time
-
setEvaluationTime
-
getEvaluationGroup
Description copied from interface:MapComponentReturns the evaluation group name for the map component element- Specified by:
getEvaluationGroupin interfaceMapComponent- Returns:
- the evaluation group
-
setEvaluationGroup
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
getMapType
Description copied from interface:MapComponentReturns the type of the Google map. Possible values are:- Specified by:
getMapTypein interfaceMapComponent- Returns:
- the type of the Google map
- See Also:
-
setMapType
-
getMapScale
Description copied from interface:MapComponentReturns the scale factor of the Google map used to return higher-resolution map images when working with high resolution screens available on mobile devices. Possible values are:1(default value)24(for Business customers only)
- Specified by:
getMapScalein interfaceMapComponent- Returns:
- the scale factor
-
setMapScale
-
getImageType
Description copied from interface:MapComponentReturns the image format of the map. Possible values are:- Specified by:
getImageTypein interfaceMapComponent- Returns:
- the image format of the map
- See Also:
-
setImageType
-
getMarkerData
Deprecated.Replaced bygetMarkerDataList().- Specified by:
getMarkerDatain interfaceMapComponent
-
setMarkerData
Deprecated.Replaced byaddMarkerData(ItemData). -
getOnErrorType
Description copied from interface:MapComponentReturns an attribute that customizes the way the engine handles a missing map image during report generation. Possible values are:- Specified by:
getOnErrorTypein interfaceMapComponent- Returns:
- the onErrorType attribute
- See Also:
-
setOnErrorType
-
getMarkerClustering
- Specified by:
getMarkerClusteringin interfaceMapComponent- Returns:
- the
MapComponent.ATTRIBUTE_MARKER_CLUSTERINGattribute
-
setMarkerClustering
-
getMarkerSpidering
- Specified by:
getMarkerSpideringin interfaceMapComponent- Returns:
- the
MapComponent.ATTRIBUTE_MARKER_SPIDERINGattribute
-
setMarkerSpidering
-
getMarkerDataset
Deprecated.Replaced bygetMarkerData().- Specified by:
getMarkerDatasetin interfaceMapComponent
-
setMarkerDataset
Deprecated.Replaced bysetMarkerData(ItemData). -
getPathStyleList
Description copied from interface:MapComponentReturns a list ofItemDataobjects representing collections of path styles for the map- Specified by:
getPathStyleListin interfaceMapComponent- Returns:
- a list of path styles
- See Also:
-
addPathStyle
-
addPathStyle
-
removePathStyle
-
getMarkerDataList
Deprecated.Replaced bygetMarkerItemDataList()- Specified by:
getMarkerDataListin interfaceMapComponent
-
getMarkerItemDataList
Description copied from interface:MapComponentReturns a list ofMarkerItemDataobjects representing collections of markers on the map- Specified by:
getMarkerItemDataListin interfaceMapComponent- Returns:
- a list of marker data
- See Also:
-
addMarkerData
Deprecated.Replaced byaddMarkerItemData(MarkerItemData). -
addMarkerItemData
-
addMarkerData
Deprecated.Replaced byaddMarkerItemData(int, MarkerItemData). -
addMarkerItemData
-
removeMarkerData
Deprecated.Replaced byremoveMarkerItemData(MarkerItemData) -
removeMarkerItemData
-
getLegendItem
- Specified by:
getLegendItemin interfaceMapComponent
-
setLegend
-
getResetMapItem
- Specified by:
getResetMapItemin interfaceMapComponent
-
setResetMap
-
getPathDataList
Description copied from interface:MapComponentReturns a list ofItemDataobjects representing collections of paths on the map- Specified by:
getPathDataListin interfaceMapComponent- Returns:
- a list of path data
- See Also:
-
addPathData
-
addPathData
-
removePathData
-
PROPERTY_MARKER_DATA_LIST.