org.grinvin.help

Class InlineGraphViewer


public class InlineGraphViewer
extends JPanel

Component for displaying a GraphViewer in a HTML page. The image of the graph is centered horizontally on the page.

Constructor Summary

InlineGraphViewer()
Creates a new instance of InlineGraphViewer.
InlineGraphViewer(String graph, String backgroundColor, String size, String caption)

Method Summary

String
getBackgroundColor()
Returns the background Color
String
getCaption()
String
getDisplaySize()
String
getGraph()
Returns the URI of the displayed graph as a string.
void
setBackgroundColor(String backgroundColor)
Sets the background Color.
void
setCaption(String caption)
void
setDisplaySize(String displaySize)
void
setGraph(String graph)
Sets the graph.

Constructor Details

InlineGraphViewer

public InlineGraphViewer()
Creates a new instance of InlineGraphViewer.

InlineGraphViewer

public InlineGraphViewer(String graph,
                         String backgroundColor,
                         String size,
                         String caption)

Method Details

getBackgroundColor

public String getBackgroundColor()
Returns the background Color

getCaption

public String getCaption()

getDisplaySize

public String getDisplaySize()

getGraph

public String getGraph()
Returns the URI of the displayed graph as a string.

setBackgroundColor

public void setBackgroundColor(String backgroundColor)
Sets the background Color.
Parameters:
backgroundColor - a string containing the six characters representing the color in hexadecimal notation: RRGGBB.

setCaption

public void setCaption(String caption)

setDisplaySize

public void setDisplaySize(String displaySize)

setGraph

public void setGraph(String graph)
Sets the graph.
Parameters:
graph - a string representing the URI of the graph to be displayed.