org.grinvin.help
Class InlineGraphViewer
JPanel
org.grinvin.help.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.
InlineGraphViewer
public InlineGraphViewer()
Creates a new instance of InlineGraphViewer.
InlineGraphViewer
public InlineGraphViewer(String graph,
String backgroundColor,
String size,
String caption)
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.
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.
graph
- a string representing the URI of the graph to be displayed.