|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ijchart.xychart.ui.Rectangle
public class Rectangle
Title: IJChart
Description: a chart library for the Java(tm) platform.
用宽度和调度表示的矩形,此类是不可外部修改的.Copyright: Copyright (c) 2013
Company:
| Field Summary | |
|---|---|
static Rectangle |
RECTANGLE_ZERO
长和宽都为0的矩形区域. |
| Constructor Summary | |
|---|---|
Rectangle(double width,
double height)
由宽度和高度值构造一个矩形. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
覆盖equals方法. |
boolean |
equals(java.lang.Object obj)
覆盖equals方法. |
double |
getHeight()
返回矩形的高度. |
double |
getWidth()
返回矩形的宽度. |
int |
hashCode()
覆盖hashCode方法. |
java.awt.geom.Rectangle2D |
toRectangle2D()
转换为java.awt.geom.Rectangle2D对象,x和y都等于0. |
java.lang.String |
toString()
覆盖toString方法. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Rectangle RECTANGLE_ZERO
| Constructor Detail |
|---|
public Rectangle(double width,
double height)
width - double 矩形的宽度.
height - double 矩形的高度.
| Method Detail |
|---|
public double getWidth()
public double getHeight()
public java.awt.geom.Rectangle2D toRectangle2D()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||