|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.util.AnchorUtil
public abstract class AnchorUtil
Title: IJChart
Description: a chart library for the Java(tm) platform.
用于绘制图形选中时的锚点的工具类.Copyright: Copyright (c) 2013
Company:
Constructor Summary | |
---|---|
AnchorUtil()
|
Method Summary | |
---|---|
static void |
drawAnchor(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D drawArea,
double anchorWidth)
绘制矩形图形选中时的锚点. |
static java.awt.geom.Rectangle2D |
getAnchorRect(java.awt.geom.Point2D anchorCenterPoint,
double anchorWidth)
根据点的位置,计算绘制锚点的矩形. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnchorUtil()
Method Detail |
---|
public static void drawAnchor(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D drawArea, double anchorWidth)
g2
- Graphics2D 图形设备(如屏幕或打印机) (不可为null)
drawArea
- Rectangle2D 绘制区域 (不可为null).
anchorWidth
- double 锚点的宽度.
public static java.awt.geom.Rectangle2D getAnchorRect(java.awt.geom.Point2D anchorCenterPoint, double anchorWidth)
anchorCenterPoint
- Point2D 锚点的中心位置 (不可为null).
anchorWidth
- double 锚点的宽度.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |