|
|||||||||
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.
Construct a rectangle by width and height,this class is immutable.Copyright: Copyright (c) 2013
Company:
Field Summary | |
---|---|
static Rectangle |
RECTANGLE_ZERO
A rectangle with width and height are all 0. |
Constructor Summary | |
---|---|
Rectangle(double width,
double height)
Construct a rectangle by width and height. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Override equals method. |
boolean |
equals(java.lang.Object obj)
Override equals method. |
double |
getHeight()
Returns the height of this rectangle. |
double |
getWidth()
Returns the width of this rectangle. |
int |
hashCode()
Override hashCode method. |
java.awt.geom.Rectangle2D |
toRectangle2D()
Construct a java.awt.geom.Rectangle2D;x=0,y=0. |
java.lang.String |
toString()
Override toString method. |
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
The width of this rectangle.height
- double
The height of this rectangle.Method Detail |
---|
public double getWidth()
public double getHeight()
public java.awt.geom.Rectangle2D toRectangle2D()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |