public class CreateChartPanelFunction extends AbstractFunction
LOGGER, TYPE_BIGDECIMAL, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_NULL, TYPE_STRING
GROUP_AGGREGATE, GROUP_BOOLEAN, GROUP_CONVERSION, GROUP_DATETIME, GROUP_NUMERIC, GROUP_OGC, GROUP_OTHER, GROUP_PROGRAMMING, GROUP_STRING
Constructor and Description |
---|
CreateChartPanelFunction() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowConstantFolding()
Returns true if the function always returns the same value for
the same parameters.
|
java.lang.Object |
call(Interpreter interpreter,
java.lang.Object[] args) |
static java.awt.image.BufferedImage |
createChartImage(JsonObject json,
JFreeChart chart) |
static JFreeChart |
createGraph(JsonObject json,
java.lang.Iterable<GetItemByKey> dataset) |
static ChartPanel |
createGraphPanel(JsonObject json,
JFreeChart graph) |
static java.lang.Iterable<GetItemByKey> |
getIterable(java.lang.Object dataset) |
addAlias, aliases, argc, call, checkDoubleValue, checkFloatValue, description, descriptionArgs, getBigDecimal, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getComparable, getComparable, getDate, getDate, getDouble, getDouble, getFile, getFile, getFloat, getFloat, getFullDescription, getInt, getInt, getInt, getJsonArray, getJsonArray, getJsonObject, getJsonObject, getJsonStructure, getJsonStructure, getList, getLocalDateTime, getLocalDateTime, getLong, getLong, getObject, getObject, getStr, getStr, getType, getURL, group, isHidden, isNull, isOperator, isSQLCompatible, name, returnType, template, toBoolean, toString, toString, toValue, useArgumentsInsteadObjects
public boolean allowConstantFolding()
Function
allowConstantFolding
in interface Function
allowConstantFolding
in class AbstractFunction
public java.lang.Object call(Interpreter interpreter, java.lang.Object[] args) throws java.lang.Exception
java.lang.Exception
public static java.lang.Iterable<GetItemByKey> getIterable(java.lang.Object dataset)
public static ChartPanel createGraphPanel(JsonObject json, JFreeChart graph)
public static java.awt.image.BufferedImage createChartImage(JsonObject json, JFreeChart chart)
public static JFreeChart createGraph(JsonObject json, java.lang.Iterable<GetItemByKey> dataset)