MCPcopy Create free account
hub / github.com/SPLWare/esProc / getRealDrawPoint

Method getRealDrawPoint

src/main/java/com/scudata/chart/Utils.java:1086–1125  ·  view source on GitHub ↗

由于描述文本位置时,采用的是中心点;而实际绘制文本或者图片时, isImage时,要变换为左上角, 文本时变换为左下角; 因为g在左下角绘制文本, 左上角绘制图形。 @param posDesc 根据中心点描述的文本位置 @param location 文本相对中心点的方位 @param isImage 是否绘制图形,否则按文本算法 @return 图形设备直接输出的实际坐标

(Rectangle posDesc, int location,boolean isImage)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

drawTextMethod · 0.95
drawATextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected