Class TLcyGXYCompositeLabelPlacementHintProvider

java.lang.Object
com.luciad.lucy.util.TLcyGenericComposite<ILcyGXYLabelPlacementHintProvider>
com.luciad.lucy.map.labeling.TLcyGXYCompositeLabelPlacementHintProvider
All Implemented Interfaces:
ILcyGXYLabelPlacementHintProvider, Iterable<ILcyGXYLabelPlacementHintProvider>

public class TLcyGXYCompositeLabelPlacementHintProvider extends TLcyGenericComposite<ILcyGXYLabelPlacementHintProvider> implements ILcyGXYLabelPlacementHintProvider
A composite implementation of ILcyGXYLabelPlacementHintProvider according to the composite design pattern.

When creating a new TLcyCompositeLabelPlacementHintProvider using the default constructor (see TLcyGXYCompositeLabelPlacementHintProvider()), the created instance will only work on/with the ILcyGXYLabelPlacementHintProviders registered on this composite instance (see addLabelPlacementHintProvider(com.luciad.lucy.map.labeling.ILcyGXYLabelPlacementHintProvider) and removeLabelPlacementHintProvider(com.luciad.lucy.map.labeling.ILcyGXYLabelPlacementHintProvider).

When creating a new TLcyCompositeLabelPlacementHintProvider using the constructor specifying an ILcyLucyEnv instance (see TLcyGXYCompositeLabelPlacementHintProvider(ILcyLucyEnv), the created instance will work on the Lucy back-end services. It will use all registered ILcyGXYLabelPlacementHintProvider instances of the Lucy back-end, adding and/or removing an ILcyLabelPlacementHintProvider will add/remove the ILcyLabelPlacementHintProvider as service from Lucy, ... .

Creating a TLcyGXYLabelPlacementHint using the back-end based implementation can be done by creating a new instance of this class:

    //Create a new instance whenever you need it.
    TLcyGXYCompositeLabelPlacementHintProvider provider = new TLcyGXYCompositeLabelPlacementHintProvider(aLucyEnv);
    TLcyGXYLabelPlacementHint hint = provider.getLabelPlacementHint(aLayer);
    // There is no need to keep a reference to the composite instance, you can create a new one
    // the next time you would need it
    provider = null;
Since:
10.1