|
||||||||||
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 | |
---|---|
Color |
getColor(Value value)
get the associated color to the value. |
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 colorMethod Detail |
---|
public Color getColor(Value value)
ColorProvider
getColor
in class ColorProvider
value
- double value
public JPanel getLegendPanel()
ColorProvider
getLegendPanel
in class ColorProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |