org.opennms.secret.model
Class GraphDataLine

java.lang.Object
  extended by org.opennms.secret.model.GraphDataElement
      extended by 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.

Constructor Summary
GraphDataLine(DataSource ds)
           
GraphDataLine(DataSource ds, Color color, int lineWidth)
           
 
Method Summary
 Color getColor()
           
 String getLegend()
           
 int getLineWidth()
           
 void setColor(Color color)
           
 void setLegend(String legend)
           
 void setLineWidth(int lineWidth)
           
 
Methods inherited from class org.opennms.secret.model.GraphDataElement
getDataSource, getUniqueID, setDataSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphDataLine

public GraphDataLine(DataSource ds,
                     Color color,
                     int lineWidth)

GraphDataLine

public GraphDataLine(DataSource ds)
Method Detail

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.