org.opennms.web.graph
Class Graph

java.lang.Object
  extended by org.opennms.web.graph.Graph
All Implemented Interfaces:
Comparable<Graph>

public class Graph
extends Object
implements Comparable<Graph>

Graph class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger

Constructor Summary
Graph(PrefabGraph graph, OnmsResource resource, Date start, Date end)
          Constructor for Graph.
 
Method Summary
 int compareTo(Graph other)
          compareTo
 Date getEnd()
          getEnd
 Integer getGraphHeight()
          getGraphHeight
 Integer getGraphWidth()
          getGraphWidth
 String getName()
          getName
 PrefabGraph getPrefabGraph()
          getPrefabGraph
 String getReport()
          getReport
 Collection<RrdGraphAttribute> getRequiredRrGraphdAttributes()
          getRequiredRrGraphdAttributes
 OnmsResource getResource()
          getResource
 Date getStart()
          getStart
 String getTitle()
          getTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph(PrefabGraph graph,
             OnmsResource resource,
             Date start,
             Date end)

Constructor for Graph.

Parameters:
graph - a PrefabGraph object.
resource - a OnmsResource object.
start - a Date object.
end - a Date object.
Method Detail

getResource

public OnmsResource getResource()

getResource

Returns:
a OnmsResource object.

getStart

public Date getStart()

getStart

Returns:
a Date object.

getEnd

public Date getEnd()

getEnd

Returns:
a Date object.

getName

public String getName()

getName

Returns:
a String object.

getTitle

public String getTitle()

getTitle

Returns:
a String object.

compareTo

public int compareTo(Graph other)

compareTo

Specified by:
compareTo in interface Comparable<Graph>
Parameters:
other - a Graph object.
Returns:
a int.

getGraphWidth

public Integer getGraphWidth()

getGraphWidth

Returns:
a Integer object.

getGraphHeight

public Integer getGraphHeight()

getGraphHeight

Returns:
a Integer object.

getPrefabGraph

public PrefabGraph getPrefabGraph()

getPrefabGraph

Returns:
a PrefabGraph object.

getReport

public String getReport()

getReport

Returns:
a String object.

getRequiredRrGraphdAttributes

public Collection<RrdGraphAttribute> getRequiredRrGraphdAttributes()

getRequiredRrGraphdAttributes

Returns:
a Collection object.


Copyright © 2011. All Rights Reserved.