jhplot
Class HMedusa
- java.lang.Object
-
- jhplot.HMedusa
-
public class HMedusa extends java.lang.ObjectA 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 voidadd(Graph g)Add a graph to the editor.voidclear()Clear the canvas (and dispose all graphs)voiddoc()Show online documentation.MedusaSimplerFramegetFrame()Return medusa frameGraphgetGraph()Get a graph.EditableGraphPanelgetPanel()Return medusa panel with the graph.voidloadFile(java.lang.String file)LOad a file with the graph.voidquit()Quit the canvas (and dispose all components).voidsetGraph(Graph g)Add a graph to the editor.voidupdate()Update the canvas.voidvisible()Set the canvas frame visible.voidvisible(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