jhplot
Class HMedusa
- java.lang.Object
-
- jhplot.HMedusa
-
public class HMedusa extends java.lang.Object
A Medusa frame to display and work with interactive graphs.
-
-
Constructor Summary
Constructors Constructor and Description HMedusa()
Initialize the Medusa graph builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
add(Graph g)
Add a graph to the editor.void
clear()
Clear the canvas (and dispose all graphs)void
doc()
Show online documentation.MedusaSimplerFrame
getFrame()
Return medusa frameGraph
getGraph()
Get a graph.EditableGraphPanel
getPanel()
Return medusa panel with the graph.void
loadFile(java.lang.String file)
LOad a file with the graph.void
quit()
Quit the canvas (and dispose all components).void
setGraph(Graph g)
Add a graph to the editor.void
update()
Update the canvas.void
visible()
Set the canvas frame visible.void
visible(boolean vs)
Set the canvas frame visible.
-
-
-
Method Detail
-
visible
public void visible(boolean vs)
Set the canvas frame visible.- Parameters:
vs
- (boolean) true: visible, false: not visible
-
visible
public void visible()
Set the canvas frame visible.
-
quit
public void quit()
Quit the canvas (and dispose all components).
-
clear
public void clear()
Clear the canvas (and dispose all graphs)
-
update
public void update()
Update the canvas.
-
add
public void add(Graph g)
Add a graph to the editor.- Parameters:
graph
- graph to be added.
-
setGraph
public void setGraph(Graph g)
Add a graph to the editor.- Parameters:
graph
- graph to be added.
-
getGraph
public Graph getGraph()
Get a graph.- Returns:
- current graph
-
getFrame
public MedusaSimplerFrame getFrame()
Return medusa frame- Returns:
- frame;
-
getPanel
public EditableGraphPanel getPanel()
Return medusa panel with the graph.- Returns:
- panel
-
loadFile
public void loadFile(java.lang.String file)
LOad a file with the graph.- Parameters:
file
- file with the graph.
-
doc
public void doc()
Show online documentation.
-
-
DMelt 3.0 © DataMelt by jWork.ORG