Package com.anylogic.engine.analysis
- java.lang.Object
- com.anylogic.engine.analysis.ColorMapping
- All Implemented Interfaces:
Serializable
public class ColorMapping extends Object implements Serializable
Conditional expression which determines the color of the value in
TimeColorChart
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
Constructor | Description |
---|---|
ColorMapping |
Creates the mapping from the value to the color
|
Modifier and Type | Method | Description |
---|---|---|
Color | getColor() |
Returns the resulting color of this mapping
|
ColorMappingOperator | getComparisonOperator() |
Returns the operator of this mapping
|
double | getRightHandSide() |
Returns the value of the rightHandSide
|
public ColorMapping(ColorMappingOperator comparisonOperator, double rightHandSide, Color color)
Creates the mapping from the value to the color
- Parameters:
comparisonOperator
- the operator that will be applied to theTimeColorChart
value and the rightHandSide resulting in either true or falserightHandSide
- the value that will be compared to theTimeColorChart
value using the comparisonOperatorcolor
- the color of the value inTimeColorChart
if the comparison operation resulted in true
public ColorMappingOperator getComparisonOperator()
Returns the operator of this mapping
- Returns:
- comparisonOperator
public double getRightHandSide()
Returns the value of the rightHandSide
- Returns:
- rightHandSide
public Color getColor()
Returns the resulting color of this mapping
- Returns:
- color