com.ijchart.xychart.render.category.outlier
Class Outlier

java.lang.Object
  extended by com.ijchart.xychart.render.category.outlier.Outlier
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class Outlier
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable, java.lang.Cloneable

Title: IJChart

表示BoxAndWhisker(盒须图)的Outlier对象.

Description: a chart library for the Java(tm) platform.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Constructor Summary
Outlier(double xCoord, double yCoord, double radius)
          由(x,y)坐标和半径长度构造对象.
 
Method Summary
 java.lang.Object clone()
          返回克隆的对象.
 int compareTo(java.lang.Object o)
          比较两个对象的大小.
 boolean equals(java.lang.Object obj)
          测试两个对象是否相等.
 java.awt.geom.Point2D getPoint()
          返回包含outlier圆形的矩形的坐标.
 double getRadius()
          返回圆形的半径.
 double getX()
          返回包含outlier圆形的矩形的x坐标.
 double getY()
          返回包含outlier圆形的矩形的y坐标.
 int hashCode()
          计算对象的hashcode值.
 boolean overlaps(Outlier other)
          判断两个对象是否有重叠.
 void setRadius(double radius)
          设置圆形的半径.
 java.lang.String toString()
          覆盖toString方法.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Outlier

public Outlier(double xCoord,
               double yCoord,
               double radius)
由(x,y)坐标和半径长度构造对象.

Parameters:
xCoord - double x坐标.
yCoord - double y坐标.
radius - double 半径的长度.
Method Detail

getPoint

public java.awt.geom.Point2D getPoint()
返回包含outlier圆形的矩形的坐标.

Returns:
Point2D 包含outlier圆形的矩形的坐标

setPoint

public void setPoint(java.awt.geom.Point2D point)
设置包含outlier圆形的矩形的坐标.

Parameters:
point - Point2D 坐标.

getX

public double getX()
返回包含outlier圆形的矩形的x坐标.

Returns:
double x坐标.

getY

public double getY()
返回包含outlier圆形的矩形的y坐标.

Returns:
double y坐标.

getRadius

public double getRadius()
返回圆形的半径.

Returns:
double 半径.

setRadius

public void setRadius(double radius)
设置圆形的半径.

Parameters:
radius - 半径.

compareTo

public int compareTo(java.lang.Object o)
比较两个对象的大小.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - the Object to be compared.
Returns:
A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

overlaps

public boolean overlaps(Outlier other)
判断两个对象是否有重叠.

Parameters:
other - the other outlier.
Returns:
A boolean indicating whether or not an overlap has occurred.

equals

public boolean equals(java.lang.Object obj)
测试两个对象是否相等.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

hashCode

public int hashCode()
计算对象的hashcode值.

Overrides:
hashCode in class java.lang.Object
Returns:
int 对象的hashcode值.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
返回克隆的对象.

Overrides:
clone in class java.lang.Object
Returns:
object a clone of this instance.
Throws:
java.lang.CloneNotSupportedException - if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.

toString

public java.lang.String toString()
覆盖toString方法.

Overrides:
toString in class java.lang.Object
Returns:
A String representing the outlier.