Package fmg.fmg8.endlAutomat

Examples of fmg.fmg8.endlAutomat.AutomatenNummer


        this.setLayout(new BorderLayout(borderX, borderY));
        this.setResizable(false);
        this.setLocation(locationX, locationY);

        //Message
        MultiLineLabel lab = new MultiLineLabel(msg);
        lab.setLeftRightMargin(lrMargin);
        lab.setTopBottomMargin(tbMargin);
        this.add(lab, BorderLayout.NORTH);

        //Buttons
        Panel panel = new Panel();
        panel.setLayout(new FlowLayout(FlowLayout.CENTER));
View Full Code Here


        this.setLayout(new BorderLayout(borderX, borderY));
        this.setResizable(true);
        this.setLocation(locationX, locationY);
        //Message
        if (textBox == null) {
            MultiLineLabel lab = new MultiLineLabel(msg);
            lab.setLeftRightMargin(lrMargin);
            lab.setTopBottomMargin(tbMargin);
            this.add(lab, BorderLayout.CENTER);
        } else {
            if (einzeilig) {
                this.text = new TextField(textBox,
                                     textBoxWidth);
View Full Code Here

       
        this.result = "";
        this.liste = new java.awt.List(elemente.size(), multi);
        Button but1 = new Button(button1);
        Button but2 = new Button(button2);
        MultiLineLabel lab = new MultiLineLabel(message);

        this.setLayout(new GridLayout(2, 2));
        this.add(this.liste);
        if (this.zusatzText == null) {
            this.add(lab);
        } else {
            this.add(this.zusatzText);
            this.setTitle(this.getTitle() + " (" + message + ")");
        }
        lab.setLeftRightMargin(50);
       
        this.add(but1);
        this.add(but2);

        but1.addActionListener(this);
View Full Code Here

        File verz = new File(this.pars.getStdPfad());
        String endung = fmg.fmg8.graphVis.Konstanten.GRAPH_ENDUNG;
        String[] gespGr = verz.list(new DateiFilter(endung));
        String grNam;
        VisMantel visRob = null;
        Vis obs = null;
        boolean sel = false;
       
        if (gespGr != null) {
            for (int i = 0; i < gespGr.length; i++) {
                grNam = gespGr[i].substring(
View Full Code Here

                                       + "und Vis-Objekten.");
        }
       
        String grNam;
        VisMantel visRob = null;
        Vis obsVis = null;
        boolean sel = false;
       
        for (int i = 0; i < visObs.length; i++) {
            grNam = visObs[i].getGraphName();
           
View Full Code Here

     * Initialisierungsmethode (Roboter und Darstellung).
     */
    private void init() {
        this.setSize(200, 200);
        this.setLocation(new Point(400, 100));
        this.darstArt = new DarstModEA(
                50,
                Konstanten.OBEN,
                this.getWidth() - 50,
                this.getHeight() - 50);

View Full Code Here

        this.addWindowListener(new WindHideAdapt());
       
        this.darstArten = new DarstModEA[autAnz];
       
        for (int i = 0; i < autAnz; i++) {
            this.darstArten[i] = new DarstModEA(
                    50,
                    Konstanten.OBEN,
                    this.getWidth() - 50,
                    this.getHeight() - 50);
        }
View Full Code Here

        buttons.add(ja);
        buttons.add(nein);
        buttons.add(alle);
        buttons.add(keiner);
        buttons.add(abbrechen);
        AllgemeinerDialog nachfrage;
        nachfrage = new AllgemeinerDialog(this, Messages
                .getString("Vis.SollDerEndlicheAutomat")
                + this.robName + Messages.getString("Vis.GespeichertWerden"),
                Messages.getString("Vis.saveGraph"), buttons, null);

        if (!anweisung.equals(alle) && !anweisung.equals(keiner)) {
            nachfrage.setVisible(true);
        }

        if (anweisung.equals(alle) || nachfrage.getResult().equals(ja)
                || nachfrage.getResult().equals(alle)) {

            this.rob.speichereAuts(this.robName);

            if (this.pars.getpngAutSp()) {
                this.savePNG(this.robName);
            }
           
            try {
                FileOutputStream fs = new FileOutputStream(pfad + this.robName
                        + "." + fmg.fmg8.graphVis.Konstanten.KOORD_ENDUNG);
                ObjectOutputStream os = new ObjectOutputStream(fs);
                os.writeObject(this.darstArten);
                os.close();
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }

        if (anweisung.equals(alle) || anweisung.equals(keiner)) {
            return anweisung;
        } else {
            return nachfrage.getResult();
        }
    }
View Full Code Here

        this.aktGraph = this.darstArt.erzeuge(this.aktTrans, this.gewKnot);

        this.removeAll();
       
        this.addWindowListener(new WindHideAdapt());
       
        this.zwischenablage = new Zwischenablage();

        this.zeichenArt = new PfeilMaster(this.pars);
        this.gewKnot = null;
View Full Code Here

     * @param autAnz  Die Anzahl der Automaten pro Roboter.
     */
    private void init2(final int autAnz) {
        this.removeAll();
        this.setSize(800, 730);
        this.addWindowListener(new WindHideAdapt());
       
        this.darstArten = new DarstModEA[autAnz];
       
        for (int i = 0; i < autAnz; i++) {
            this.darstArten[i] = new DarstModEA(
View Full Code Here

TOP

Related Classes of fmg.fmg8.endlAutomat.AutomatenNummer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.