public class ToJSONUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static double |
DEFAULT_GRADIENT_VALUE_MAX |
static double |
DEFAULT_GRADIENT_VALUE_MIN |
static double |
PERCENT |
static java.lang.String |
TRANSPARENT_COLOR |
构造器和说明 |
---|
ToJSONUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addDashLineStyleJSON(JSONObject js,
int lineStyle)
添加线型宽度和虚线属性到js
|
static void |
checkSupportChartAdvancedInteraction(Repository repo) |
static JSONObject |
createMarker(java.lang.String markerType) |
static double |
dealNumberFormula(BaseFormula formula) |
static int |
getAxisLineStyle(int lineStyle) |
static JSONObject |
getDisabledJSON() |
static java.lang.String |
getFormatFunction(java.text.Format format) |
static java.lang.String |
getGanttProcessFormat(java.text.Format format) |
static java.lang.String |
getGanttTimeFormat(java.text.Format format) |
static JSONObject |
getGradientBackgroundJSON(GradientBackground gradientBackground,
float alpha) |
static java.lang.String |
getImageBackground(ImageBackground imageBackground,
Repository repo) |
static java.lang.String |
getImageBackground(java.awt.Image image,
Repository repository) |
static java.lang.String |
getMarkerType(MarkerType markerType) |
static java.lang.String |
getRGBAColorWithColorAndAlpha(java.awt.Color color,
float alpha) |
static java.lang.String |
getStringColor(java.awt.Color color) |
static boolean |
isSupportDynamicChart() |
public static final double PERCENT
public static final java.lang.String TRANSPARENT_COLOR
public static final double DEFAULT_GRADIENT_VALUE_MIN
public static final double DEFAULT_GRADIENT_VALUE_MAX
public static JSONObject createMarker(java.lang.String markerType) throws JSONException
JSONException
public static JSONObject getDisabledJSON() throws JSONException
JSONException
public static java.lang.String getFormatFunction(java.text.Format format)
public static java.lang.String getStringColor(java.awt.Color color)
public static java.lang.String getRGBAColorWithColorAndAlpha(java.awt.Color color, float alpha)
public static int getAxisLineStyle(int lineStyle)
public static void addDashLineStyleJSON(JSONObject js, int lineStyle) throws JSONException
js
- json对象lineStyle
- 线型JSONException
- 抛错public static double dealNumberFormula(BaseFormula formula)
public static java.lang.String getGanttTimeFormat(java.text.Format format)
public static java.lang.String getGanttProcessFormat(java.text.Format format)
public static boolean isSupportDynamicChart()
public static void checkSupportChartAdvancedInteraction(Repository repo)
public static java.lang.String getMarkerType(MarkerType markerType)
public static JSONObject getGradientBackgroundJSON(GradientBackground gradientBackground, float alpha) throws JSONException
JSONException
public static java.lang.String getImageBackground(ImageBackground imageBackground, Repository repo)
public static java.lang.String getImageBackground(java.awt.Image image, Repository repository)