Last updated

API / geotoolkit / contour / strategy / MajorMinorIsolineStylingStrategy / MajorMinorIsolineStylingStrategy

Class: MajorMinorIsolineStylingStrategy

strategy.MajorMinorIsolineStylingStrategy.MajorMinorIsolineStylingStrategy

Major-minor isoline styling strategy

Implements

Table of contents

Constructors
Methods
Css Properties
Name Type Description
majorisolinesvisiblebooleanDeprecated since 4.0, use majorisolinevisible instead
majorisolinevisiblebooleanVisibility of major lines
majorlinestylestringLinestyle for major lines
majorlinestyleLineStyleLinestyle for major lines
majorlinestyle-colorstringColor in CSS form
majorlinestyle-fillstringOptional fill style to be used to fill lines generated with this style
majorlinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
majorlinestyle-fill-colorstringColor in CSS form
majorlinestyle-fill-evenoddmodebooleanEven-odd fill mode
majorlinestyle-fill-fillpatternPatternPattern
majorlinestyle-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
majorlinestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
majorlinestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
majorlinestyle-fill-foregroundstringForeground color
majorlinestyle-fill-patternPatternPattern
majorlinestyle-linecapCapStyleThe line cap style
majorlinestyle-linedashoffsetnumberLine dash offset of dashed line
majorlinestyle-linejoinJoinStyleThe line join style
majorlinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
majorlinestyle-scalablebooleanTrue if width should depend on transformation
majorlinestyle-unitstringOptional unit for the width
majorlinestyle-widthnumber | stringThe line thickness
majorstepnumberStep for major lines
minorisolinesvisiblebooleanDeprecated since 4.0, use minorisolinevisible instead
minorisolinevisiblebooleanVisibility of minor lines
minorlinestylestringLinestyle for minor lines
minorlinestyleLineStyleLinestyle for minor lines
minorstepnumberStep for minor lines

Contents

Constructors

new MajorMinorIsolineStylingStrategy(options)

new MajorMinorIsolineStylingStrategy(options?)

Parameters

Name Type Description
Optional optionsOptionsoptions
Methods

getClassName

getClassName(): string

Returns

string

Implementation of

IsolineStylingStrategy.getClassName


getIsolineStyle

getIsolineStyle(level): LineStyle

Gets style for isoline

Parameters

Name Type Description
levelnumberlevel

Returns

LineStyle

Implementation of

IsolineStylingStrategy.getIsolineStyle


getIsolineVisible

getIsolineVisible(level): boolean

Returns if isoline of specified level should be drawn

Parameters

Name Type Description
levelnumberlevel

Returns

boolean

Implementation of

IsolineStylingStrategy.getIsolineVisible


getMajorIsolinesVisible

getMajorIsolinesVisible(): boolean

Gets show major isolines

Returns

boolean


getMajorLineStyle

getMajorLineStyle(): LineStyle

Gets linestyle for major isoline

Returns

LineStyle


getMajorStep

getMajorStep(): number

Gets major step

Returns

number


getMinorIsolinesVisible

getMinorIsolinesVisible(): boolean

Gets show minor isolines

Returns

boolean


getMinorLineStyle

getMinorLineStyle(): LineStyle

Gets linestyle for major isoline

Returns

LineStyle


getMinorStep

getMinorStep(): number

Gets minor step

Returns

number


getProperties

getProperties(): OptionsOut

Gets strategy properties

Returns

OptionsOut

strategy properties


isMajorLevel

isMajorLevel(i): boolean

Gets if level is major

Parameters

Name Type Description
inumberlevel index

Returns

boolean


isMinorLevel

isMinorLevel(i): boolean

Gets if level is minor

Parameters

Name Type Description
inumberlevel index

Returns

boolean


setMajorIsolinesVisible

setMajorIsolinesVisible(visible): MajorMinorIsolineStylingStrategy

Sets show major isolines

Parameters

Name Type Description
visiblebooleanvisible

Returns

MajorMinorIsolineStylingStrategy


setMajorLineStyle

setMajorLineStyle(lineStyle, merge?): MajorMinorIsolineStylingStrategy

Sets linestyle for major isoline

Parameters

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

Returns

MajorMinorIsolineStylingStrategy

this


setMajorStep

setMajorStep(step): MajorMinorIsolineStylingStrategy

Sets major step

Parameters

Name Type Description
stepnumberstep

Returns

MajorMinorIsolineStylingStrategy


setMinorIsolinesVisible

setMinorIsolinesVisible(visible): MajorMinorIsolineStylingStrategy

Sets show minor isolines

Parameters

Name Type Description
visiblebooleanvisible

Returns

MajorMinorIsolineStylingStrategy


setMinorLineStyle

setMinorLineStyle(lineStyle, merge?): MajorMinorIsolineStylingStrategy

Sets linestyle for minor isoline

Parameters

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

Returns

MajorMinorIsolineStylingStrategy

this


setMinorStep

setMinorStep(step): MajorMinorIsolineStylingStrategy

Sets minor step

Parameters

Name Type Description
stepnumberstep

Returns

MajorMinorIsolineStylingStrategy


setProperties

setProperties(props?): MajorMinorIsolineStylingStrategy

Sets strategy properties

Parameters

Name Type Description
Optional propsOptionsAn object containing the properties to set

Returns

MajorMinorIsolineStylingStrategy

this


getClassName

Static getClassName(): string

Returns

string