java/SuperPostak/src/cz/frantovo/superPostak/GrafPokus.java
changeset 6 ca5b667fd910
parent 5 bea5d9e11d37
child 7 66667bb5a6cc
     1.1 --- a/java/SuperPostak/src/cz/frantovo/superPostak/GrafPokus.java	Mon Sep 27 19:04:50 2010 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,91 +0,0 @@
     1.4 -/*
     1.5 - * GrafPokus.java
     1.6 - *
     1.7 - * Created on 7. prosinec 2007, 22:33
     1.8 - */
     1.9 -
    1.10 -package cz.frantovo.superPostak;
    1.11 -
    1.12 -import java.awt.Color;
    1.13 -import org.jdesktop.swingx.JXGraph.Plot;
    1.14 -
    1.15 -/**
    1.16 - * Tohle sem nepatří ;-)
    1.17 - * @author  fiki
    1.18 - */
    1.19 -public class GrafPokus extends javax.swing.JFrame {
    1.20 -    private static final long serialVersionUID = 5745756301932587174L;
    1.21 -    
    1.22 -    /** Creates new form GrafPokus */
    1.23 -    public GrafPokus() {
    1.24 -        initComponents();
    1.25 -        
    1.26 -        mujGraf.addPlots(Color.GREEN, new Plot(){
    1.27 -
    1.28 -            @Override
    1.29 -            public double compute(double value) {
    1.30 -                return value * value;
    1.31 -            }
    1.32 -        
    1.33 -        });
    1.34 -    }
    1.35 -    
    1.36 -    /** This method is called from within the constructor to
    1.37 -     * initialize the form.
    1.38 -     * WARNING: Do NOT modify this code. The content of this method is
    1.39 -     * always regenerated by the Form Editor.
    1.40 -     */
    1.41 -    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    1.42 -    private void initComponents() {
    1.43 -
    1.44 -        mujGraf = new org.jdesktop.swingx.JXGraph();
    1.45 -
    1.46 -        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    1.47 -
    1.48 -        javax.swing.GroupLayout mujGrafLayout = new javax.swing.GroupLayout(mujGraf);
    1.49 -        mujGraf.setLayout(mujGrafLayout);
    1.50 -        mujGrafLayout.setHorizontalGroup(
    1.51 -            mujGrafLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    1.52 -            .addGap(0, 465, Short.MAX_VALUE)
    1.53 -        );
    1.54 -        mujGrafLayout.setVerticalGroup(
    1.55 -            mujGrafLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    1.56 -            .addGap(0, 422, Short.MAX_VALUE)
    1.57 -        );
    1.58 -
    1.59 -        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    1.60 -        getContentPane().setLayout(layout);
    1.61 -        layout.setHorizontalGroup(
    1.62 -            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    1.63 -            .addGroup(layout.createSequentialGroup()
    1.64 -                .addContainerGap()
    1.65 -                .addComponent(mujGraf, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    1.66 -                .addContainerGap())
    1.67 -        );
    1.68 -        layout.setVerticalGroup(
    1.69 -            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    1.70 -            .addGroup(layout.createSequentialGroup()
    1.71 -                .addContainerGap()
    1.72 -                .addComponent(mujGraf, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    1.73 -                .addContainerGap())
    1.74 -        );
    1.75 -
    1.76 -        pack();
    1.77 -    }// </editor-fold>//GEN-END:initComponents
    1.78 -    
    1.79 -    /**
    1.80 -     * @param args the command line arguments
    1.81 -     */
    1.82 -    public static void main(String args[]) {
    1.83 -        java.awt.EventQueue.invokeLater(new Runnable() {
    1.84 -            public void run() {
    1.85 -                new GrafPokus().setVisible(true);
    1.86 -            }
    1.87 -        });
    1.88 -    }
    1.89 -    
    1.90 -    // Variables declaration - do not modify//GEN-BEGIN:variables
    1.91 -    private org.jdesktop.swingx.JXGraph mujGraf;
    1.92 -    // End of variables declaration//GEN-END:variables
    1.93 -    
    1.94 -}