Package com.luciad.format.dgn.lightspeed
Class TLspDGNStyler
java.lang.Object
com.luciad.view.lightspeed.style.styler.ALspStyler
com.luciad.format.dgn.lightspeed.TLspDGNStyler
- All Implemented Interfaces:
ILspStyler
A LuciadLightspeed
styler for DGN data.
This styler is not complete: it has similar limitations as DGN GXY painting.- Since:
- 2025.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new styler with the default color table and level symbologies.TLspDGNStyler(TLcdDGNColorTable aDGNColorTable, TLcdDGNLevelSymbology aDGNLevelSymbology) Creates a new styler with the given color table and level symbologies. -
Method Summary
Modifier and TypeMethodDescriptionvoidstyle(Collection<?> aCollection, ALspStyleCollector aCollector, TLspContext aContext) Styles the objects or labels contained inaObjectsusing the methods provided byALspStyleCollector.Methods inherited from class com.luciad.view.lightspeed.style.styler.ALspStyler
addStyleChangeListener, fireStyleChangeEvent, fireStyleChangeEvent, removeStyleChangeListener
-
Constructor Details
-
TLspDGNStyler
public TLspDGNStyler()Creates a new styler with the default color table and level symbologies. -
TLspDGNStyler
Creates a new styler with the given color table and level symbologies. You can obtain the color table and symbologies from theDGN model descriptor.- Parameters:
aDGNColorTable- The color table from the DGN fileaDGNLevelSymbology- The symbology from the DGN file
-
-
Method Details
-
style
Description copied from interface:ILspStylerStyles the objects or labels contained in
aObjectsusing the methods provided byALspStyleCollector.Example usages for object styling:
// Same style for all objects: aStyleCollector.objects(aObjects).style(myStyle).submit(); // Object specific styling: aStyleCollector.object(myObject1).style(myStyle1).submit(); aStyleCollector.object(myObject2).style(myStyle2).submit();Example usages for label styling:
if (aStyleCollector instanceof ALspLabelStyleCollector) { ALspLabelStyleCollector labelStyleCollector = (ALspLabelStyleCollector)aStyleCollector; // Specify a priority for all labels of all objects: labelStyleCollector.objects(aDomainObjects).allLabels().priority(3).styles(...).submit(); // Specify an algorithm for a specific label: labelStyleCollector.object(myObject1).label(123).algorithm(...).styles(...).submit(); }The objects that are provided to
aStyleCollectormust be objects that are contained inaObjects. Note that not all objects have to be styled. Objects that are not submitted inaStyleCollectorwill not be painted.This method can be called very frequently, depending on the (amount of) data. If this method is not implemented efficiently, painting performance may be affected.
- Parameters:
aCollection- The objects to be styled.aCollector- A style collector to which all styling information should be passed, this collector is only valid within this method call, and can no longer be used afterwards.aContext- Provides context information that may affect styling, such as view specific properties.
-