public abstract class RasterLayer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireLayerChangedEvent(LayerChangedEvent event) |
java.lang.String |
getId() |
int |
getMaxZoom()
Returns maximum layer zoom level.
|
int |
getMinZoom()
Returns minimum layer zoom level.
|
java.lang.Double |
getOpacity()
Returns layer opacity value.
|
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 |
setEditable(boolean editable)
Sets whether the layer is to be editable on a map.
|
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 |
setOpacity(java.lang.Double opacity)
Sets layer opacity value.
|
void |
setVisible(boolean visible)
Sets whether the layer should be visible on a map.
|
java.lang.String |
toString() |
protected org.springframework.context.ApplicationContext applicationContext
public java.lang.Double getOpacity()
@StudioProperty(name="opacity") public void setOpacity(java.lang.Double opacity)
opacity - double value in the range between 0.0 (fully transparent) to 1.0 (fully opaque)public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setMaxZoom(int maxZoom)
LayersetMaxZoom in interface LayermaxZoom - maximum layer zoom levelpublic int getMaxZoom()
LayergetMaxZoom in interface Layerpublic void setMinZoom(int minZoom)
LayerDefault value: 0.
setMinZoom in interface LayerminZoom - minimum layer zoom levelpublic int getMinZoom()
LayergetMinZoom in interface Layerpublic void setVisible(boolean visible)
Layer
Default value: true.
setVisible in interface Layervisible - true/falsepublic boolean isVisible()
Layerpublic void setEditable(boolean editable)
Layer
Default value: false.
setEditable in interface Layereditable - true/falsepublic boolean isEditable()
LayerisEditable in interface Layertrue if the layer is set to be editable;
otherwise falseprotected void fireLayerChangedEvent(LayerChangedEvent event)
public void refresh()
Layerpublic java.lang.String toString()
toString in class java.lang.Object