|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.ui.RectangleEdge
public final class RectangleEdge
Title: IJChart
Description: a chart library for the Java(tm) platform.
用来表示矩形上下左右方向.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static RectangleEdge |
BOTTOM
下边界. |
static RectangleEdge |
LEFT
左边界. |
static RectangleEdge |
RIGHT
右边界. |
static RectangleEdge |
TOP
上边界. |
Method Summary | |
---|---|
static double |
coordinate(java.awt.geom.Rectangle2D rectangle,
RectangleEdge edge)
根据边界值计算X或Y坐标的值. |
boolean |
equals(java.lang.Object o)
覆盖equals方法. |
int |
hashCode()
计算hashcode. |
static boolean |
isLeftOrRight(RectangleEdge edge)
是否是左边界或右边界. |
static boolean |
isTopOrBottom(RectangleEdge edge)
是否是上边界或下边界. |
static RectangleEdge |
opposite(RectangleEdge edge)
返回相反的边界值. |
java.lang.String |
toString()
覆盖toString方法. |
void |
trim(java.awt.geom.Rectangle2D rect,
double len)
根据edge去掉矩形的某一边len长度. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final RectangleEdge TOP
public static final RectangleEdge BOTTOM
public static final RectangleEdge LEFT
public static final RectangleEdge RIGHT
Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public static boolean isTopOrBottom(RectangleEdge edge)
edge
- 边界
public static boolean isLeftOrRight(RectangleEdge edge)
edge
- 边界
public static RectangleEdge opposite(RectangleEdge edge)
edge
- 边界
public static double coordinate(java.awt.geom.Rectangle2D rectangle, RectangleEdge edge)
rectangle
- 矩形 (不可为null).
edge
- 边界值 (不可为null).
public void trim(java.awt.geom.Rectangle2D rect, double len)
rect
- Rectangle2D 矩形 (不可为null).
len
- double 长度,须大于等于0.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the other object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |