public class MapFillComponent extends BaseFillComponent implements FillContextProvider
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ENCODING |
static String |
EXCEPTION_MESSAGE_KEY_ADDRESS_REQUEST_FAILED |
static String |
EXCEPTION_MESSAGE_KEY_INVALID_ADDRESS_COORDINATES |
static String |
EXCEPTION_MESSAGE_KEY_NULL_OR_EMPTY_VALUE_NOT_ALLOWED |
static String |
EXCEPTION_MESSAGE_KEY_NULL_OR_EMPTY_VALUES_NOT_ALLOWED |
static String |
LATITUDE_NODE |
static String |
LONGITUDE_NODE |
static String |
PLACE_URL_PREFIX |
static String |
PLACE_URL_SUFFIX |
static String |
STATUS_NODE |
static String |
STATUS_OK |
fillContext, printElementOriginator
Constructor and Description |
---|
MapFillComponent(MapComponent map) |
MapFillComponent(MapComponent map,
JRFillObjectFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPathStyles(byte evaluation) |
protected void |
copy(JRGenericPrintElement printElement) |
void |
evaluate(byte evaluation)
Evaluates the fill component.
|
void |
evaluateDelayedElement(JRPrintElement element,
byte evaluation)
The default implementation throws
UnsupportedOperationException . |
protected void |
evaluateMap(byte evaluation) |
JRPrintElement |
fill()
Fills the component by creating a print element which will be included
in the generated report.
|
FillContext |
getFillContext() |
protected MapComponent |
getMap() |
String |
getReqParams() |
protected boolean |
isEvaluateNow() |
FillPrepareResult |
prepare(int availableHeight)
Prepares to fill the component by deciding whether the component will
print, and how much vertical space it will require.
|
protected void |
setStyle(Map<String,Object> parentStyleMap,
Map<String,Object> styleMap) |
protected void |
setStyle(String styleName,
Map<String,Object> styleMap) |
deduplicate, evaluateExpression, initialize, rewind
public static final String PLACE_URL_PREFIX
public static final String PLACE_URL_SUFFIX
public static final String DEFAULT_ENCODING
public static final String STATUS_NODE
public static final String LATITUDE_NODE
public static final String LONGITUDE_NODE
public static final String STATUS_OK
public static final String EXCEPTION_MESSAGE_KEY_NULL_OR_EMPTY_VALUE_NOT_ALLOWED
public static final String EXCEPTION_MESSAGE_KEY_NULL_OR_EMPTY_VALUES_NOT_ALLOWED
public static final String EXCEPTION_MESSAGE_KEY_INVALID_ADDRESS_COORDINATES
public static final String EXCEPTION_MESSAGE_KEY_ADDRESS_REQUEST_FAILED
public MapFillComponent(MapComponent map)
public MapFillComponent(MapComponent map, JRFillObjectFactory factory)
protected MapComponent getMap()
public FillContext getFillContext()
getFillContext
in interface FillContextProvider
public void evaluate(byte evaluation) throws JRException
FillComponent
This method would evaluate the component expressions and store the
results to be used in FillComponent.fill()
.
If the component needs to delay the evaluation of some of its
expressions, it would call
FillContext.registerDelayedEvaluation(JRPrintElement, EvaluationTimeEnum, String)
to register a delayed evaluation print element, and perform the delayed
evaluations on FillComponent.evaluateDelayedElement(JRPrintElement, byte)
.
evaluate
in interface FillComponent
evaluation
- the evaluation typeJRException
FillContext.evaluate(net.sf.jasperreports.engine.JRExpression, byte)
protected void evaluateMap(byte evaluation) throws JRException
JRException
protected void addPathStyles(byte evaluation) throws JRException
JRException
protected boolean isEvaluateNow()
public FillPrepareResult prepare(int availableHeight)
FillComponent
prepare
in interface FillComponent
availableHeight
- the amount of vertical space available for the
component, starting from the top of the component element.public JRPrintElement fill()
FillComponent
This method will get called only if FillComponent.prepare(int)
returned
a result that indicated that the component will print.
fill
in interface FillComponent
public void evaluateDelayedElement(JRPrintElement element, byte evaluation) throws JRException
BaseFillComponent
UnsupportedOperationException
.
If a component supports delayed evaluation, it needs to override this method.
evaluateDelayedElement
in interface FillComponent
evaluateDelayedElement
in class BaseFillComponent
element
- the print element for which delayed evaluation has
been registeredevaluation
- the evaluation typeJRException
FillComponent.evaluate(byte)
protected void copy(JRGenericPrintElement printElement)
public String getReqParams()
Copyright © 2023 Cloud Software Group, Inc.. All rights reserved.