Last updated

API / geotoolkit / contour / strategy / SingleIsolineStylingStrategy / SingleIsolineStylingStrategy

Class: SingleIsolineStylingStrategy

strategy.SingleIsolineStylingStrategy.SingleIsolineStylingStrategy

Define an interface for styling isolines

Interface

Implements

Table of contents

Constructors
Methods
Css Properties
Name Type Description
commonisolinestylestringLinestyle for common lines
commonisolinestyleLineStyleLinestyle for common lines
commonisolinestyle-colorstringColor in CSS form
commonisolinestyle-fillstringOptional fill style to be used to fill lines generated with this style
commonisolinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
commonisolinestyle-fill-colorstringColor in CSS form
commonisolinestyle-fill-evenoddmodebooleanEven-odd fill mode
commonisolinestyle-fill-fillpatternPatternPattern
commonisolinestyle-fill-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
commonisolinestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
commonisolinestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
commonisolinestyle-fill-foregroundstringForeground color
commonisolinestyle-fill-patternPatternPattern
commonisolinestyle-linecapCapStyleThe line cap style
commonisolinestyle-linedashoffsetnumberLine dash offset of dashed line
commonisolinestyle-linejoinJoinStyleThe line join style
commonisolinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
commonisolinestyle-scalablebooleanTrue if width should depend on transformation
commonisolinestyle-unitstringOptional unit for the width
commonisolinestyle-widthnumber | stringThe line thickness
singleisolinelevelnumberLevel index for single isoline
singleisolinestylestringLinestyle for single line
singleisolinestyleLineStyleLinestyle for single line

Contents

Constructors

new SingleIsolineStylingStrategy(singleIsolineLevel, singleIsolineStyle, commonIsolineStyle)

new SingleIsolineStylingStrategy(singleIsolineLevel?, singleIsolineStyle?, commonIsolineStyle?)

Parameters

Name Type Description
Optional singleIsolineLevelnumber | Optionslevel index for single isoline
Optional singleIsolineStyleTypelinestyle for single line
Optional commonIsolineStyleTypelinestyle for common lines
Methods

getClassName

getClassName(): string

Returns

string

Implementation of

IsolineStylingStrategy.getClassName


getCommonIsolineStyle

getCommonIsolineStyle(): LineStyle

Gets linestyle for common line

Returns

LineStyle


getIsolineStyle

getIsolineStyle(level): LineStyle

Gets style for isoline

Parameters

Name Type Description
levelnumberlevel

Returns

LineStyle

Implementation of

IsolineStylingStrategy.getIsolineStyle


getIsolineVisible

getIsolineVisible(): boolean

Returns if isoline of specified level should be drawn

Returns

boolean

Implementation of

IsolineStylingStrategy.getIsolineVisible


getProperties

getProperties(): OptionsOut

Gets strategy properties

Returns

OptionsOut

strategy properties


getSingleIsolineLevel

getSingleIsolineLevel(): number

Returns single isoline level value

Returns

number


getSingleIsolineStyle

getSingleIsolineStyle(): LineStyle

Gets linestyle for single line

Returns

LineStyle


setCommonIsoLineStyle

setCommonIsoLineStyle(lineStyle, merge?): SingleIsolineStylingStrategy

Sets linestyle for common line

Parameters

Name Type Description
lineStyleTypeline style or options
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

SingleIsolineStylingStrategy

this


setProperties

setProperties(props?): SingleIsolineStylingStrategy

Sets strategy properties

Parameters

Name Type Description
Optional propsOptionsAn object containing the properties to set

Returns

SingleIsolineStylingStrategy

this


setSingleIsoLineStyle

setSingleIsoLineStyle(lineStyle, merge?): SingleIsolineStylingStrategy

Sets linestyle for single line

Parameters

Name Type Description
lineStyleTypeline style or options
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

SingleIsolineStylingStrategy

this


getClassName

Static getClassName(): string

Returns

string