public static com.anychart.charts.Gantt ganttProject() { return new com.anychart.charts.Gantt("anychart.ganttProject()"); }
/** * */ public com.anychart.data.Tree data(List<DataEntry> data, String fillMethod) { return new com.anychart.data.Tree(String.format(Locale.US, jsBase + ".data(%s, %s)", arrayToString(data), wrapQuotes(fillMethod))); } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.Gantt rowHoverFill(String[] keys, Number angle, String mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".rowHoverFill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, wrapQuotes(mode), opacity)); return this; } /**
/** * Setter for element bounds settings. */ public com.anychart.charts.Gantt bounds(String x, String y, String width, String height) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".bounds(%s, %s, %s, %s);", wrapQuotes(x), wrapQuotes(y), wrapQuotes(width), wrapQuotes(height))); return this; } /**
/** * Setter for fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.Gantt selectMarqueeFill(String[] color) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeFill(%s);", arrayToStringWrapQuotes(color))); return this; } /**
/** * */ public com.anychart.data.Tree data(List<DataEntry> data) { return new com.anychart.data.Tree(String.format(Locale.US, jsBase + ".data(%s)", arrayToString(data))); } /**
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_chart_common); AnyChartView anyChartView = findViewById(R.id.any_chart_view); anyChartView.setProgressBar(findViewById(R.id.progress_bar)); Gantt gantt = AnyChart.ganttProject(); gantt.splitterPosition(320d); anyChartView.setChart(gantt); }
/** * Opens Facebook sharing dialog. */ public void shareWithFacebook(String captionOrOptions, String link, String name, String description) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".shareWithFacebook(%s, %s, %s, %s);", wrapQuotes(captionOrOptions), wrapQuotes(link), wrapQuotes(name), wrapQuotes(description))); } /**
/** * Setter for the chart margin in pixels using a single complex object. */ public com.anychart.charts.Gantt margin(String[] margin) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".margin(%s);", arrayToStringWrapQuotes(margin))); return this; } /**
/** * */ public com.anychart.data.Tree data(List<DataEntry> data, com.anychart.enums.TreeFillingMethod fillMethod) { return new com.anychart.data.Tree(String.format(Locale.US, jsBase + ".data(%s, %s)", arrayToString(data), (fillMethod != null) ? fillMethod.getJsBase() : null)); } /**
/** * Setter for the select marquee stroke. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs} */ public com.anychart.charts.Gantt selectMarqueeStroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeStroke(%s, %s, %s, %s, %s);", wrapQuotes(color), thickness, wrapQuotes(dashpattern), wrapQuotes(lineJoin), wrapQuotes(lineCap))); return this; } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.Gantt rowSelectedFill(String[] keys, Number angle, Boolean mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".rowSelectedFill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, mode, opacity)); return this; } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.Gantt selectMarqueeFill(String[] keys, Number angle, String mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeFill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, wrapQuotes(mode), opacity)); return this; } /**
public static Gantt instantiate() { return new Gantt("new anychart.charts.gantt()"); }
/** * Setter for element bounds settings. */ public com.anychart.charts.Gantt bounds(String x, String y, Number width, String height) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".bounds(%s, %s, %s, %s);", wrapQuotes(x), wrapQuotes(y), width, wrapQuotes(height))); return this; } /**
/** * Setter for the chart paddings in pixels using a single value. */ public com.anychart.charts.Gantt padding(String[] padding) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".padding(%s);", arrayToStringWrapQuotes(padding))); return this; } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.Gantt rowSelectedFill(String[] keys, Number angle, String mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".rowSelectedFill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, wrapQuotes(mode), opacity)); return this; } /**
public static com.anychart.charts.Gantt ganttResource() { return new com.anychart.charts.Gantt("anychart.ganttResource()"); }
/** * Setter for the chart paddings in pixels using several numbers. */ public com.anychart.charts.Gantt padding(String value1, String value2, String value3, Number value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".padding(%s, %s, %s, %s);", wrapQuotes(value1), wrapQuotes(value2), wrapQuotes(value3), value4)); return this; } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.Gantt selectMarqueeFill(String[] keys, Number angle, Boolean mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeFill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, mode, opacity)); return this; } /**