AnyLogic
Expand
Font size
  • 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

Constructor Summary

Constructors 
ColorMapping​(ColorMappingOperator comparisonOperator, double rightHandSide, java.awt.Color color)
Creates the mapping from the value to the color
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods 
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

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ColorMapping

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 the TimeColorChart value and the rightHandSide resulting in either true or false
rightHandSide - the value that will be compared to the TimeColorChart value using the comparisonOperator
color - the color of the value in TimeColorChart if the comparison operation resulted in true

Method Detail

getComparisonOperator

public ColorMappingOperator getComparisonOperator()
Returns the operator of this mapping
Returns:
comparisonOperator

getRightHandSide

public double getRightHandSide()
Returns the value of the rightHandSide
Returns:
rightHandSide

getColor

public java.awt.Color getColor()
Returns the resulting color of this mapping
Returns:
color
How can we improve this article?