Package fr.soleil.salsa.comete.dao

Examples of fr.soleil.salsa.comete.dao.ScanResult1DDAO


            SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

            AbstractKey scanResult1DKey = new ScanResult1DKey(factoryClassName);
            AbstractDAO<List<DataArray>> dataArrayDao = salsaDAOFactory
                    .createNumberDataArrayDAO(scanResult1DKey);
            ScanResult1DDAO scanResult1DDAO = (ScanResult1DDAO) dataArrayDao;

            scanResult1DDAO.setXAxisComponent(xAxisComponent);
            List<String> yAxisComponents = new ArrayList<String>(y1AxisComponents.size()
                    + y2AxisComponents.size());
            yAxisComponents.addAll(y1AxisComponents);
            yAxisComponents.addAll(y2AxisComponents);
            scanResult1DDAO.setYAxisComponents(yAxisComponents);

            if ((scanResultController != null) && (scanResultController.getView() != null)) {
                scanResultController.getView().configureY1AxisList(y1AxisComponents);
                scanResultController.getView().configureY2AxisList(y2AxisComponents);
View Full Code Here


    @Override
    public AbstractDAO<List<DataArray>> createNumberDataArrayDAO(AbstractKey abstractKey) {
        AbstractDAO<List<DataArray>> dao = numberDataArrayDAOCache.lookup(abstractKey);
        if (dao == null) {
            if (abstractKey instanceof ScanResult1DKey) {
                dao = new ScanResult1DDAO(getErrorController());
            }
            else if (abstractKey instanceof ActuatorKey) {
                dao = new ActuatorSpectrumDAO(((ActuatorKey) abstractKey).getActuator(),
                        getErrorController());
            }
View Full Code Here

    @Override
    public AbstractDAO<List<DataArray>> createNumberDataArrayDAO(AbstractKey abstractKey) {
        AbstractDAO<List<DataArray>> dao = numberDataArrayDAOCache.lookup(abstractKey);
        if (dao == null) {
            if (abstractKey instanceof ScanResult1DKey) {
                dao = new ScanResult1DDAO(getErrorController());
            }
            else if (abstractKey instanceof ActuatorKey) {
                dao = new ActuatorSpectrumDAO(((ActuatorKey) abstractKey).getActuator(),
                        getErrorController());
            }
View Full Code Here

        SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

        AbstractKey scanResult1DKey = new ScanResult1DKey(factoryClassName);
        AbstractDAO<List<DataArray>> dataArrayDao = salsaDAOFactory
                .createNumberDataArrayDAO(scanResult1DKey);
        ScanResult1DDAO scanResult1DDAO = (ScanResult1DDAO) dataArrayDao;

        scanResult1DDAO.setXAxisComponent(xAxisComponent);
        List<String> yAxisComponents = new ArrayList<String>(y1AxisComponents.size()
                + y2AxisComponents.size());
        yAxisComponents.addAll(y1AxisComponents);
        yAxisComponents.addAll(y2AxisComponents);
        scanResult1DDAO.setYAxisComponents(yAxisComponents);

        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                if ((scanResultController != null) && (scanResultController.getView() != null)) {
View Full Code Here

            SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

            AbstractKey scanResult1DKey = new ScanResult1DKey(factoryClassName);
            AbstractDAO<List<DataArray>> dataArrayDao = salsaDAOFactory
                    .createNumberDataArrayDAO(scanResult1DKey);
            ScanResult1DDAO scanResult1DDAO = (ScanResult1DDAO) dataArrayDao;

            scanResult1DDAO.setXAxisComponent(xAxisComponent);
            List<String> yAxisComponents = new ArrayList<String>(y1AxisComponents.size()
                    + y2AxisComponents.size());
            yAxisComponents.addAll(y1AxisComponents);
            yAxisComponents.addAll(y2AxisComponents);
            scanResult1DDAO.setYAxisComponents(yAxisComponents);

            if ((scanResultController != null) && (scanResultController.getView() != null)) {
                scanResultController.getView().configureY1AxisList(y1AxisComponents);
                scanResultController.getView().configureY2AxisList(y2AxisComponents);
View Full Code Here

        SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

        AbstractKey scanResult1DKey = new ScanResult1DKey(factoryClassName);
        AbstractDAO<List<DataArray>> dataArrayDao = salsaDAOFactory
                .createNumberDataArrayDAO(scanResult1DKey);
        ScanResult1DDAO scanResult1DDAO = (ScanResult1DDAO) dataArrayDao;

        scanResult1DDAO.setXAxisComponent(xAxisComponent);
        List<String> yAxisComponents = new ArrayList<String>(y1AxisComponents.size()
                + y2AxisComponents.size());
        yAxisComponents.addAll(y1AxisComponents);
        yAxisComponents.addAll(y2AxisComponents);
        scanResult1DDAO.setYAxisComponents(yAxisComponents);

        boolean configDisplayUpdated = false;
        if (config != null) {
            updateConfigDisplayAxis(convertAxis(axisList));
            if (config instanceof ISpectrumConfig<?>) {
View Full Code Here

        SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

        AbstractKey scanResult1DKey = new ScanResult1DKey(factoryClassName);
        AbstractDAO<List<DataArray>> dataArrayDao = salsaDAOFactory
                .createNumberDataArrayDAO(scanResult1DKey);
        ScanResult1DDAO scanResult1DDAO = (ScanResult1DDAO) dataArrayDao;

        scanResult1DDAO.setXAxisComponent(xAxisComponent);
        List<String> yAxisComponents = new ArrayList<String>(y1AxisComponents.size()
                + y2AxisComponents.size());
        yAxisComponents.addAll(y1AxisComponents);
        yAxisComponents.addAll(y2AxisComponents);
        scanResult1DDAO.setYAxisComponents(yAxisComponents);

        boolean configDisplayUpdated = false;
        if (config != null) {
            updateConfigDisplayAxis(convertAxis(axisList));
            if (config instanceof ISpectrumConfig<?>) {
View Full Code Here

        SalsaDAOFactory salsaDAOFactory = (SalsaDAOFactory) factory;

        AbstractKey scanResult1DKey = new ScanResult1DKey(factoryClassName);
        AbstractDAO<List<DataArray>> dataArrayDao = salsaDAOFactory
                .createNumberDataArrayDAO(scanResult1DKey);
        ScanResult1DDAO scanResult1DDAO = (ScanResult1DDAO) dataArrayDao;

        scanResult1DDAO.setXAxisComponent(xAxisComponent);
        List<String> yAxisComponents = new ArrayList<String>(y1AxisComponents.size()
                + y2AxisComponents.size());
        yAxisComponents.addAll(y1AxisComponents);
        yAxisComponents.addAll(y2AxisComponents);
        scanResult1DDAO.setYAxisComponents(yAxisComponents);

        if ((scanResultController != null) && (scanResultController.getView() != null)) {
            scanResultController.getView().configureY1AxisList(y1AxisComponents);
            scanResultController.getView().configureY2AxisList(y2AxisComponents);
View Full Code Here

    @Override
    public AbstractDAO<List<DataArray>> createNumberDataArrayDAO(AbstractKey abstractKey) {
        AbstractDAO<List<DataArray>> dao = numberDataArrayDAOCache.lookup(abstractKey);
        if (dao == null) {
            if (abstractKey instanceof ScanResult1DKey) {
                dao = new ScanResult1DDAO(getErrorController());
            }
            else if (abstractKey instanceof ActuatorKey) {
                dao = new ActuatorSpectrumDAO(((ActuatorKey) abstractKey).getActuator(),
                        getErrorController());
            }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.comete.dao.ScanResult1DDAO

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.