Class TLspARINCLayerBuilder
java.lang.Object
com.luciad.view.lightspeed.layer.ALspLayerBuilder
com.luciad.format.arinc.view.lightspeed.TLspARINCLayerBuilder
A layer builder for visualizing ARINC data in a Lightspeed view.
This layer builder is for convenience:
- It uses an
AIS styler
for bodies and labels, configured forARINC
. - It can directly customize
TLspAISStyler
. - It sets appropriate layer icons based on the model contents.
- It sets appropriate layer labels.
- It has many of the options available on
TLspShapeLayerBuilder
.
layer
using
a custom TLspAISStyler
or a custom ILspStyler
:
TLspAISStyler aisStyler = new TLspAISStyler(TLspARINCLayerBuilder.SYMBOLOGY_ENCODING_FILES_LOCATION); TLspAISStyler customAisStyler = new TLspAISStyler(MY_CUSTOM_LOCATION); ILspStyler customStyler = new MyCustomStyler(); TLspShapeLayerBuilder.newBuilder() .model(model) .bodyStyler(TLspPaintState.REGULAR, aisStyler) .bodyStyler(TLspPaintState.SELECTED, customAisStyler) .labelStyler(TLspPaintState.REGULAR, aisStyler) .labelStyler(TLspPaintState.SELECTED, customStyler) .build();See
TLspAISStyler
for more details on customization.
- Since:
- 2014.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Location of the ARINC-specific.sld
files for use in aTLspAISStyler
. -
Method Summary
Modifier and TypeMethodDescriptionbodyEditable
(boolean aEditable) Sets whether the body of the layer should be editable.bodyEditor
(ILspEditor aEditor) Sets the body editor for the layer, alternatively you can usebodyEditable(boolean)
to enable a default editor.bodyScaleRange
(ILcdInterval aBodyScaleRange) Sets the scale range for the body of the layer.bodyStyler
(TLspPaintState aPaintState, ILspStyler aBodyStyler) Sets the given body styler for the given paint state.build()
Creates a new layer instance.editableSupported
(boolean aEditableSupported) Sets whether the layer should support editing.filter
(ILcdDynamicFilter aFilter) Sets a filter that will be used to filter objects to prevent them from being painted by the layer.Sets the legend icon for the layer.Sets the textual label for the layer.labelEditable
(boolean aEditable) Sets whether the labels of the layer should be editable.labelEditor
(ILspEditor aEditor) Sets a custom label editor for the layer, alternatively you can uselabelEditable(boolean)
to enable a default label editor.labelScaleRange
(ILcdInterval aLabelScaleRange) Sets the scale range for the labels of the layerlabelStyler
(TLspPaintState aPaintState, ILspStyler aLabelStyler) Sets the given label styler for the given paint state.layerStyle
(TLspLayerStyle aLayerStyle) Set a layer style to be used during the rendering of the layer.layerType
(ILspLayer.LayerType aLayerType) Sets the layer type of the layer.Sets the model used by the layer.static TLspARINCLayerBuilder
Creates a new ARINC layer builder with aTLspAISStyler
configured forARINC
.selectable
(boolean aSelectable) Sets whether the layer should be selectable.selectableSupported
(boolean aSelectableSupported) Sets whether the layer should support selection.sldLocations
(String... aSLDLocations) Configure extra locations of.sld
files in addition to the defaultARINC
configuration.Methods inherited from class com.luciad.view.lightspeed.layer.ALspLayerBuilder
getIcon, getLabel, getLayerStyle, getLayerType, getModel
-
Field Details
-
SYMBOLOGY_ENCODING_FILES_LOCATION
Location of the ARINC-specific.sld
files for use in aTLspAISStyler
.- See Also:
-
-
Method Details
-
newBuilder
Creates a new ARINC layer builder with aTLspAISStyler
configured forARINC
.- Returns:
- a new ARINC layer builder.
-
build
Description copied from class:ALspLayerBuilder
Creates a new layer instance.
- Specified by:
build
in classALspLayerBuilder
- Returns:
- the new layer instance
-
selectable
Sets whether the layer should be selectable. By default, it is selectable.- Parameters:
aSelectable
- whether the layer should be selectable- Returns:
this
-
selectableSupported
Sets whether the layer should support selection. By default, it support selection.- Parameters:
aSelectableSupported
- whether the layer should support selection- Returns:
this
-
editableSupported
Sets whether the layer should support editing. By default, layers support editing.- Parameters:
aEditableSupported
- whether the layer should support selection- Returns:
this
-
bodyEditable
Sets whether the body of the layer should be editable. A default body editor will be used if no body editor is provided. By default, the bodies are not editable.- Parameters:
aEditable
- whether the body of the layer should be editable- Returns:
this
- See Also:
-
labelEditable
Sets whether the labels of the layer should be editable. A default label editor will be used if no label editor is provided. By default, the labels are not editable.- Parameters:
aEditable
- whether the labels of the layer should be editable- Returns:
this
- See Also:
-
bodyStyler
Sets the given body styler for the given paint state. By default, aTLspAISStyler
is set, configured forARINC
. Seeshape layer builder
for the list of supported styles.- Parameters:
aPaintState
- the paint state for which to set the body styleraBodyStyler
- the new body styler for the layer- Returns:
this
-
labelStyler
Sets the given label styler for the given paint state. By default, aTLspAISStyler
is set, configured forARINC
. Seeshape layer builder
for the list of supported styles.- Parameters:
aPaintState
- the paint state for which to set the label styleraLabelStyler
- the new label styler for the layer- Returns:
this
-
bodyEditor
Sets the body editor for the layer, alternatively you can usebodyEditable(boolean)
to enable a default editor.- Parameters:
aEditor
- the body editor for the layer- Returns:
this
- See Also:
-
labelEditor
Sets a custom label editor for the layer, alternatively you can uselabelEditable(boolean)
to enable a default label editor.- Parameters:
aEditor
- the label editor for the layer- Returns:
this
- See Also:
-
bodyScaleRange
Sets the scale range for the body of the layer. By default, no scale range is used.- Parameters:
aBodyScaleRange
- the scale range for the body of the layer- Returns:
this
-
labelScaleRange
Sets the scale range for the labels of the layer By default, no scale range is used.- Parameters:
aLabelScaleRange
- the scale range for the labels of the layer- Returns:
this
-
filter
Sets a filter that will be used to filter objects to prevent them from being painted by the layer. No filter is set by default.- Parameters:
aFilter
- the filter- Returns:
this
-
model
Sets the model used by the layer.This is mandatory. The model must have a
data model
withARINC data types
.- Overrides:
model
in classALspLayerBuilder
- Parameters:
aModel
- an ARINC model, notnull
- Returns:
this
- See Also:
-
label
Sets the textual label for the layer.This is optional, by default the model descriptor's display name is used.
- Overrides:
label
in classALspLayerBuilder
- Parameters:
aLabel
- the label, notnull
- Returns:
this
- See Also:
-
icon
Sets the legend icon for the layer.This is optional, by default an icon is chosen based on the model content.
- Overrides:
icon
in classALspLayerBuilder
- Parameters:
aIcon
- the icon, notnull
- Returns:
this
- See Also:
-
layerType
Description copied from class:ALspLayerBuilder
Sets the layer type of the layer. The default value isILspLayer.LayerType.EDITABLE
.- Overrides:
layerType
in classALspLayerBuilder
- Parameters:
aLayerType
- the layer type- Returns:
- this builder
- See Also:
-
sldLocations
Configure extra locations of.sld
files in addition to the defaultARINC
configuration. SeeTLspAISStyler
for more details.- Parameters:
aSLDLocations
- extra locations of.sld
files.- Returns:
- this
-
layerStyle
Description copied from class:ALspLayerBuilder
Set a layer style to be used during the rendering of the layer.TLspLayerStyle
is used to style the layer as a whole. Layer style can for example modify the transparency of a layer. Also, layer style can be modified after building the layer by callingILspLayer.setLayerStyle(TLspLayerStyle)
.- Overrides:
layerStyle
in classALspLayerBuilder
- Parameters:
aLayerStyle
- the layer style. Must not benull
. If you want to set the default layer style, setTLspLayerStyle.newBuilder().build()
- Returns:
- this
- See Also:
-