Class TLcdKML22FXBalloonContentProvider
java.lang.Object
com.luciad.format.kml22.view.javafx.TLcdKML22FXBalloonContentProvider
- All Implemented Interfaces:
ILcdFXBalloonContentProvider
@LcdService(service=ILcdFXBalloonContentProvider.class,
priority=20000)
public class TLcdKML22FXBalloonContentProvider
extends Object
implements ILcdFXBalloonContentProvider
A JavaFX compatible balloon content provider for KML objects.
An instance of this object can create balloon content for every KML feature with a description, a balloon style with a text, or a combination of both.
- Since:
- 2020.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a balloon content provider for KML features, using a default resource provider. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanGetContent(ALcdBalloonDescriptor aBalloonDescriptor) Checks if it is possible to return aNodethat should be used as the content.getContent(ALcdBalloonDescriptor aBalloonDescriptor) A method that creates balloon content panels for KML features.Gets the resource provider used by this balloon content providervoidsetResourceProvider(TLcdKML22ResourceProvider aResourceProvider) Sets the resource provider this balloon content provider should use to retrieve its resources.
-
Constructor Details
-
TLcdKML22FXBalloonContentProvider
public TLcdKML22FXBalloonContentProvider()Creates a balloon content provider for KML features, using a default resource provider.
-
-
Method Details
-
canGetContent
Description copied from interface:ILcdFXBalloonContentProviderChecks if it is possible to return aNodethat should be used as the content. The implementation of this method should be consistent with the implementation ofILcdFXBalloonContentProvider.getContent(ALcdBalloonDescriptor), i.e. when this method returnsfalse,ILcdFXBalloonContentProvider.getContent(ALcdBalloonDescriptor)should returnnulland vice versa.- Specified by:
canGetContentin interfaceILcdFXBalloonContentProvider- Parameters:
aBalloonDescriptor- An object describing a balloon.- Returns:
- true if a content
Nodecan be returned for the givenALcdBalloonDescriptorand false otherwise.
-
getContent
A method that creates balloon content panels for KML features.
- Specified by:
getContentin interfaceILcdFXBalloonContentProvider- Parameters:
aBalloonDescriptor- an object that represents a balloon. It can contain one of aTLcdKML22DynamicModel, aTLcdKML22PaintableGroundOverlayor aTLcdKML22AbstractFeature.- Returns:
- A
Nodethat is capable of rendering HTML using the standard KML resource provider.nullifaBalloonDescriptordoes not provide access to a KML feature.
-
getResourceProvider
Gets the resource provider used by this balloon content provider- Returns:
- a
TLcdKML22ResourceProvider
-
setResourceProvider
Sets the resource provider this balloon content provider should use to retrieve its resources.- Parameters:
aResourceProvider- aTLcdKML22ResourceProvider
-