public class VanChartAttrHelper
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static FRFont |
DEFAULT_AXIS_TITLE_LABLE_FONT |
static FRFont |
DEFAULT_LABEL_FONT |
static java.lang.String |
LEFT_BRACKET |
static java.lang.String |
NEWLINE |
static double |
PERCENT |
static java.text.DecimalFormat |
PERCENT_FORMAT |
static java.lang.String |
RADAR_X_AXIS_PREFIX |
static java.lang.String |
RADAR_Y_AXIS_PREFIX |
static java.lang.String |
RIGHT_BRACKET |
static java.lang.String |
STRING_PERCENT |
static java.lang.String |
TRANSPARENT_COLOR |
static java.text.DecimalFormat |
VALUE_FORMAT |
static java.lang.String |
X_AXIS_PREFIX |
static java.lang.String |
Y_AXIS_PREFIX |
构造器和说明 |
---|
VanChartAttrHelper() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addDashLineStyleJSON(JSONObject js,
int lineStyle)
已过时。
|
static void |
addImageAsEmbWithID(java.lang.String id,
java.lang.String sessionID,
java.lang.String base64Image)
将图片做为内部资源添加
|
static double |
dealNumberFormula(BaseFormula formula)
已过时。
|
static int |
getAxisLineStyle(int lineStyle)
已过时。
|
static java.lang.String |
getCateAndSeries(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getCateAndValue(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getCateAndValueAndPercent(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getCategoryName(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getCommonFirstAndSecond(AttrTooltipContent tooltipContent,
java.lang.String first,
java.lang.String second) |
static java.lang.String |
getCommonFirstAndThirdAndForth(AttrTooltipContent tooltipContent,
java.lang.String first,
java.lang.String third,
double fourth) |
static java.lang.String |
getCommonSecond(AttrTooltipContent tooltipContent,
java.lang.String second) |
static java.lang.String |
getCommonThirdAndFourth(AttrTooltipContent tooltipContent,
java.lang.String third,
double fourth) |
static java.lang.String |
getCustomImageURL(java.lang.String geourl,
java.lang.String sesstionID,
javax.servlet.http.HttpServletRequest req) |
static JSONObject |
getDataSheetJSONObject(java.awt.Color borderColor,
int borderStyle,
FRFont font,
java.text.Format format,
Repository repo) |
static MarkerType |
getDefaultMarkerType(int seriesIndex) |
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 |
getGEOJSONObject(java.lang.String geoURL,
Repository repo) |
static JSONObject |
getGradientBackgroundJSON(GradientBackground gradientBackground,
float alpha)
已过时。
|
static java.lang.String |
getIntervalLegendFormatFunction(java.text.Format format) |
static java.lang.String |
getLabelText(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getLabelWithOutCategory(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static JSONArray |
getLonLatArray(double longitude,
double latitude) |
static java.lang.String |
getMapAreaName(AttrTooltipContent tooltipContent,
VanChartDataPoint dataPoint) |
static java.lang.String |
getMapLabelText(AttrTooltipContent tooltipContent,
VanChartDataPoint dataPoint) |
static java.lang.String |
getMapSeriesNameAndValueAndPercent(AttrTooltipContent tooltipContent,
VanChartDataPoint dataPoint) |
static java.lang.String |
getMarkerType(MarkerType markerType)
已过时。
|
static Background |
getNotNullBackground(Background background) |
static java.lang.String |
getPercent(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getPlotStyle(int plotStyle) |
static java.lang.String |
getRGBAColorWithColorAndAlpha(java.awt.Color color,
float alpha)
已过时。
|
static java.lang.String |
getScatterLabelText(AttrTooltipContent tooltipContent,
VanChartDataPoint dataPoint) |
static java.lang.String |
getScatterSeries(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getScatterXAndYAndSize(AttrTooltipContent tooltipContent,
VanChartDataPoint dataPoint) |
static java.lang.String |
getSeries(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getSlotCateAndValue(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getStringColor(java.awt.Color color)
已过时。
|
static java.lang.String |
getStringWithFormat(java.lang.String originalString,
java.text.Format format) |
static JSONObject |
getTextDisabledJSON(java.lang.String text) |
static long |
getTimeTypeMilliSecond(TimeType timeType) |
static long |
getTimeTypeMilliSecond4MinMax(TimeType timeType) |
static long |
getTimeTypeSecond(TimeType timeType) |
static java.lang.String |
getTreeMapLabelText(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getValueAndPercent(AttrTooltipContent tooltipContent,
DataPoint dataPoint) |
static java.lang.String |
getValueStringWithFormat(double value,
java.text.Format format) |
static boolean |
isDefaultAxis(java.lang.String name)
是否是默认坐标轴
|
static boolean |
isXAxis(java.lang.String name)
是否是X坐标轴
|
static void |
logMapJSONNotFound(java.lang.String geoURL) |
static double |
roundValue(double value,
boolean isMax) |
static double[] |
roundValueWithDivNum(double minValue,
double maxValue,
int num) |
public static final double PERCENT
public static final java.lang.String STRING_PERCENT
public static final java.text.DecimalFormat PERCENT_FORMAT
public static final java.text.DecimalFormat VALUE_FORMAT
public static final java.lang.String NEWLINE
public static final java.lang.String LEFT_BRACKET
public static final java.lang.String RIGHT_BRACKET
public static final FRFont DEFAULT_LABEL_FONT
public static final FRFont DEFAULT_AXIS_TITLE_LABLE_FONT
public static final java.lang.String TRANSPARENT_COLOR
public static final java.lang.String X_AXIS_PREFIX
public static final java.lang.String Y_AXIS_PREFIX
public static final java.lang.String RADAR_X_AXIS_PREFIX
public static final java.lang.String RADAR_Y_AXIS_PREFIX
public static JSONObject getDisabledJSON() throws JSONException
JSONException
public static JSONObject getTextDisabledJSON(java.lang.String text) throws JSONException
JSONException
public static Background getNotNullBackground(Background background)
@Deprecated public static java.lang.String getStringColor(java.awt.Color color)
@Deprecated public static java.lang.String getRGBAColorWithColorAndAlpha(java.awt.Color color, float alpha)
@Deprecated public static double dealNumberFormula(BaseFormula formula)
@Deprecated public static JSONObject getGradientBackgroundJSON(GradientBackground gradientBackground, float alpha) throws JSONException
JSONException
public static void addImageAsEmbWithID(java.lang.String id, java.lang.String sessionID, java.lang.String base64Image)
base64Image
- 被添加做内部资源的图片对象@Deprecated public static int getAxisLineStyle(int lineStyle)
@Deprecated public static void addDashLineStyleJSON(JSONObject js, int lineStyle) throws JSONException
js
- json对象lineStyle
- 线型JSONException
- 抛错public static java.lang.String getPlotStyle(int plotStyle)
public static java.lang.String getScatterLabelText(AttrTooltipContent tooltipContent, VanChartDataPoint dataPoint)
public static java.lang.String getScatterSeries(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getScatterXAndYAndSize(AttrTooltipContent tooltipContent, VanChartDataPoint dataPoint)
public static java.lang.String getMapLabelText(AttrTooltipContent tooltipContent, VanChartDataPoint dataPoint)
public static java.lang.String getLabelText(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getTreeMapLabelText(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getMapAreaName(AttrTooltipContent tooltipContent, VanChartDataPoint dataPoint)
public static java.lang.String getMapSeriesNameAndValueAndPercent(AttrTooltipContent tooltipContent, VanChartDataPoint dataPoint)
public static java.lang.String getCateAndSeries(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getValueAndPercent(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getSeries(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getCateAndValueAndPercent(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getCommonSecond(AttrTooltipContent tooltipContent, java.lang.String second)
public static java.lang.String getCommonFirstAndSecond(AttrTooltipContent tooltipContent, java.lang.String first, java.lang.String second)
public static java.lang.String getCommonFirstAndThirdAndForth(AttrTooltipContent tooltipContent, java.lang.String first, java.lang.String third, double fourth)
public static java.lang.String getCommonThirdAndFourth(AttrTooltipContent tooltipContent, java.lang.String third, double fourth)
public static java.lang.String getCategoryName(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getPercent(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getLabelWithOutCategory(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getCateAndValue(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getSlotCateAndValue(AttrTooltipContent tooltipContent, DataPoint dataPoint)
public static java.lang.String getValueStringWithFormat(double value, java.text.Format format)
public static java.lang.String getStringWithFormat(java.lang.String originalString, java.text.Format format)
public static boolean isXAxis(java.lang.String name)
name
- 坐标轴名称public static boolean isDefaultAxis(java.lang.String name)
name
- 坐标轴名称public static long getTimeTypeSecond(TimeType timeType)
public static long getTimeTypeMilliSecond(TimeType timeType)
public static long getTimeTypeMilliSecond4MinMax(TimeType timeType)
@Deprecated public static java.lang.String getMarkerType(MarkerType markerType)
public static MarkerType getDefaultMarkerType(int seriesIndex)
@Deprecated public static java.lang.String getFormatFunction(java.text.Format format)
public static java.lang.String getIntervalLegendFormatFunction(java.text.Format format)
@Deprecated public static java.lang.String getGanttTimeFormat(java.text.Format format)
@Deprecated public static java.lang.String getGanttProcessFormat(java.text.Format format)
public static double roundValue(double value, boolean isMax)
public static double[] roundValueWithDivNum(double minValue, double maxValue, int num)
public static JSONArray getLonLatArray(double longitude, double latitude) throws JSONException
JSONException
public static java.lang.String getCustomImageURL(java.lang.String geourl, java.lang.String sesstionID, javax.servlet.http.HttpServletRequest req) throws JSONException
JSONException
public static JSONObject getGEOJSONObject(java.lang.String geoURL, Repository repo) throws JSONException
JSONException
public static void logMapJSONNotFound(java.lang.String geoURL)
public static JSONObject getDataSheetJSONObject(java.awt.Color borderColor, int borderStyle, FRFont font, java.text.Format format, Repository repo) throws JSONException
JSONException