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 StringProperty name for theLayerEventthat is fired as a result of changing the layer's complex stroke line style.static final StringProperty name for theLayerEventthat is fired as a result of changing the layer's fill style.static final StringProperty name for theLayerEventthat is fired as a result of changing the layer's line style.static final StringProperty name for theLayerEventthat 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.voidclose()booleanprotected voidfinalize()Returns the complex stroke line style used for painting this layer.Returns the fill style used for painting this layer.Returns thetypeof 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.inthashCode()static RasterLayer.BuilderReturns the new builder for creating aRasterLayer.voidsetComplexStrokeLineStyle(ComplexStrokeLineStyle complexStrokeLineStyle) Sets a complex stroke as the line style used for painting this layer.voidsetFillStyle(FillStyle fillStyle) Sets the fill style used for painting this layer.voidsetLineStyle(LineStyle lineStyle) Sets the line style used for painting this layer.voidsetRasterStyle(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 theLayerEventthat is fired as a result of changing the layer's raster style.- Since:
- 2023.1
- See Also:
-
PropertyLineStyle
Property name for theLayerEventthat is fired as a result of changing the layer's line style.- Since:
- 2025.0.03
- See Also:
-
PropertyComplexStrokeLineStyle
Property name for theLayerEventthat is fired as a result of changing the layer's complex stroke line style.- Since:
- 2025.0.03
- See Also:
-
PropertyFillStyle
Property name for theLayerEventthat 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:
closein interfaceAutoCloseable- Overrides:
closein 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
LayerEventis 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
ComplexStrokeLineStylehas already been set, it will be overwritten.After calling this, a
LayerEventis delivered to the observers with the property name PropertyLineStyle. If a previousComplexStrokeLineStylewas overwritten, aLayerEventwith 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
LineStylehas already been set, it will be overwritten.After calling this, a
LayerEventis delivered to the observers with the property name PropertyComplexStrokeLineStyle. If a previousLineStylewas overwritten, aLayerEventwith 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
LayerEventis delivered to the observers with the property name PropertyFillStyle.- Parameters:
fillStyle- the new fill style.- Since:
- 2025.0.03
-
getLayerType
Returns thetypeof this raster layer.- Returns:
- this layer type.
- Since:
- 2024.0
-
hashCode
public int hashCode() -
equals
-