Class RasterLayer
- All Implemented Interfaces:
AutoCloseable
Use RasterLayer#newBuilder
to create a raster layer instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Property name for theLayerEvent
that is fired as a result of changing the layer's complex stroke line style.static final String
Property name for theLayerEvent
that is fired as a result of changing the layer's fill style.static final String
Property name for theLayerEvent
that is fired as a result of changing the layer's line style.static final String
Property name for theLayerEvent
that is fired as a result of changing the layer's raster style.Fields inherited from class com.luciad.layers.Layer
PropertyBusy, PropertyTitle, PropertyVisible
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new builder based on this layer instance.void
close()
boolean
protected void
finalize()
Returns the complex stroke line style used for painting this layer.Returns the fill style used for painting this layer.Returns thetype
of this raster layer.Returns the line style used for painting this layer.getModel()
Returns the layer's model, which provides the raster to be presented.Returns the raster style used for painting this layer.int
hashCode()
static RasterLayer.Builder
Returns the new builder for creating aRasterLayer
.void
setComplexStrokeLineStyle
(ComplexStrokeLineStyle complexStrokeLineStyle) Sets a complex stroke as the line style used for painting this layer.void
setFillStyle
(FillStyle fillStyle) Sets the fill style used for painting this layer.void
setLineStyle
(LineStyle lineStyle) Sets the line style used for painting this layer.void
setRasterStyle
(RasterStyle rasterStyle) Sets the raster style used for painting this layer.Methods inherited from class com.luciad.layers.Layer
addObserver, getId, getTitle, isBusy, isVisible, removeObserver, setTitle, setVisible
-
Field Details
-
PropertyRasterStyle
Property name for theLayerEvent
that is fired as a result of changing the layer's raster style.- Since:
- 2023.1
- See Also:
-
PropertyLineStyle
Property name for theLayerEvent
that is fired as a result of changing the layer's line style.- Since:
- 2025.0.03
- See Also:
-
PropertyComplexStrokeLineStyle
Property name for theLayerEvent
that is fired as a result of changing the layer's complex stroke line style.- Since:
- 2025.0.03
- See Also:
-
PropertyFillStyle
Property name for theLayerEvent
that is fired as a result of changing the layer's fill style.- Since:
- 2025.0.03
- See Also:
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classLayer
-
newBuilder
Returns the new builder for creating aRasterLayer
.- Returns:
- the new builder for creating a
RasterLayer
.
-
asBuilder
Returns a new builder based on this layer instance.You can use this builder, for example, to create a copy of this layer.
Note that observers will not be transferred to a new layer.
- Returns:
- a new builder based on this layer instance.
- Since:
- 2025.0
-
getModel
Returns the layer's model, which provides the raster to be presented.- Returns:
- the layer's model, which provides the raster to be presented.
-
getRasterStyle
Returns the raster style used for painting this layer.- Returns:
- the raster style of this layer.
- Since:
- 2023.1
-
setRasterStyle
Sets the raster style used for painting this layer.If the new raster style is different from the old one, a
LayerEvent
is delivered to the observers with the property name PropertyRasterStyle.- Parameters:
rasterStyle
- the new raster style.- Since:
- 2023.1
-
getLineStyle
Returns the line style used for painting this layer.- Returns:
- the line style of this layer.
- Since:
- 2025.0.03
-
setLineStyle
Sets the line style used for painting this layer.Only one line style can be set. If this function is called when a
ComplexStrokeLineStyle
has already been set, it will be overwritten.After calling this, a
LayerEvent
is delivered to the observers with the property name PropertyLineStyle. If a previousComplexStrokeLineStyle
was overwritten, aLayerEvent
with the PropertyComplexStrokeLineStyle property is also delivered.- Parameters:
lineStyle
- the new line style.- Since:
- 2025.0.03
-
getComplexStrokeLineStyle
Returns the complex stroke line style used for painting this layer.- Returns:
- the complex stroke line style of this layer.
- Since:
- 2025.0.03
-
setComplexStrokeLineStyle
Sets a complex stroke as the line style used for painting this layer.Only one line style can be set. If this function is called when a
LineStyle
has already been set, it will be overwritten.After calling this, a
LayerEvent
is delivered to the observers with the property name PropertyComplexStrokeLineStyle. If a previousLineStyle
was overwritten, aLayerEvent
with the PropertyLineStyle property is also delivered.- Parameters:
complexStrokeLineStyle
- the new complex stroke line style.- Since:
- 2025.0.03
-
getFillStyle
Returns the fill style used for painting this layer.- Returns:
- the fill style of this layer.
- Since:
- 2025.0.03
-
setFillStyle
Sets the fill style used for painting this layer.After calling this, a
LayerEvent
is delivered to the observers with the property name PropertyFillStyle.- Parameters:
fillStyle
- the new fill style.- Since:
- 2025.0.03
-
getLayerType
Returns thetype
of this raster layer.- Returns:
- this layer type.
- Since:
- 2024.0
-
hashCode
public int hashCode() -
equals
-