public final class RasterLayer extends Layer implements AutoCloseable
Use RasterLayer#newBuilder
to create a raster layer instance.
Modifier and Type | Class and Description |
---|---|
static class |
RasterLayer.Builder
|
Modifier and Type | Field and Description |
---|---|
static String |
PropertyRasterStyle
Property name for the
LayerEvent that is fired as a result of changing the layer's style. |
PropertyTitle, PropertyVisible
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
IRasterModel |
getModel()
Returns the layer's model, which provides the raster to be presented.
|
RasterStyle |
getRasterStyle()
Returns the raster style used for painting this layer.
|
static RasterLayer.Builder |
newBuilder()
Returns the new builder for creating a
RasterLayer . |
void |
setRasterStyle(RasterStyle rasterStyle)
Sets the raster style used for painting this layer.
|
addObserver, getId, getTitle, isVisible, removeObserver, setTitle, setVisible
public static final String PropertyRasterStyle
LayerEvent
that is fired as a result of changing the layer's style.setRasterStyle
public void close()
close
in interface AutoCloseable
close
in class Layer
@NotNull public static RasterLayer.Builder newBuilder()
RasterLayer
.RasterLayer
.@NotNull public IRasterModel getModel()
@NotNull public RasterStyle getRasterStyle()
public void setRasterStyle(@NotNull RasterStyle rasterStyle)
If the new raster style is different from the old one, a LayerEvent
is delivered to the observers with the property name PropertyRasterStyle.
rasterStyle
- the new raster style.