-
public class LinearColor extends ScatterBase
The LinearColor class contains methods for configuring Linear color scale.Note: To create instance use linearColor method.
-
-
Constructor Summary
Constructors Constructor Description LinearColor(String jsChart)
-
Method Summary
Modifier and Type Method Description static LinearColorinstantiate()StringgetJsBase()voidcolorToValue(String color)Converts color to value. voidcolors()Getter for the linear gradient for the linear color scale. LinearColorcolors(String var_args)Setter for the linear gradient for the linear color scale. LinearColorcolors(SolidFill var_args)Setter for the linear gradient for the linear color scale. LinearColorcolors(LinearGradientFill var_args)Setter for the linear gradient for the linear color scale. LinearColorcolors(RadialGradientFill var_args)Setter for the linear gradient for the linear color scale. LinearColorcolors(Array<String> var_args)Setter for the linear gradient for the linear color scale. LinearColorextendDataRange(String var_args)Extends the current input domain with the passed values (if such don't exist in the domain). voidfinishAutoCalc(Boolean silently)Informs the scale that an auto-range calculation started for the chart in past was ended. voidgetType()Returns scale type. voidinverseTransform(Number ratio)Returns tick by its position ratio. voidinverted()Getter for the scale inversion. LinearColorinverted(Boolean enabled)Setter for scale inversion. voidmaximum()Getter for the scale maximum. LinearColormaximum(Number maximum)Setter for the scale maximum. voidminimum()Getter for the scale minimum. LinearColorminimum(Number minimum)Setter for the scale minimum. ScatterTicksminorTicks()Getter for the set of scale minor ticks in terms of data values. LinearColorminorTicks(String ticks)Setter for the set of scale minor ticks in terms of data values. LinearColorminorTicks(Array<String> ticks)Setter for the set of scale minor ticks in terms of data values. voidremoveAllListeners(String type)Removes all listeners from an object. LinearColorstartAutoCalc()Informs scale that an auto-range calculation started for the chart, so it should reset its data range on the first call of this method if needed. ScatterTicksticks()Getter for the set of scale ticks in terms of data values. LinearColorticks(String ticks)Setter for the set of scale ticks in terms of data values. LinearColorticks(Array<String> ticks)Setter for the set of scale ticks in terms of data values. voidtransform(String value)Returns tick position ratio by its name. voidsetOnClickListener(ListenersInterface.OnClickListener listener)voidsetOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)voidunlistenByKey(String key)Removes an event listener which was added with listen() by the key returned by listen() or listenOnce(). voidvalueToColor(Number value)Converts value to color. voidalignMaximum()Getter for a flag if the maximum should be aligned by major ticks interval. LinearColoralignMaximum(Boolean enabled)Getter for a flag if the maximum should be aligned by major ticks interval. voidalignMinimum()Setter for a flag if the minimum should be aligned by major ticks interval. LinearColoralignMinimum(Boolean enabled)Setter for a flag if the minimum should be aligned by major ticks interval. voidmaxTicksCount()Getter for the maximum ticks count. LinearColormaxTicksCount(Number count)Setter for the maximum ticks count. -
Methods inherited from class com.anychart.scales.ScatterBase
alignMaximum, alignMinimum, extendDataRange, instantiate, inverted, maxTicksCount, maximum, minimum, startAutoCalc -
Methods inherited from class com.anychart.scales.Base
instantiate, inverted, startAutoCalc -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LinearColor
LinearColor(String jsChart)
-
-
Method Detail
-
instantiate
static LinearColor instantiate()
-
colorToValue
void colorToValue(String color)
Converts color to value. Returns number ratio by its color.
-
colors
void colors()
Getter for the linear gradient for the linear color scale.
-
colors
LinearColor colors(String var_args)
Setter for the linear gradient for the linear color scale.
-
colors
LinearColor colors(SolidFill var_args)
Setter for the linear gradient for the linear color scale.
-
colors
LinearColor colors(LinearGradientFill var_args)
Setter for the linear gradient for the linear color scale.
-
colors
LinearColor colors(RadialGradientFill var_args)
Setter for the linear gradient for the linear color scale.
-
colors
LinearColor colors(Array<String> var_args)
Setter for the linear gradient for the linear color scale.
-
extendDataRange
LinearColor extendDataRange(String var_args)
Extends the current input domain with the passed values (if such don't exist in the domain).Note: Attention! finishAutoCalc drops all passed values.
-
finishAutoCalc
void finishAutoCalc(Boolean silently)
Informs the scale that an auto-range calculation started for the chart in past was ended.
-
getType
void getType()
Returns scale type.
-
inverseTransform
void inverseTransform(Number ratio)
Returns tick by its position ratio.Note: returns correct values only after finishAutoCalc or chart.draw().
-
inverted
void inverted()
Getter for the scale inversion.
-
inverted
LinearColor inverted(Boolean enabled)
Setter for scale inversion. If the scale is inverted, axes and series go upside-down or right-to-left instead of bottom-to-top and left-to-right.
-
maximum
void maximum()
Getter for the scale maximum.
-
maximum
LinearColor maximum(Number maximum)
Setter for the scale maximum.
-
minimum
void minimum()
Getter for the scale minimum.
-
minimum
LinearColor minimum(Number minimum)
Setter for the scale minimum.
-
minorTicks
ScatterTicks minorTicks()
Getter for the set of scale minor ticks in terms of data values.
-
minorTicks
LinearColor minorTicks(String ticks)
Setter for the set of scale minor ticks in terms of data values.
-
minorTicks
LinearColor minorTicks(Array<String> ticks)
Setter for the set of scale minor ticks in terms of data values.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
startAutoCalc
LinearColor startAutoCalc()
Informs scale that an auto-range calculation started for the chart, so it should reset its data range on the first call of this method if needed.
-
ticks
ScatterTicks ticks()
Getter for the set of scale ticks in terms of data values.
-
ticks
LinearColor ticks(String ticks)
Setter for the set of scale ticks in terms of data values.
-
ticks
LinearColor ticks(Array<String> ticks)
Setter for the set of scale ticks in terms of data values.
-
transform
void transform(String value)
Returns tick position ratio by its name.Note: returns correct values only after finishAutoCalc or chart.draw().
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener)
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen() or listenOnce().
-
valueToColor
void valueToColor(Number value)
Converts value to color. Returns color ratio by its number.
-
alignMaximum
void alignMaximum()
Getter for a flag if the maximum should be aligned by major ticks interval.
-
alignMaximum
LinearColor alignMaximum(Boolean enabled)
Getter for a flag if the maximum should be aligned by major ticks interval.
-
alignMinimum
void alignMinimum()
Setter for a flag if the minimum should be aligned by major ticks interval.
-
alignMinimum
LinearColor alignMinimum(Boolean enabled)
Setter for a flag if the minimum should be aligned by major ticks interval.
-
maxTicksCount
void maxTicksCount()
Getter for the maximum ticks count.
-
maxTicksCount
LinearColor maxTicksCount(Number count)
Setter for the maximum ticks count.
-
-
-
-