Package se.kth.speech.skatta.player

Examples of se.kth.speech.skatta.player.TestException


            Document doc = builder.parse(path);
            m_element = doc.getDocumentElement();
            m_folder = new File(new URI(path)).getParentFile();
            addDefaults();
        } catch (SAXException ex) {
            throw new TestException(path + " is not valid because:\n" + ex.getMessage());
        } catch (ParserConfigurationException exc) {
            System.err.println(exc);
        } catch (IOException exc) {
            System.out.println(exc);
            throw new TestException("Couldn't load " + path);
        } catch (URISyntaxException exc) {
            System.err.println(exc);
        }
    }
View Full Code Here


        int controls = ControlButtons.CONTROL_PLAY | (useStopButton ? ControlButtons.CONTROL_STOP : 0) | (usePauseButton ? ControlButtons.CONTROL_PAUSE : 0);

        int repetitions = main.intAttribute("repetitions");
        myFolderParser = new FolderParser(new Dimension(myPage.getPreferredSize().width, (int) (myPage.getPreferredSize().height * 0.6)), 1, repetitions, controls);
        if (!myFolderParser.setSource(myStimuliFolder))
            throw new TestException(myStimuliFolder.getAbsolutePath() + " Cannot be used as the source folder.");
        myFolderParser.setInnerStimuli(0);

        visitedPages = new boolean[myFolderParser.getInnerStimuliCount()];
        Arrays.fill(visitedPages, false);
        m_visitedPageCount = 0;
View Full Code Here

        int controls = main.booleanAttribute("replay") ? ControlButtons.CONTROL_REPLAY : 0;

        folderParser = new FolderParser(new Dimension(0, 0), 1/*spp*/, 1/*sequences*/, controls);
        if (!folderParser.setSource(myStimuliFolder))
            throw new TestException(myStimuliFolder.getAbsolutePath() + " Cannot be used as the source folder.");

        myPage.setLayout(new MigLayout("fill, insets 0, gap " + border + " " + border + ", wrap " + dropfieldColumns, "[fill, sg]", "[fill]"));

        /** Draw container **/
        lsContainer = new DropField(null);
View Full Code Here

TOP

Related Classes of se.kth.speech.skatta.player.TestException

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.