API / geotoolkit / contour / strategy / MajorMinorIsolineStylingStrategy / MajorMinorIsolineStylingStrategy
strategy.MajorMinorIsolineStylingStrategy.MajorMinorIsolineStylingStrategy
Major-minor isoline styling strategy
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
majorisolinesvisible | boolean | Deprecated since 4.0, use majorisolinevisible instead |
majorisolinevisible | boolean | Visibility of major lines |
majorlinestyle | string | Linestyle for major lines |
majorlinestyle | LineStyle | Linestyle for major lines |
majorlinestyle-color | string | Color in CSS form |
majorlinestyle-fill | string | Optional fill style to be used to fill lines generated with this style |
majorlinestyle-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
majorlinestyle-fill-color | string | Color in CSS form |
majorlinestyle-fill-evenoddmode | boolean | Even-odd fill mode |
majorlinestyle-fill-fillpattern | Pattern | Pattern |
majorlinestyle-fill-fillpattern-containername | string | An 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-patternname | string | Name of this pattern for indexing |
majorlinestyle-fill-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
majorlinestyle-fill-foreground | string | Foreground color |
majorlinestyle-fill-pattern | Pattern | Pattern |
majorlinestyle-linecap | CapStyle | The line cap style |
majorlinestyle-linedashoffset | number | Line dash offset of dashed line |
majorlinestyle-linejoin | JoinStyle | The line join style |
majorlinestyle-pixelsnapmode | boolean | Pixel Snap Mode, default( |
majorlinestyle-scalable | boolean | True if width should depend on transformation |
majorlinestyle-unit | string | Optional unit for the width |
majorlinestyle-width | number | string | The line thickness |
majorstep | number | Step for major lines |
minorisolinesvisible | boolean | Deprecated since 4.0, use minorisolinevisible instead |
minorisolinevisible | boolean | Visibility of minor lines |
minorlinestyle | string | Linestyle for minor lines |
minorlinestyle | LineStyle | Linestyle for minor lines |
minorstep | number | Step for minor lines |
Constructors
• new MajorMinorIsolineStylingStrategy(options?)
| Name | Type | Description |
|---|---|---|
Optional options | Options | options |
Methods
▸ getClassName(): string
string
IsolineStylingStrategy.getClassName
▸ getIsolineStyle(level): LineStyle
Gets style for isoline
| Name | Type | Description |
|---|---|---|
level | number | level |
IsolineStylingStrategy.getIsolineStyle
▸ getIsolineVisible(level): boolean
Returns if isoline of specified level should be drawn
| Name | Type | Description |
|---|---|---|
level | number | level |
boolean
IsolineStylingStrategy.getIsolineVisible
▸ getMajorIsolinesVisible(): boolean
Gets show major isolines
boolean
▸ getMajorLineStyle(): LineStyle
Gets linestyle for major isoline
▸ getMajorStep(): number
Gets major step
number
▸ getMinorIsolinesVisible(): boolean
Gets show minor isolines
boolean
▸ getMinorLineStyle(): LineStyle
Gets linestyle for major isoline
▸ getMinorStep(): number
Gets minor step
number
▸ getProperties(): OptionsOut
Gets strategy properties
strategy properties
▸ isMajorLevel(i): boolean
Gets if level is major
| Name | Type | Description |
|---|---|---|
i | number | level index |
boolean
▸ isMinorLevel(i): boolean
Gets if level is minor
| Name | Type | Description |
|---|---|---|
i | number | level index |
boolean
▸ setMajorIsolinesVisible(visible): MajorMinorIsolineStylingStrategy
Sets show major isolines
| Name | Type | Description |
|---|---|---|
visible | boolean | visible |
MajorMinorIsolineStylingStrategy
▸ setMajorLineStyle(lineStyle, merge?): MajorMinorIsolineStylingStrategy
Sets linestyle for major isoline
| Name | Type | Description |
|---|---|---|
lineStyle | Type | major style |
Optional merge | boolean | true if you want to merge lineStyle with existing attribute, false by default |
MajorMinorIsolineStylingStrategy
this
▸ setMajorStep(step): MajorMinorIsolineStylingStrategy
Sets major step
| Name | Type | Description |
|---|---|---|
step | number | step |
MajorMinorIsolineStylingStrategy
▸ setMinorIsolinesVisible(visible): MajorMinorIsolineStylingStrategy
Sets show minor isolines
| Name | Type | Description |
|---|---|---|
visible | boolean | visible |
MajorMinorIsolineStylingStrategy
▸ setMinorLineStyle(lineStyle, merge?): MajorMinorIsolineStylingStrategy
Sets linestyle for minor isoline
| Name | Type | Description |
|---|---|---|
lineStyle | Type | minor style |
Optional merge | boolean | true if you want to merge lineStyle with existing attribute, false by default |
MajorMinorIsolineStylingStrategy
this
▸ setMinorStep(step): MajorMinorIsolineStylingStrategy
Sets minor step
| Name | Type | Description |
|---|---|---|
step | number | step |
MajorMinorIsolineStylingStrategy
▸ setProperties(props?): MajorMinorIsolineStylingStrategy
Sets strategy properties
| Name | Type | Description |
|---|---|---|
Optional props | Options | An object containing the properties to set |
MajorMinorIsolineStylingStrategy
this
▸ Static getClassName(): string
string