|
|||||||||
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.
A paint scale that returns shades of gray,this class is immutable.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()
The default constructor. |
|
GrayPaintScale(double lowerBound,
double upperBound)
The constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object. |
double |
getLowerBound()
The lower bound. |
java.awt.Paint |
getPaint(double value)
Returns a Paint instance for the specified value. |
double |
getUpperBound()
The upper bound. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of the object. |
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
-
The lower bound.upperBound
-
The upper bound.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
The value.
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 |