Last updated

API / geotoolkit / contour / scale / ContourScale / ContourScale

Class: ContourScale

scale.ContourScale.ContourScale

An abstract base class for the contour scale. The contour scale provides the information about sections of an altitude axis.

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new ContourScale()

new ContourScale()

Methods

getClassName

getClassName(): string

Returns

string


getCount

Abstract getCount(): number

Gets the total number of intervals within the scale.

Returns

number

count The number of the scale intervals


getIndex

Abstract getIndex(zValue): number

Finds the contour index representing the supplied z-value.

Parameters

Name Type Description
zValuenumberz-value for which contour index has to be found

Returns

number

index The contour index to which the z value belongs


getProperties

getProperties(): AnyRecord

Gets the scale properties

Returns

AnyRecord

properties Scale properties


getRange

Abstract getRange(index): Range

Returns the full range of values in the contour scale if called with no argument or returns the range of values represented by the supplied contour index.

Parameters

Name Type Description
indexnumberOptional Parameter. The contour index for which to find the z-value range.

Returns

Range

range The full range of this scale.


setProperties

setProperties(properties): ContourScale

Sets the scale properties

Parameters

Name Type Description
propertiesAnyRecordscale properties

Returns

ContourScale

this


getClassName

Static getClassName(): string

Returns

string