|
||||||||||
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.DefaultLinkLoadLegend
public class DefaultLinkLoadLegend
Legend representing a percentage of load in 12 colors.
Creation date: 16 mars 2006
Constructor Summary | |
---|---|
DefaultLinkLoadLegend()
|
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.awt.Color |
getErrorColor()
|
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 |
setErrorColor(java.awt.Color color)
|
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 DefaultLinkLoadLegend()
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 java.awt.Color getErrorColor()
public void setErrorColor(java.awt.Color color)
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 |