Skip to content
Last updated

API / geotoolkit / schematics / labeling / DefaultComponentsFilter / DefaultComponentsFilter

Class: DefaultComponentsFilter

labeling.DefaultComponentsFilter.DefaultComponentsFilter

Default components filter implementation

Deprecated

since 4.0. Use LabelsFilter instead.

Example

// The component filter's parameter 'mdsizedevice' defines how small (in pixels) is component's height which is to be labeled.
import {DefaultComponentsFilter} from '@int/geotoolkit/schematics/labeling/DefaultComponentsFilter';
wellBoreWithLabels.getLabelingStrategy().setOptions({
'componentsfilter': new DefaultComponentsFilter({'mdsizedevice': 100})
});

Implements

Table of contents

Constructors
  • [new DefaultComponentsFilter(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.schematics.labeling.defaultcomponentsfilter.defaultcomponentsfilter.md#new defaultcomponentsfilter(options))
Methods
Css Properties
Name Type Description
mdsizedevicenumberSmallest component MD-size to have label (in device space)
orientationstringOrientation
viewmodeViewModeView mode

Contents

Constructors

new DefaultComponentsFilter(options)

• new DefaultComponentsFilter(options?)

Parameters

Name Type Description
Optional optionsOptionsoptions
Methods

filterComponents

▸ filterComponents(iterator, context): Iterator<ComponentNode&gt;

Gets iterator over filtered components

Parameters

Name Type Description
iteratorIterator<ComponentNode&gt;input components iterator
contextRenderingContextrendering context

Returns

Iterator<ComponentNode&gt;

iterator over components to label

Implementation of

IComponentsFilter.filterComponents


getClassName

▸ getClassName(): string

Returns

string

Implementation of

IComponentsFilter.getClassName


getOptions

▸ getOptions(): any

Returns options (deep copy)

Returns

any

[options] options see DefaultComponentsFilter.getProperties


getProperties

▸ getProperties(): OptionsOut

Returns all the properties pertaining to this object

Returns

OptionsOut

properties


reset

▸ reset(options?): DefaultComponentsFilter

Resets itself using given options

Parameters

Name Type Description
Optional optionsResetOptionsoptions

Returns

DefaultComponentsFilter

Implementation of

IComponentsFilter.reset


setProperties

▸ setProperties(properties?): DefaultComponentsFilter

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsproperties

Returns

DefaultComponentsFilter

this


getClassName

▸ Static getClassName(): string

Returns

string