OverlayColorLegendContinuousDomain
-
class
cee.OverlayColorLegendContinuousDomain() Color legend for all continuous domain scalar mappers.
The OverlayColorLegendContinuousDomain is capable of visualizing all scalar mappers that derives from the ScalarMapperContinuousDomain.
Index
Constructors
Accessors
drawTickMarksOnTopOfLegendBarforceUniformTickMarkSpacinglineColorshowTickMarkLabelstextColortitle
Methods
Constructors
-
cee.OverlayColorLegendContinuousDomain.constructor() - OverlayColorLegendContinuousDomain(resultId: number):
OverlayColorLegendContinuousDomainParameters
resultId: numberReturns:
OverlayColorLegendContinuousDomain
Accessors
-
cee.OverlayColorLegendContinuousDomain.drawTickMarksOnTopOfLegendBar() - get drawTickMarksOnTopOfLegendBar(): boolean
Specify if the tick mark lines should be drawn on top of the color legend or just on the side of it.
Returns: boolean
set drawTickMarksOnTopOfLegendBar(drawOnTop: boolean): voidParameters
drawOnTop: booleanReturns: void
-
cee.OverlayColorLegendContinuousDomain.forceUniformTickMarkSpacing() - get forceUniformTickMarkSpacing(): boolean
Sets that all tick marks should be evenly distributed in the color legend, despite the uneven size of each level.
The default value is true, which will render a color legend where all the levels have the same size or all the continuous custom tick marks with even spacing.
Returns: boolean
set forceUniformTickMarkSpacing(force: boolean): voidParameters
force: booleanReturns: void
-
cee.OverlayColorLegendContinuousDomain.lineColor() - get lineColor():
Color3LikeThe color of the border and tick marks
Returns:
Color3Likeset lineColor(color:Color3Like): voidParameters
color:Color3LikeReturns: void
-
cee.OverlayColorLegendContinuousDomain.showTickMarkLabels() - get showTickMarkLabels(): boolean
Specifies if the tick mark labels (usually the number values) should be shown together with the tick mark lines.
Returns: boolean
set showTickMarkLabels(show: boolean): voidParameters
show: booleanReturns: void
-
cee.OverlayColorLegendContinuousDomain.textColor() - get textColor():
Color3LikeThe color of the legend text
Returns:
Color3Likeset textColor(color:Color3Like): voidParameters
color:Color3LikeReturns: void
-
cee.OverlayColorLegendContinuousDomain.title() - get title(): string
The title of the color legend.
The legend supports multi-line titles. Separate each line with a ‘n’ character
Returns: string
set title(title: string): voidParameters
title: stringReturns: void
Methods
-
cee.OverlayColorLegendContinuousDomain.clearCustomLabels() - clearCustomLabels(): void
Clear the custom labels
Returns: void
-
cee.OverlayColorLegendContinuousDomain.setCustomLabels() - setCustomLabels(labels: string[], relativePositions: number[]): void
Set custom labels that will be drawn at the given relative position on the color legend
Parameters
labels: string[]
relativePositions: number[]
Returns: void
-
cee.OverlayColorLegendContinuousDomain.setTickValues() - setTickValues(values: ArrayLike, scalarMapper:
ScalarMapperContinuousDomain): voidSpecify custom tick marks to use
setupFromScalarMapper will setup default tick marks. Use this method to override this and use custom tick mark values.
Parameters
values: ArrayLike
scalarMapper:
ScalarMapperContinuousDomainReturns: void
-
cee.OverlayColorLegendContinuousDomain.setupFromScalarMapper() - setupFromScalarMapper(scalarMapper:
ScalarMapperContinuousDomain): voidConfigure the color legend from the given scalar mapper
Parameters
scalarMapper:ScalarMapperContinuousDomainReturns: void