/** * Setter for the legend margin in pixels using a single simple values. */ public com.anychart.core.ui.Legend margin(String value1, String value2, Number value3, String value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".margin(%s, %s, %s, %s);", wrapQuotes(value1), wrapQuotes(value2), value3, wrapQuotes(value4))); return this; } /**
/** * Setter for the legend padding setting in pixels using a several value. */ public com.anychart.core.ui.Legend padding(String value1, Number value2, String value3, String value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".padding(%s, %s, %s, %s);", wrapQuotes(value1), value2, wrapQuotes(value3), wrapQuotes(value4))); return this; } /**
/** * Setter for the legend padding setting in pixels using a several value. */ public com.anychart.core.ui.Legend padding(String value1, Number value2, Number value3, String value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".padding(%s, %s, %s, %s);", wrapQuotes(value1), value2, value3, wrapQuotes(value4))); return this; } /**
/** * Setter for the legend padding setting in pixels using a several value. */ public com.anychart.core.ui.Legend padding(Number value1, String value2, Number value3, String value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".padding(%s, %s, %s, %s);", value1, wrapQuotes(value2), value3, wrapQuotes(value4))); return this; } /**
/** * Setter for the legend padding setting in pixels using a several value. */ public com.anychart.core.ui.Legend padding(Number value1, String value2, String value3, Number value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".padding(%s, %s, %s, %s);", value1, wrapQuotes(value2), wrapQuotes(value3), value4)); return this; } /**
/** * Setter for the text font decoration. */ public com.anychart.core.ui.Legend fontDecoration(String value) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".fontDecoration(%s);", wrapQuotes(value))); return this; } /**
/** * Setter for the text font weight.<br/> {@link https://www.w3schools.com/cssref/pr_font_weight.asp} */ public com.anychart.core.ui.Legend fontWeight(String weight) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".fontWeight(%s);", wrapQuotes(weight))); return this; } /**
/** * Setter for the text horizontal align. */ public com.anychart.core.ui.Legend hAlign(String align) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".hAlign(%s);", wrapQuotes(align))); return this; } /**
/** * Setter for the icon size. */ public com.anychart.core.ui.Legend iconSize(String size) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".iconSize(%s);", wrapQuotes(size))); return this; } /**
/** * Setter for the maximum height. */ public com.anychart.core.ui.Legend maxHeight(String height) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".maxHeight(%s);", wrapQuotes(height))); return this; } /**
/** * Setter for legend position setting. */ public com.anychart.core.ui.Legend position(String position) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".position(%s);", wrapQuotes(position))); return this; } /**
/** * Setter for the text appearance settings. */ public com.anychart.core.ui.Legend textSettings(String name, Number settings) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".textSettings(%s, %s);", wrapQuotes(name), settings)); return this; } /**
/** * Setter for the text appearance settings. */ public com.anychart.core.ui.Legend textSettings(String name, Boolean settings) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".textSettings(%s, %s);", wrapQuotes(name), settings)); return this; } /**
/** * Removes an event listener which was added with listen() by the key returned by listen() or listenOnce(). */ public void unlistenByKey(String key) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".unlistenByKey(%s);", wrapQuotes(key))); } /**
/** * Setter for the text font size. */ public com.anychart.core.ui.Legend fontSize(String size) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".fontSize(%s);", wrapQuotes(size))); return this; } /**
/** * Setter for items layout. */ public com.anychart.core.ui.Legend itemsLayout(String layout) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".itemsLayout(%s);", wrapQuotes(layout))); return this; } /**
/** * Setter for items source mode. */ public com.anychart.core.ui.Legend itemsSourceMode(String mode) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".itemsSourceMode(%s);", wrapQuotes(mode))); return this; } /**
/** * Setter for the maximum width. */ public com.anychart.core.ui.Legend maxWidth(String width) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".maxWidth(%s);", wrapQuotes(width))); return this; } /**
/** * Setter for legend tooltip. */ public com.anychart.core.ui.Legend tooltip(String settings) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".tooltip(%s);", wrapQuotes(settings))); return this; } /**
/** * Setter for the text vertical align. */ public com.anychart.core.ui.Legend vAlign(String align) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".vAlign(%s);", wrapQuotes(align))); return this; } /**