|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--mascoptLib.gui.Editor
A Simple Editor graphs or DiGraph.
MascoptViewer can display Oriented (DiGraph) or non oriented (Graph) graphs.
It can also display Chain or Path.
MascoptViewer allows to add and manage labels on Nodes or Edges (see setNodeLabels, setArcLabels). etc etc
Field Summary |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Editor()
Default Constructor of the Editor Object. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Overwrite the action to perform when some graphic events appear. |
void |
dumpGraph()
Allow the user to write the Graph currently openend in a image file. |
void |
editGraph(mascoptLib.abstractGraph.AbstractGraph g)
Edits a graph in the Editor object. |
void |
insertGraph()
Allow the user to insert a Graph from a File. |
void |
loadGraph()
Allow the user to load a Graph from a file in the editor. |
void |
loadGraph(String fileName)
Allow the user to load a Graph from a file in the editor. |
void |
newDiGraph()
Allow to create a new DiGraph in the editor. |
void |
newGraph()
Allow to create a new Graph in the editor. |
void |
newView()
Create a new view in the editor. |
void |
setArcLabel()
Change the labels of arcs. |
void |
setVertexLabel()
Change the labels of nodes. |
void |
showLabels(boolean show)
Toggle the boolean for display of labels. |
void |
writeGraph()
Allow the user to write the Graph currently openend in a file. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Editor()
Method Detail |
public void editGraph(mascoptLib.abstractGraph.AbstractGraph g)
g
- the graph to editpublic void newView()
public void newGraph()
public void newDiGraph()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- the action.public void insertGraph()
public void writeGraph()
public void loadGraph()
public void loadGraph(String fileName)
public void dumpGraph()
public void showLabels(boolean show)
public void setVertexLabel()
public void setArcLabel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |