public class ImageLayer extends RasterLayer
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
Constructor and Description |
---|
ImageLayer(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
protected void |
fireLayerChangedEvent(LayerChangedEvent event) |
org.locationtech.jts.geom.Point |
getBottomRight()
Returns the bottom right (SouthEast) point of an image.
|
GeoImage |
getGeoImage()
Returns a geo-image of the layer.
|
java.util.function.Function<ImageLayer,GeoImage> |
getGeoImageDelegate()
Returns a function which will be used to load geo-image of the layer.
|
java.lang.String |
getId() |
int |
getMaxZoom()
Returns maximum layer zoom level.
|
int |
getMinZoom()
Returns minimum layer zoom level.
|
org.locationtech.jts.geom.Point |
getTopLeft()
Returns the top left (NorthWest) point of an image.
|
boolean |
isEditable()
Whether the layer is to be editable on a map.
|
boolean |
isVisible()
Whether the layer is to be visible on a map.
|
void |
refresh()
Notify clients that the layer has changed and need to be redrawn.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBottomRight(org.locationtech.jts.geom.Point bottomRight)
Sets the bottom right (SouthEast) point of an image.
|
void |
setEditable(boolean editable)
Sets whether the layer is to be editable on a map.
|
void |
setGeoImage(GeoImage geoImage)
Sets a geo-image of a layer.
|
void |
setGeoImageDelegate(java.util.function.Function<ImageLayer,GeoImage> geoImageDelegate)
Sets a function which will be used to load geo-image of the layer.
|
void |
setMaxZoom(int maxZoom)
Sets maximum zoom level up to which the layer is visible (inclusive).
|
void |
setMinZoom(int minZoom)
Sets minimum zoom level down to which the layer is visible (inclusive).
|
void |
setTopLeft(org.locationtech.jts.geom.Point topLeft)
Sets the top left (NorthWest) point of an image.
|
void |
setVisible(boolean visible)
Sets whether the layer should be visible on a map.
|
java.lang.String |
toString() |
getOpacity, setOpacity
protected org.springframework.context.ApplicationContext applicationContext
public GeoImage getGeoImage()
@StudioProperty(name="image", type=STRING) public void setGeoImage(GeoImage geoImage)
public org.locationtech.jts.geom.Point getTopLeft()
public void setTopLeft(org.locationtech.jts.geom.Point topLeft)
public org.locationtech.jts.geom.Point getBottomRight()
public void setBottomRight(org.locationtech.jts.geom.Point bottomRight)
public java.util.function.Function<ImageLayer,GeoImage> getGeoImageDelegate()
public void setGeoImageDelegate(java.util.function.Function<ImageLayer,GeoImage> geoImageDelegate)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void setMaxZoom(int maxZoom)
Layer
setMaxZoom
in interface Layer
maxZoom
- maximum layer zoom levelpublic int getMaxZoom()
Layer
getMaxZoom
in interface Layer
public void setMinZoom(int minZoom)
Layer
Default value: 0.
setMinZoom
in interface Layer
minZoom
- minimum layer zoom levelpublic int getMinZoom()
Layer
getMinZoom
in interface Layer
public void setVisible(boolean visible)
Layer
Default value: true
.
setVisible
in interface Layer
visible
- true/falsepublic boolean isVisible()
Layer
public void setEditable(boolean editable)
Layer
Default value: false
.
setEditable
in interface Layer
editable
- true/falsepublic boolean isEditable()
Layer
isEditable
in interface Layer
true
if the layer is set to be editable;
otherwise false
protected void fireLayerChangedEvent(LayerChangedEvent event)
public void refresh()
Layer
public java.lang.String toString()
toString
in class java.lang.Object