|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.visualtopo.graph.UpDownNodeLegend
public class UpDownNodeLegend
Legend for representing node status (up, down).
Creation date: 17 mars 2006
Constructor Summary | |
---|---|
UpDownNodeLegend()
|
Method Summary | |
---|---|
java.awt.Color |
getColor(float value)
Returns the color for the given float value. |
java.awt.Color |
getColor(int index)
Returns the color at specified index. |
java.lang.String |
getName(int index)
Returns the legend associated with the color at specified index. |
int |
getNbColors()
Returns the number of colors. |
void |
setColor(int index,
java.awt.Color color)
Sets the color color at index index |
void |
setName(int index,
java.lang.String name)
Sets the name of the color at index index |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpDownNodeLegend()
Method Detail |
---|
public java.awt.Color getColor(float value)
ColorLegend
getColor
in interface ColorLegend
public java.awt.Color getColor(int index)
ColorLegend
getColor
in interface ColorLegend
public int getNbColors()
ColorLegend
getNbColors
in interface ColorLegend
public java.lang.String getName(int index)
ColorLegend
getName
in interface ColorLegend
public void setColor(int index, java.awt.Color color)
ColorLegend
color
at index index
setColor
in interface ColorLegend
public void setName(int index, java.lang.String name)
ColorLegend
index
setName
in interface ColorLegend
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |