|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jtreemap.swing.ColorProvider
net.sf.jtreemap.swing.provider.RedGreenColorProvider
public class RedGreenColorProvider
ColorProvider who, with a max absolute value M, choose the color between values -M and M.

| Constructor Summary | |
|---|---|
RedGreenColorProvider(JTreeMap jTreeMap)
Constructor |
|
| Method Summary | |
|---|---|
java.awt.Color |
getColor(Value value)
get the associated color to the value. |
javax.swing.JPanel |
getLegendPanel()
get a legend JPanel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RedGreenColorProvider(JTreeMap jTreeMap)
jTreeMap - the JTreeMap to color| Method Detail |
|---|
public java.awt.Color getColor(Value value)
ColorProvider
getColor in class ColorProvidervalue - double value
public javax.swing.JPanel getLegendPanel()
ColorProvider
getLegendPanel in class ColorProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||