Pandora
Class ExportWindow
- public class ExportWindow
- extends javax.swing.JDialog
- This class is responsible for exporting a graph generated by the analyzer. Currently it can export a graph in .pnd ( pandora file format ), .net ( pajek file format ) and .odf ( otter file format ).
- Version:
- 0.1
- Author:
- Foudalis Ilias
ExportWindow
public ExportWindow(java.awt.Container parent,
java.util.Vector nodes,
java.util.Vector edges)
- Class constructor.
- Parameters:
parent
- Container : The parent container is GeneratorFrame.
nodes
- Vector : Vector that holds the nodes of the graph.
edges
- Vector : Vector that holds the edges of the graph.
jbInit
private void jbInit()
- Method automaticaly generated by JBuilder. Used to initialize the graphics.
- Throws:
Exception
-
JButtonSaveToPandora_actionPerformed
public void JButtonSaveToPandora_actionPerformed()
- Method responsible for generating a file readable by the pandora generator and analyzer.
JButtonSaveToPajek_actionPerformed
public void JButtonSaveToPajek_actionPerformed()
- Method responsible for generating a file readable by pajek.
JButtonSaveToOtter_actionPerformed
public void JButtonSaveToOtter_actionPerformed()
- Method used to generate a file readable by otter.
toPajekCoord
private java.lang.String toPajekCoord(double x)
- Given a double number x, this method converts this number to the equal pajek coordinate.
- Parameters:
x
- double : The number that we want to convert
- Returns:
- String : A string representation of the converted number.
JButtonOK_actionPerformed
private void JButtonOK_actionPerformed()
- Closes the ExportWindow.