org.opennms.secret.model
Class GraphDataLine
java.lang.Object
org.opennms.secret.model.GraphDataElement
org.opennms.secret.model.GraphDataLine
public class GraphDataLine
- extends GraphDataElement
- Author:
- mhuot cgallen
Contains the description of the data to be displayed on a graph
Adds line plot to the graph definition, using the specified color, legend and line width. This method takes exactly the same parameters as RRDTool's LINE directive. The legend allows for the same alignment options as gprint or comment.
Parameters:
sourceName - Graph source name.
color - Line color to be used.
legend - Legend to be printed on the graph.
lineWidth - Width of the line in pixels.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphDataLine
public GraphDataLine(DataSource ds,
Color color,
int lineWidth)
GraphDataLine
public GraphDataLine(DataSource ds)
getColor
public Color getColor()
setColor
public void setColor(Color color)
getLegend
public String getLegend()
- Overrides:
getLegend in class GraphDataElement
setLegend
public void setLegend(String legend)
- Overrides:
setLegend in class GraphDataElement
getLineWidth
public int getLineWidth()
setLineWidth
public void setLineWidth(int lineWidth)
Copyright © 2009. All Rights Reserved.