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
ConstructorDescriptionCreates a balloon content provider for KML features, using a default resource provider. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canGetContent
(ALcdBalloonDescriptor aBalloonDescriptor) Checks if it is possible to return aNode
that 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 providervoid
setResourceProvider
(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:ILcdFXBalloonContentProvider
Checks if it is possible to return aNode
that 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 returnnull
and vice versa.- Specified by:
canGetContent
in interfaceILcdFXBalloonContentProvider
- Parameters:
aBalloonDescriptor
- An object describing a balloon.- Returns:
- true if a content
Node
can be returned for the givenALcdBalloonDescriptor
and false otherwise.
-
getContent
A method that creates balloon content panels for KML features.
- Specified by:
getContent
in interfaceILcdFXBalloonContentProvider
- Parameters:
aBalloonDescriptor
- an object that represents a balloon. It can contain one of aTLcdKML22DynamicModel
, aTLcdKML22PaintableGroundOverlay
or aTLcdKML22AbstractFeature
.- Returns:
- A
Node
that is capable of rendering HTML using the standard KML resource provider.null
ifaBalloonDescriptor
does 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
-