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.
Constructors
Accessors
drawTickMarksOnTopOfLegendBar
forceUniformTickMarkSpacing
lineColor
showTickMarkLabels
textColor
title
Constructors
- OverlayColorLegendContinuousDomain.constructor(resultId)
- Arguments:
resultId (
number
) – None
- Return type:
OverlayColorLegendContinuousDomain
Accessors
- cee.drawTickMarksOnTopOfLegendBar()
Specify if the tick mark lines should be drawn on top of the color legend or just on the side of it.
- Return type:
boolean
- cee.drawTickMarksOnTopOfLegendBar(drawOnTop)
- Arguments:
drawOnTop (
boolean
) – None
- Return type:
void
- cee.forceUniformTickMarkSpacing()
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.
- Return type:
boolean
- cee.forceUniformTickMarkSpacing(force)
- Arguments:
force (
boolean
) – None
- Return type:
void
- cee.lineColor()
The color of the border and tick marks
- Return type:
Color3Like
- cee.lineColor(color)
- Arguments:
color (
Color3Like
) – None
- Return type:
void
- cee.showTickMarkLabels()
Specifies if the tick mark labels (usually the number values) should be shown together with the tick mark lines.
- Return type:
boolean
- cee.showTickMarkLabels(show)
- Arguments:
show (
boolean
) – None
- Return type:
void
- cee.textColor()
The color of the legend text
- Return type:
Color3Like
- cee.textColor(color)
- Arguments:
color (
Color3Like
) – None
- Return type:
void
- cee.title()
The title of the color legend.
The legend supports multi-line titles. Separate each line with a ‘\n’ character
- Return type:
string
- cee.title(title)
- Arguments:
title (
string
) – None
- Return type:
void
Methods
clearCustomLabels
- OverlayColorLegendContinuousDomain.clearCustomLabels()
Clear the custom labels
- Return type:
void
setCustomLabels
- OverlayColorLegendContinuousDomain.setCustomLabels(labels, relativePositions)
- Arguments:
labels (
[string]
) – NonerelativePositions (
[number]
) – None
Set custom labels that will be drawn at the given relative position on the color legend
- Return type:
void
setTickValues
- OverlayColorLegendContinuousDomain.setTickValues(values, scalarMapper)
- Arguments:
values (
ArrayLike
) – NonescalarMapper (
ScalarMapperContinuousDomain
) – None
Specify custom tick marks to use
setupFromScalarMapper will setup default tick marks. Use this method to override this and use custom tick mark values.
- Return type:
void
setupFromScalarMapper
- OverlayColorLegendContinuousDomain.setupFromScalarMapper(scalarMapper)
- Arguments:
scalarMapper (
ScalarMapperContinuousDomain
) – None
Configure the color legend from the given scalar mapper
- Return type:
void