Interface IndicatorColorScheme
public interface IndicatorColorScheme
Describes colors given to certain indicator values when indicator is drawn using default lines on bottom panel
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IndicatorColorScheme.ColorDescription
static class
IndicatorColorScheme.ColorIntervalResponse
Describes all color changes in given interval -
Method Summary
Modifier and Type Method Description java.lang.String
getColorFor(java.lang.Double value)
Return color that should be used for this valuestatic java.lang.String
getColorFullName(java.lang.String userName, java.lang.Class<?> strategyClass)
IndicatorColorScheme.ColorIntervalResponse
getColorIntervalsList(double valueFrom, double valueTo)
IndicatorColorScheme.ColorDescription[]
getColors()
Return all used colors descriptiondefault java.awt.Color
getDefaultColor()
default java.lang.String
getMainColorName()
-
Method Details
-
getColorFullName
static java.lang.String getColorFullName(java.lang.String userName, java.lang.Class<?> strategyClass) -
getColors
IndicatorColorScheme.ColorDescription[] getColors()Return all used colors description -
getColorFor
java.lang.String getColorFor(java.lang.Double value)Return color that should be used for this value -
getColorIntervalsList
- Parameters:
valueFrom
-valueTo
-- Returns:
- intervals for all colors that should be used for values in interval [valueFrom, valueTo]
-
getMainColorName
default java.lang.String getMainColorName() -
getDefaultColor
default java.awt.Color getDefaultColor()
-