public class HeadlessMapProvider extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HeadlessMapProvider.DominatingDimension
DOCUMENT ME!
|
static class |
HeadlessMapProvider.NotificationLevel
DOCUMENT ME!
|
class |
HeadlessMapProvider.NotificationMessage
DOCUMENT ME!
|
static class |
HeadlessMapProvider.RoundingPrecision
DOCUMENT ME!
|
| Constructor and Description |
|---|
HeadlessMapProvider()
Creates a new HeadlessMapProvider object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(Feature f)
add a feature to the HeadlessMapProvider.
|
void |
addFeatures(Collection<? extends Feature> featureCollection)
add a collection of features to the HeadlessMapProvider.
|
void |
addLayer(RetrievalServiceLayer layer)
Add a layer to the HeadlessMapProvider.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener that will notify about the progress of the map building.
|
static HeadlessMapProvider |
createHeadlessMapProviderAndAddLayers(MappingComponent mappingComponent)
Creates a HeadlessMapProvider and adds the raster layers and feature layers from the mapping component to it.
|
BoundingBox |
getCurrentBoundingBoxFromMap()
DOCUMENT ME!
|
HeadlessMapProvider.DominatingDimension |
getDominatingDimension()
The dominating dimension determines, what value is changed, when the image pixel ratio is adjusted to the
coordinate ratio.
|
double |
getFeatureResolutionFactor()
DOCUMENT ME!
|
Image |
getImage(int dpi,
double widthInMillimeters,
double heightInMilimeters)
Don't know what the idea was behind this method ;-) maybe take the 72dpi from jasper and recalculate the pixels
then call the next method.
|
Future<Image> |
getImage(int widthPixels,
int heightPixels)
this is the most important function.
|
Future<Image> |
getImage(int baseDpi,
int targetDpi,
double widthInPixels,
double heightInPixels)
This is the method called when you need to fill in a report: for jasper with (72 as basedpi and widzth and height
with the dimension of the image in the report
|
Image |
getImageAndWait(int widthPixels,
int heightPixels)
Generates the image and waits for the result.
|
Image |
getImageAndWait(int basedpi,
int targetDpi,
double widthInPixels,
double heightInPixels)
This is the method called when you need to fill in a report: for jasper with (72 as basedpi and widzth and height
with the dimension of the image in the report.
|
double |
getImageScaleDenominator()
DOCUMENT ME!
|
MappingComponent |
getMappingComponent()
DOCUMENT ME!
|
double |
getPrintingResolution()
DOCUMENT ME!
|
Object |
getRequestingObject()
DOCUMENT ME!
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener that will notify about the progress of the map building.
|
void |
setBoundingBox(XBoundingBox boundingBox)
set the bounding box of the HeadlessMapProvider.
|
void |
setCenterMapOnResize(boolean b)
DOCUMENT ME!
|
void |
setCrs(Crs crs)
DOCUMENT ME!
|
void |
setDominatingDimension(HeadlessMapProvider.DominatingDimension dominatingDimension)
Set the dominating dimension.
|
void |
setFeatureResolutionFactor(double featureResolutionFactor)
DOCUMENT ME!
|
void |
setMinimumScaleDenomimator(double minimumScaleDenominator)
DOCUMENT ME!
|
void |
setPrintingResolution(double printingResolution)
DOCUMENT ME!
|
void |
setRequestingObject(Object requestingObject)
DOCUMENT ME!
|
void |
setRoundScaleTo(HeadlessMapProvider.RoundingPrecision rp)
DOCUMENT ME!
|
public HeadlessMapProvider()
public Object getRequestingObject()
public void setRequestingObject(Object requestingObject)
requestingObject - DOCUMENT ME!public double getFeatureResolutionFactor()
public void setFeatureResolutionFactor(double featureResolutionFactor)
featureResolutionFactor - the featureResolutionFactor to setpublic static HeadlessMapProvider createHeadlessMapProviderAndAddLayers(MappingComponent mappingComponent)
mappingComponent - DOCUMENT ME!public double getPrintingResolution()
public void setPrintingResolution(double printingResolution)
printingResolution - the printingResolution to setpublic MappingComponent getMappingComponent()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - the listener to addpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - the listener to removepublic void addFeature(Feature f)
f - the feature to addpublic void addFeatures(Collection<? extends Feature> featureCollection)
featureCollection - the feature collection to addpublic void addLayer(RetrievalServiceLayer layer)
layer - the layer to addpublic void setBoundingBox(XBoundingBox boundingBox)
boundingBox - the new BoundingBox of the mappublic void setCrs(Crs crs)
crs - DOCUMENT ME!public Image getImage(int dpi, double widthInMillimeters, double heightInMilimeters)
dpi - DOCUMENT ME!widthInMillimeters - DOCUMENT ME!heightInMilimeters - DOCUMENT ME!public Future<Image> getImage(int baseDpi, int targetDpi, double widthInPixels, double heightInPixels)
baseDpi - DOCUMENT ME!targetDpi - DOCUMENT ME!widthInPixels - DOCUMENT ME!heightInPixels - DOCUMENT ME!public Future<Image> getImage(int widthPixels, int heightPixels)
widthPixels - DOCUMENT ME!heightPixels - DOCUMENT ME!public Image getImageAndWait(int widthPixels, int heightPixels) throws ExecutionException, InterruptedException
widthPixels - DOCUMENT ME!heightPixels - DOCUMENT ME!ExecutionException - DOCUMENT ME!InterruptedException - DOCUMENT ME!public Image getImageAndWait(int basedpi, int targetDpi, double widthInPixels, double heightInPixels) throws ExecutionException, InterruptedException
basedpi - DOCUMENT ME!targetDpi - DOCUMENT ME!widthInPixels - DOCUMENT ME!heightInPixels - DOCUMENT ME!ExecutionException - DOCUMENT ME!InterruptedException - DOCUMENT ME!public HeadlessMapProvider.DominatingDimension getDominatingDimension()
public void setDominatingDimension(HeadlessMapProvider.DominatingDimension dominatingDimension)
dominatingDimension - the dominatingDimension to setpublic void setMinimumScaleDenomimator(double minimumScaleDenominator)
minimumScaleDenominator - DOCUMENT ME!public void setCenterMapOnResize(boolean b)
b - DOCUMENT ME!public void setRoundScaleTo(HeadlessMapProvider.RoundingPrecision rp)
rp - DOCUMENT ME!public double getImageScaleDenominator()
public BoundingBox getCurrentBoundingBoxFromMap()
Copyright © 2012–2025 cismet GmbH. All rights reserved.