/*
 * VentanaAyuda.java
 *
 * Created on 12 de septiembre de 2009, 14:06
 */
package sdsimulator.interfaz;
import java.awt.Rectangle;

/**
 *
 * @author  Miguel Herreros
 */
public class VentanaAyuda extends javax.swing.JDialog {

    String contenido = new String();

    /** Creates new form VentanaAyuda */
    public VentanaAyuda(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }
   
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jTextPaneHelp = new javax.swing.JTextPane();
        jButtonOK = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Help");
        setResizable(false);

        jTextPaneHelp.setBackground(new java.awt.Color(255, 255, 153));
        jTextPaneHelp.setEditable(false);
        jTextPaneHelp.setText("SDSimulator HELP\n---------------------\n\n• Title bar, contains the application name (Sequence Diagram Simulator). It also contains the standard\n   minimize,maximice and close buttons.\n\n• Menu bar.\n     o File.\n          - Open diagram: With this option you can search and open a new diagram from disk\n          - Save trace: With this option, you can save the trace of execution in a  text-file.\n          - Exit: Close application.\n     o Simulate.\n          - Run: Use this option in order to start the automatic simulation of the diagram loaded.\n          - Run Step: Executes only one step of the simulation.\n          - Pause: With this option, you can stop automatic simulation.\n          - Restart: Resets the diagram to the initial status.\n     o Help\n          - Help contents: Provides access to this window.\n          - About: Shows information about SDSimulator.\n\n• Control Bar.\n     o Run, Run Step, Pause y Restart buttons: The shame as the menu options.\n     o Simulation Speed Slider :  Use this control in order to increase or decrease the automatic simulation \n        speed.\n     o Botón Asynchronous.\n          - Delay in Asynchronous messages reception slider: increas or decrease the delay in asynchronous\n            messages reception (probabilistic). \n          - Chechbox Give priority to older messages checkbox: when it is on, gives pryority to older \n            asynchronous messages arrival. \n\n• Diagram Panel: Shows the diagram simulating. The elements in black, hasn't been simulated yet, the\n   red ones has just executed in current step of simulation, the blue ones has been executed in previous \n   steps. Finally, the elements in orange, are waiting for the end of their execution.\n\n• Trace panel:\n     o Save trace Button: the same as the menu option.\n     o Text panel: Contines a text trace of the simulation in course.  \n\n• Status Bar: Shows information about the status of the application.");
        jScrollPane1.setViewportView(jTextPaneHelp);

        jButtonOK.setText("OK");
        jButtonOK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonOKActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(438, Short.MAX_VALUE)
                .addComponent(jButtonOK, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 566, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonOK)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void jButtonOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonOKActionPerformed
    dispose();
}//GEN-LAST:event_jButtonOKActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonOK;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextPane jTextPaneHelp;
    // End of variables declaration//GEN-END:variables
}
