public class ChartUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.Object[] |
CATEGORY_DATE |
static java.lang.Object[] |
CATEGORY_STRING
基本图表的默认横轴字符串数据
|
static java.util.HashMap<java.lang.String,java.lang.String> |
CONDITION_NAME |
static java.lang.Object[] |
LONG_CATEGORY_DATE |
static java.lang.Object[] |
LONG_CATEGORY_STRING |
static java.lang.Object[] |
MORE_SECOND_CATE |
static java.lang.Object[][] |
MORE_SECOND_VALUES |
static java.lang.Object[] |
MORE_SERIES |
static java.lang.Object[] |
MORE_THIRD_CATE |
static java.lang.Object[][] |
MORE_THIRD_VALUES |
static java.lang.Object[] |
SECOND_CATE |
static java.lang.Object[] |
STOCK_CATEGORY_DATE |
static java.lang.String[] |
STOCK_CATEGORY_STRING |
static java.lang.Object[] |
THIRD_CATE |
static java.lang.Object[] |
THIRD_SECOND_CATE |
限定符和类型 | 方法和说明 |
---|---|
static java.awt.Color |
brighterWithFactor(java.awt.Color color,
double factor)
带factor参数的brighter方法
|
static void |
buildGenealogyAndCheckSheetExecuteSequence(Calculator calculator,
java.lang.Object value,
java.util.List silList,
java.util.List bilList)
检查表执行顺序
|
static AttrFillStyle |
chartColorMatching2AttrFillStyle(ChartColorMatching chartColorMatching) |
static void |
curveTo(java.awt.geom.GeneralPath appendTo,
java.awt.geom.GeneralPath point)
将points中的点用贝塞尔曲线相连加到appendTo中,如果point中的点少于3个就直线相连
算法参见http://westice.javaeye.com/blog/745173 http://liyiwen.javaeye.com/blog/705489
|
static java.awt.geom.Point2D |
getArc2DCenterAnglePoint(java.awt.Shape shape)
返回扇形弧的中心点
|
static java.awt.geom.GeneralPath |
getBoundsLeftAndRight(java.awt.geom.Rectangle2D rect)
左边和右边的边框
|
static java.awt.geom.GeneralPath |
getBoundsTopAndBottom(java.awt.geom.Rectangle2D rect)
上面和下面的边框
|
static java.awt.geom.GeneralPath |
getBoundsWithoutBottom(java.awt.geom.Rectangle2D rect)
除了底边的边框
|
static java.awt.geom.GeneralPath |
getBoundsWithoutLeft(java.awt.geom.Rectangle2D rect)
除了左边的边框
|
static java.awt.geom.GeneralPath |
getBoundsWithoutRight(java.awt.geom.Rectangle2D rect)
除了右边的边框
|
static java.awt.geom.GeneralPath |
getBoundsWithoutTop(java.awt.geom.Rectangle2D rect)
除了上面的边框
|
static AttrFillStyle |
getColorFillStyleInPre()
返回 服务器端预定义的 图表颜色填充.
|
static java.awt.Color |
getColorFromBaseColor(java.awt.Color baseColor,
double detH,
double detS,
double detB)
从baseColor的一个hsb的差值获取一个新的颜色
|
static java.lang.String |
getColorStyleString(int colorStyle)
把用数字表示的填充方式转成字符串表示的填充方式
|
static java.lang.String |
getConditionName(java.lang.String interName)
返回条件的名字
|
static java.lang.String |
getDefinedColorsByName(java.lang.String fillStyleName) |
static java.lang.String |
getPlotStyleString(int plotStyle)
图表样式转String
|
static java.lang.String |
getPositionString(int position)
把用数字表示的位置转成字符串表示的位置
|
static java.awt.Color |
getShadeEndColor(java.awt.Color baseColor,
float alpha) |
static java.awt.Color |
getShadeStartColor(java.awt.Color baseColor,
float alpha) |
static boolean |
rectangleOverlapped(java.awt.geom.Rectangle2D firstBounds,
java.awt.geom.Rectangle2D secondBounds)
判断两个矩形是否相交
|
static java.lang.Object |
string2FormulaStr(java.lang.String str)
kunsnat: 将以前的string转化为公式可以解析的String
|
static java.awt.Image |
string2Image(java.lang.String string,
TextAttr textAttr)
字符 按照文本属性转为图片.
|
public static final java.util.HashMap<java.lang.String,java.lang.String> CONDITION_NAME
public static final java.lang.Object[] CATEGORY_STRING
public static final java.lang.Object[] MORE_SECOND_CATE
public static final java.lang.Object[] SECOND_CATE
public static final java.lang.Object[] MORE_SERIES
public static final java.lang.Object[][] MORE_SECOND_VALUES
public static final java.lang.Object[] MORE_THIRD_CATE
public static final java.lang.Object[] THIRD_SECOND_CATE
public static final java.lang.Object[] THIRD_CATE
public static final java.lang.Object[][] MORE_THIRD_VALUES
public static final java.lang.Object[] CATEGORY_DATE
public static final java.lang.Object[] LONG_CATEGORY_STRING
public static final java.lang.Object[] LONG_CATEGORY_DATE
public static final java.lang.Object[] STOCK_CATEGORY_DATE
public static final java.lang.String[] STOCK_CATEGORY_STRING
public static final java.awt.Image string2Image(java.lang.String string, TextAttr textAttr)
string
- 要转为图片的字符对象textAttr
- 转为图片时字符所参照的文本属性public static java.awt.geom.Point2D getArc2DCenterAnglePoint(java.awt.Shape shape)
shape
- 要处理的扇形public static AttrFillStyle getColorFillStyleInPre()
public static java.awt.Color brighterWithFactor(java.awt.Color color, double factor)
color
- 基本的颜色factor
- 比例public static java.awt.geom.GeneralPath getBoundsWithoutTop(java.awt.geom.Rectangle2D rect)
rect
- 原来的矩形public static java.awt.geom.GeneralPath getBoundsWithoutBottom(java.awt.geom.Rectangle2D rect)
rect
- 矩形区域public static java.awt.geom.GeneralPath getBoundsWithoutLeft(java.awt.geom.Rectangle2D rect)
rect
- 矩形区域public static java.awt.geom.GeneralPath getBoundsWithoutRight(java.awt.geom.Rectangle2D rect)
rect
- 原来的矩形public static java.awt.geom.GeneralPath getBoundsLeftAndRight(java.awt.geom.Rectangle2D rect)
rect
- 矩形区域public static java.awt.geom.GeneralPath getBoundsTopAndBottom(java.awt.geom.Rectangle2D rect)
rect
- 矩形区域public static void curveTo(java.awt.geom.GeneralPath appendTo, java.awt.geom.GeneralPath point)
appendTo
- 被连接的pathpoint
- 需要添加的pathpublic static java.lang.Object string2FormulaStr(java.lang.String str)
str
- 字符串对象public static boolean rectangleOverlapped(java.awt.geom.Rectangle2D firstBounds, java.awt.geom.Rectangle2D secondBounds)
firstBounds
- 第一个矩形secondBounds
- 第二个矩形public static java.awt.Color getColorFromBaseColor(java.awt.Color baseColor, double detH, double detS, double detB)
baseColor
- 基础颜色detH
- H的差值detS
- S的差值detB
- B的差值public static java.awt.Color getShadeStartColor(java.awt.Color baseColor, float alpha)
public static java.awt.Color getShadeEndColor(java.awt.Color baseColor, float alpha)
public static java.lang.String getPositionString(int position)
position
- 整数表示的位置public static java.lang.String getColorStyleString(int colorStyle)
colorStyle
- 填充方式public static java.lang.String getPlotStyleString(int plotStyle)
plotStyle
- 样式public static java.lang.String getDefinedColorsByName(java.lang.String fillStyleName)
public static AttrFillStyle chartColorMatching2AttrFillStyle(ChartColorMatching chartColorMatching)
public static java.lang.String getConditionName(java.lang.String interName)
interName
- 国际化的名字public static void buildGenealogyAndCheckSheetExecuteSequence(Calculator calculator, java.lang.Object value, java.util.List silList, java.util.List bilList)