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 classIndicatorColorScheme.ColorDescriptionstatic classIndicatorColorScheme.ColorIntervalResponseDescribes all color changes in given interval -
Method Summary
Modifier and Type Method Description java.lang.StringgetColorFor(java.lang.Double value)Return color that should be used for this valuestatic java.lang.StringgetColorFullName(java.lang.String userName, java.lang.Class<?> strategyClass)IndicatorColorScheme.ColorIntervalResponsegetColorIntervalsList(double valueFrom, double valueTo)IndicatorColorScheme.ColorDescription[]getColors()Return all used colors descriptiondefault java.awt.ColorgetDefaultColor()default java.lang.StringgetMainColorName()
-
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()
-