public class StandardMapComponent extends Object implements MapComponent, Serializable, JRChangeEventsSupport
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_ADDRESS_EXPRESSION |
static String |
PROPERTY_EVALUATION_GROUP |
static String |
PROPERTY_EVALUATION_TIME |
static String |
PROPERTY_IMAGE_TYPE |
static String |
PROPERTY_LANGUAGE_EXPRESSION |
static String |
PROPERTY_LATITUDE_EXPRESSION |
static String |
PROPERTY_LONGITUDE_EXPRESSION |
static String |
PROPERTY_MAP_SCALE |
static String |
PROPERTY_MAP_TYPE |
static String |
PROPERTY_MARKER_CLUSTERING |
static String |
PROPERTY_MARKER_DATA
Deprecated.
Replaced by
PROPERTY_MARKER_DATA_LIST . |
static String |
PROPERTY_MARKER_DATA_LIST |
static String |
PROPERTY_MARKER_DATASET
Deprecated.
Replaced by
PROPERTY_MARKER_DATA . |
static String |
PROPERTY_MARKER_SPIDERING |
static String |
PROPERTY_ON_ERROR_TYPE |
static String |
PROPERTY_PATH_DATA_LIST |
static String |
PROPERTY_PATH_STYLE_LIST |
static String |
PROPERTY_ZOOM_EXPRESSION |
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, ELEMENT_MARKER_DATA, ELEMENT_PATH_DATA, ELEMENT_PATH_STYLE, 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, MAP_ELEMENT_NAME, MAP_ELEMENT_TYPE, PARAMETER_CACHE_RENDERER, PARAMETER_LANGUAGE, PARAMETER_MARKERS, PARAMETER_ON_ERROR_TYPE, PARAMETER_PATH_LOCATIONS, PARAMETER_PATHS, PARAMETER_REQ_PARAMS, PARAMETER_ZOOM, PROPERTY_CLIENT_ID, PROPERTY_GOOGLE_VERSION, PROPERTY_KEY, PROPERTY_PREFIX, PROPERTY_SIGNATURE, PROPERTY_VERSION
Constructor and Description |
---|
StandardMapComponent() |
StandardMapComponent(MapComponent map,
JRBaseObjectFactory objectFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addMarkerData(int index,
ItemData markerData) |
void |
addMarkerData(ItemData markerData) |
void |
addPathData(int index,
ItemData pathData) |
void |
addPathData(ItemData pathData) |
void |
addPathStyle(int index,
ItemData pathStyle) |
void |
addPathStyle(ItemData pathStyle) |
Object |
clone() |
JRExpression |
getAddressExpression()
Returns a
JRExpression
representing the address of the map center. |
String |
getEvaluationGroup()
Returns the evaluation group name for the map component element
|
EvaluationTimeEnum |
getEvaluationTime()
Returns the evaluation time of the map component element
|
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
MapImageTypeEnum |
getImageType()
Returns the image format of the map.
|
JRExpression |
getLanguageExpression()
Returns a
JRExpression
representing the language for the labels on the map. |
JRExpression |
getLatitudeExpression()
Returns a
JRExpression
representing the latitude coordinate of the map center |
JRExpression |
getLongitudeExpression()
Returns a
JRExpression
representing the longitude coordinate of the map center |
MapScaleEnum |
getMapScale()
Returns the scale factor of the Google map used to return higher-resolution map images when
working with high resolution screens available on mobile devices.
|
MapTypeEnum |
getMapType()
Returns the type of the Google map.
|
Boolean |
getMarkerClustering() |
ItemData |
getMarkerData()
Deprecated.
Replaced by
getMarkerDataList() . |
List<ItemData> |
getMarkerDataList()
Returns a list of
ItemData objects
representing collections of markers on the map |
MarkerDataset |
getMarkerDataset()
Deprecated.
Replaced by
getMarkerData() . |
Boolean |
getMarkerSpidering() |
OnErrorTypeEnum |
getOnErrorType()
Returns an attribute that customizes the way the engine handles a missing map image
during report generation.
|
List<ItemData> |
getPathDataList()
Returns a list of
ItemData objects
representing collections of paths on the map |
List<ItemData> |
getPathStyleList()
Returns a list of
ItemData objects
representing collections of path styles for the map |
JRExpression |
getZoomExpression()
Returns a numeric expression
representing the zoom factor of the map.
|
ItemData |
removeMarkerData(ItemData markerData) |
ItemData |
removePathData(ItemData pathData) |
ItemData |
removePathStyle(ItemData pathStyle) |
void |
setAddressExpression(JRExpression addressExpression) |
void |
setEvaluationGroup(String evaluationGroup) |
void |
setEvaluationTime(EvaluationTimeEnum evaluationTimeValue) |
void |
setImageType(MapImageTypeEnum imageType) |
void |
setLanguageExpression(JRExpression languageExpression) |
void |
setLatitudeExpression(JRExpression latitudeExpression) |
void |
setLongitudeExpression(JRExpression longitudeExpression) |
void |
setMapScale(MapScaleEnum mapScale) |
void |
setMapType(MapTypeEnum mapType) |
void |
setMarkerClustering(Boolean markerClustering) |
void |
setMarkerData(ItemData markerData)
Deprecated.
Replaced by
addMarkerData(ItemData) . |
void |
setMarkerDataset(MarkerDataset markerDataset)
Deprecated.
Replaced by
setMarkerData(ItemData) . |
void |
setMarkerSpidering(Boolean markerSpidering) |
void |
setOnErrorType(OnErrorTypeEnum onErrorType) |
void |
setZoomExpression(JRExpression zoomExpression) |
public static final String PROPERTY_LATITUDE_EXPRESSION
public static final String PROPERTY_LONGITUDE_EXPRESSION
public static final String PROPERTY_ADDRESS_EXPRESSION
public static final String PROPERTY_ZOOM_EXPRESSION
public static final String PROPERTY_LANGUAGE_EXPRESSION
public static final String PROPERTY_EVALUATION_TIME
public static final String PROPERTY_EVALUATION_GROUP
public static final String PROPERTY_MAP_TYPE
public static final String PROPERTY_MAP_SCALE
public static final String PROPERTY_IMAGE_TYPE
public static final String PROPERTY_ON_ERROR_TYPE
public static final String PROPERTY_MARKER_CLUSTERING
public static final String PROPERTY_MARKER_SPIDERING
public static final String PROPERTY_MARKER_DATA_LIST
public static final String PROPERTY_PATH_STYLE_LIST
public static final String PROPERTY_PATH_DATA_LIST
public static final String PROPERTY_MARKER_DATASET
PROPERTY_MARKER_DATA
.public static final String PROPERTY_MARKER_DATA
PROPERTY_MARKER_DATA_LIST
.public StandardMapComponent()
public StandardMapComponent(MapComponent map, JRBaseObjectFactory objectFactory)
public JRExpression getLatitudeExpression()
MapComponent
JRExpression
representing the latitude coordinate of the map centergetLatitudeExpression
in interface MapComponent
public void setLatitudeExpression(JRExpression latitudeExpression)
public JRExpression getLongitudeExpression()
MapComponent
JRExpression
representing the longitude coordinate of the map centergetLongitudeExpression
in interface MapComponent
public void setLongitudeExpression(JRExpression longitudeExpression)
public JRExpression getAddressExpression()
MapComponent
JRExpression
representing the address of the map center. If no latitude or longitude
coordinates are provided, the address expression will be used to calculate
these coordinatesgetAddressExpression
in interface MapComponent
public void setAddressExpression(JRExpression addressExpression)
public JRExpression getZoomExpression()
MapComponent
getZoomExpression
in interface MapComponent
public void setZoomExpression(JRExpression zoomExpression)
public JRExpression getLanguageExpression()
MapComponent
JRExpression
representing the language for the labels on the map.getLanguageExpression
in interface MapComponent
public void setLanguageExpression(JRExpression languageExpression)
public EvaluationTimeEnum getEvaluationTime()
MapComponent
getEvaluationTime
in interface MapComponent
public void setEvaluationTime(EvaluationTimeEnum evaluationTimeValue)
public String getEvaluationGroup()
MapComponent
getEvaluationGroup
in interface MapComponent
public void setEvaluationGroup(String evaluationGroup)
public JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupport
getEventSupport
in interface JRChangeEventsSupport
public Object clone()
clone
in interface JRCloneable
clone
in class Object
public MapTypeEnum getMapType()
MapComponent
getMapType
in interface MapComponent
MapTypeEnum
public void setMapType(MapTypeEnum mapType)
public MapScaleEnum getMapScale()
MapComponent
1
(default value)2
4
(for Business customers only)getMapScale
in interface MapComponent
public void setMapScale(MapScaleEnum mapScale)
public MapImageTypeEnum getImageType()
MapComponent
getImageType
in interface MapComponent
MapImageTypeEnum
public void setImageType(MapImageTypeEnum imageType)
public ItemData getMarkerData()
getMarkerDataList()
.getMarkerData
in interface MapComponent
public void setMarkerData(ItemData markerData)
addMarkerData(ItemData)
.public OnErrorTypeEnum getOnErrorType()
MapComponent
getOnErrorType
in interface MapComponent
OnErrorTypeEnum
public void setOnErrorType(OnErrorTypeEnum onErrorType)
public Boolean getMarkerClustering()
getMarkerClustering
in interface MapComponent
MapComponent.ATTRIBUTE_MARKER_CLUSTERING
attributepublic void setMarkerClustering(Boolean markerClustering)
public Boolean getMarkerSpidering()
getMarkerSpidering
in interface MapComponent
MapComponent.ATTRIBUTE_MARKER_SPIDERING
attributepublic void setMarkerSpidering(Boolean markerSpidering)
public MarkerDataset getMarkerDataset()
getMarkerData()
.getMarkerDataset
in interface MapComponent
public void setMarkerDataset(MarkerDataset markerDataset)
setMarkerData(ItemData)
.public List<ItemData> getPathStyleList()
MapComponent
ItemData
objects
representing collections of path styles for the mapgetPathStyleList
in interface MapComponent
ItemData
public void addPathStyle(ItemData pathStyle)
public void addPathStyle(int index, ItemData pathStyle)
public List<ItemData> getMarkerDataList()
MapComponent
ItemData
objects
representing collections of markers on the mapgetMarkerDataList
in interface MapComponent
ItemData
public void addMarkerData(ItemData markerData)
public void addMarkerData(int index, ItemData markerData)
public List<ItemData> getPathDataList()
MapComponent
ItemData
objects
representing collections of paths on the mapgetPathDataList
in interface MapComponent
ItemData
public void addPathData(ItemData pathData)
public void addPathData(int index, ItemData pathData)
Copyright © 2023 Cloud Software Group, Inc.. All rights reserved.