Package com.anylogic.engine.analysis
- java.lang.Object
-
- com.anylogic.engine.analysis.ColorMapping
- All Implemented Interfaces:
java.io.Serializable
public class ColorMapping
extends java.lang.Object
implements java.io.Serializable
Conditional expression which determines the color of the value in
TimeColorChart
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
ColorMapping(ColorMappingOperator comparisonOperator,
double rightHandSide,
java.awt.Color color) |
Creates the mapping from the value to the color
|
Constructor | Description |
---|
java.awt.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
|
Modifier and Type | Method | Description |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ColorMapping(ColorMappingOperator comparisonOperator, double rightHandSide, java.awt.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 java.awt.Color getColor()
Returns the resulting color of this mapping
- Returns:
- color
-
How can we improve this article?
-