public class GaugeGlyphHelper
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static double |
WIDTH_GAP |
构造器和说明 |
---|
GaugeGlyphHelper() |
限定符和类型 | 方法和说明 |
---|---|
static double |
calculateOneLineHeight(FRFont frFont) |
static java.awt.geom.Dimension2D |
calculateTextDimension(java.lang.String text,
FRFont frFont,
int resolution)
计算文本内容所占的高度和宽度(无旋转,竖排等)
纯文本,不包括四周,多行时,为行距+行高
|
protected static void |
drawArc(java.awt.Graphics2D g2d,
java.awt.geom.Point2D centerPoint,
double radius,
double startAngle,
double extent,
java.awt.Color backgroundColor) |
protected static void |
drawArc(java.awt.Graphics2D g2d,
java.awt.geom.Point2D centerPoint,
double radius,
double startAngle,
double extent,
java.awt.Color backgroundColor,
int arcStyle) |
protected static void |
drawArcStroke(java.awt.Graphics2D g2d,
java.awt.geom.Point2D centerPoint,
double innerRadius,
double outerRadius,
double startAngle,
double extent,
java.awt.Color borderColor) |
protected static void |
drawCircle(java.awt.Graphics2D g2d,
java.awt.geom.Point2D centerPoint,
double radius,
java.awt.Color backgroundColor) |
protected static void |
drawCircleShadeStroke(java.awt.Graphics2D g2d,
java.awt.geom.Point2D centerPoint,
double innerRadius,
double outerRadius,
java.awt.Color startColor,
java.awt.Color endColor) |
protected static void |
drawCircleStroke(java.awt.Graphics2D g2d,
java.awt.geom.Point2D centerPoint,
double innerRadius,
double outerRadius,
java.awt.Color borderColor) |
static void |
drawMultiLineText(java.awt.Graphics g,
java.lang.String text,
TextAttr textAttr,
java.awt.geom.Rectangle2D labelBounds,
int resolution) |
static void |
drawStrings(java.awt.Graphics g,
java.lang.String text,
TextAttr textAttr,
java.awt.geom.Rectangle2D bounds,
int resolution) |
static java.awt.geom.GeneralPath |
getArcPath(java.awt.geom.Point2D centerPoint,
double innerRadius,
double outerRadius) |
static java.awt.geom.GeneralPath |
getArcPath(java.awt.geom.Point2D centerPoint,
double innerRadius,
double outerRadius,
double startAngle,
double extent) |
static java.awt.Color |
getColor(java.awt.Color color) |
static java.awt.geom.GeneralPath |
getDiamondPath(double x,
double y,
double size) |
static java.awt.geom.GeneralPath |
getStarPath(double x,
double y,
double size) |
static java.awt.geom.GeneralPath |
getTrianglePath(double x,
double y,
double size) |
static java.lang.String |
value2String(double value,
java.text.Format format)
用于得到坐标轴数值.数据格式后的string
|
public static final double WIDTH_GAP
public static java.awt.geom.Dimension2D calculateTextDimension(java.lang.String text, FRFont frFont, int resolution)
text
- 文本字符frFont
- 文本格式.resolution
- 分辨率public static double calculateOneLineHeight(FRFont frFont)
public static void drawMultiLineText(java.awt.Graphics g, java.lang.String text, TextAttr textAttr, java.awt.geom.Rectangle2D labelBounds, int resolution)
public static void drawStrings(java.awt.Graphics g, java.lang.String text, TextAttr textAttr, java.awt.geom.Rectangle2D bounds, int resolution)
public static java.lang.String value2String(double value, java.text.Format format)
public static java.awt.Color getColor(java.awt.Color color)
protected static void drawCircle(java.awt.Graphics2D g2d, java.awt.geom.Point2D centerPoint, double radius, java.awt.Color backgroundColor)
protected static void drawArc(java.awt.Graphics2D g2d, java.awt.geom.Point2D centerPoint, double radius, double startAngle, double extent, java.awt.Color backgroundColor)
protected static void drawArc(java.awt.Graphics2D g2d, java.awt.geom.Point2D centerPoint, double radius, double startAngle, double extent, java.awt.Color backgroundColor, int arcStyle)
protected static void drawCircleStroke(java.awt.Graphics2D g2d, java.awt.geom.Point2D centerPoint, double innerRadius, double outerRadius, java.awt.Color borderColor)
protected static void drawArcStroke(java.awt.Graphics2D g2d, java.awt.geom.Point2D centerPoint, double innerRadius, double outerRadius, double startAngle, double extent, java.awt.Color borderColor)
protected static void drawCircleShadeStroke(java.awt.Graphics2D g2d, java.awt.geom.Point2D centerPoint, double innerRadius, double outerRadius, java.awt.Color startColor, java.awt.Color endColor)
public static java.awt.geom.GeneralPath getArcPath(java.awt.geom.Point2D centerPoint, double innerRadius, double outerRadius)
public static java.awt.geom.GeneralPath getArcPath(java.awt.geom.Point2D centerPoint, double innerRadius, double outerRadius, double startAngle, double extent)
public static java.awt.geom.GeneralPath getDiamondPath(double x, double y, double size)
public static java.awt.geom.GeneralPath getTrianglePath(double x, double y, double size)
public static java.awt.geom.GeneralPath getStarPath(double x, double y, double size)