|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ijchart.xychart.render.paint.GrayPaintScale
public class GrayPaintScale
Title: IJChart
Description: a chart library for the Java(tm) platform.
灰度梯度,此类在外部是不可以修改的.Copyright: Copyright (c) 2013
Company:
Field Summary |
---|
Fields inherited from interface com.ijchart.xychart.render.paint.IPaintScale |
---|
DEFAULT_LOWER_BOUND, DEFAULT_UPPER_BOUND |
Constructor Summary | |
---|---|
GrayPaintScale()
缺省的构造器. |
|
GrayPaintScale(double lowerBound,
double upperBound)
构造器. |
Method Summary | |
---|---|
java.lang.Object |
clone()
返回克隆的对象. |
boolean |
equals(java.lang.Object obj)
测试两个对象是否相等. |
double |
getLowerBound()
返回最小边界值. |
java.awt.Paint |
getPaint(double value)
返回某个值对应的paint对象. |
double |
getUpperBound()
返回最大边界值. |
int |
hashCode()
计算对象的hashcode值. |
java.lang.String |
toString()
覆盖toString方法. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GrayPaintScale()
public GrayPaintScale(double lowerBound, double upperBound)
lowerBound
- 最小边界值.
upperBound
- 最大边界值.
Method Detail |
---|
public double getLowerBound()
getLowerBound
in interface IPaintScale
public double getUpperBound()
getUpperBound
in interface IPaintScale
public java.awt.Paint getPaint(double value)
getPaint
in interface IPaintScale
value
- double 数字值.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null permitted).
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
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.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |