Package datasoul.render

Examples of datasoul.render.ContentManager


        }
       
        panel.notifyAlertStart(this);
       
        // show
        ContentManager cm = ContentManager.getInstance();
        if (showOnMain){
            ContentManager.getInstance().setAlertTemplateMain(getMainTemplate());
            ContentManager.getInstance().setAlertActiveMain(true);
            LastAlertShown.getInstance().addAlert(text);
        }else{
            ContentManager.getInstance().setAlertActiveMain(false);
        }
        if (showOnMonitor){
            ContentManager.getInstance().setAlertTemplateMonitor(getMonitorTemplate());
            ContentManager.getInstance().setAlertActiveMonitor(true);
        }else{
            ContentManager.getInstance().setAlertActiveMonitor(false);
        }
        cm.setAlertText(text);
        cm.alertShow( DisplayControlConfig.getInstance().getSlideShowHideTime() );
       
       
        // wait
        try {
            Thread.sleep(time);
        } catch (InterruptedException ex) {
            //ex.printStackTrace();
        }

        cm.alertHide(DisplayControlConfig.getInstance().getSlideShowHideTime());

        // hide
        if (showOnMain){
            ContentManager.getInstance().setAlertActiveMain(false);
        }
View Full Code Here


    }

    @Override
    public void previewItem(){
        super.previewItem();
        ContentManager cm = ContentManager.getInstance();
        cm.setSongAuthorPreview(this.getSongAuthor());
        cm.setSongSourcePreview(this.getSongSource());
        cm.setCopyrightPreview(this.getCopyright());
    }
View Full Code Here

        serviceItemTable1.setFocusInTable();
    }
   
    public void showItem(ServiceItem serviceItem, boolean backwards){

        ContentManager cm = ContentManager.getInstance();

        serviceItem.showItem();

        if (ConfigObj.getActiveInstance().getMonitorOutput()){
            // Update monitor template
            cm.setTemplateMonitorLive( serviceItem.getDefaultMonitorTemplate() );
        }
       
        // Setup timer
        ObjectManager.getInstance().getTimerControlPanel().setTimerFromServiceItem(serviceItem.getDuration());

        if (backwards){
            this.serviceItemTable1.setServiceItem(serviceItem, serviceItem.getRowCount()-1);
        }else{
            this.serviceItemTable1.setServiceItem(serviceItem, 0);
        }

        updateContentValues();
       
        // save the transition image just before changing the slide to avoid
        // problem when changing to a item that uses a template with different
        // alpha. This will cause a cut to the first slide, without any transition,
        // but at least is not buggy
        cm.saveTransitionImage();
       
        cm.slideChange(0);
       
    }
View Full Code Here

    }

    @Override
    public void showItem(){
        super.showItem();
        ContentManager cm = ContentManager.getInstance();
        cm.setSongAuthorLive(this.getSongAuthor());
        cm.setSongSourceLive(this.getSongSource());
        cm.setCopyrightLive(this.getCopyright());
    }
View Full Code Here

        }else{
            lastSelectedIndex = serviceItemTable1.getSlideIndex();
        }
       
       
        ContentManager cm = ContentManager.getInstance();
        cm.saveTransitionImage();
        updateContentValues();
        cm.slideChange(DisplayControlConfig.getInstance().getSlideTransitionTime());
       
    }
View Full Code Here

        cm.slideChange(DisplayControlConfig.getInstance().getSlideTransitionTime());
       
    }

    public void updateContentValues(){
        ContentManager cm = ContentManager.getInstance();
        cm.setSlideLive( serviceItemTable1.getSlideText() );
        cm.setNextSlideLive( serviceItemTable1.getNextSlideText() );
        cm.setActiveImageLive(serviceItemTable1.getSlideImage());
        cm.setNextImageLive(serviceItemTable1.getNextSlideImage());
    }
View Full Code Here

            ObjectManager.getInstance().setDefaultCursor();
        }       
    }

    public void valueChanged(ListSelectionEvent e) {
        ContentManager cm = ContentManager.getInstance();
        cm.setSlidePreview( serviceItemTable1.getSlideText() );
        cm.setNextSlidePreview( serviceItemTable1.getNextSlideText() );
        cm.setActiveImagePreview(serviceItemTable1.getSlideImage());
        cm.setNextImagePreview(serviceItemTable1.getNextSlideImage());
        cm.updatePreview();
    }
View Full Code Here

    }
   
    public void run(){
       
        long t1, t2;
        ContentManager cm = ContentManager.getInstance();
       
        while (!stopThread){
            try{
                t1 = System.currentTimeMillis();

                if (!connectedAsRemote){
                    // update the clock
                    cm.setClockLive( sdformat.format(new Date()) );


                    // update the timer
                    if (timerDirection == TIMER_DIRECTION_FORWARD || timerDirection == TIMER_DIRECTION_BACKWARD_OVERDUE){
                        timerForwardCounter += 1000;
                        cm.setTimerLive( formatTimer( timerForwardCounter ));
                        if (timerDirection == TIMER_DIRECTION_BACKWARD_OVERDUE){
                            cm.setShowTimer( true );
                        }else{
                            cm.setShowTimer( false );
                        }
                    }else if (timerDirection == TIMER_DIRECTION_BACKWARD){
                        timerBackwardCounter += 1000;
                        if ( timerBackwardTotal - timerBackwardCounter <= 0 ){
                            setTimerBackwardOverdue(0);
                        }else{
                            cm.setTimerLive( formatTimer(timerBackwardTotal - timerBackwardCounter ));
                        }
                        cm.setTimerProgress( (float) timerBackwardCounter / (float) timerBackwardTotal );
                        cm.setShowTimer(true);

                    }else if (timerDirection == TIMER_DIRECTION_OFF){
                        cm.setTimerLive("");
                        cm.setShowTimer(false);
                    }

                    // ok, changes done
                    cm.slideChangeFromTimerManager();
                }
               
                // go sleep!
                t2 = System.currentTimeMillis();
                if ( (1000 - (t2 - t1)) > 1 ){
View Full Code Here

    public void edit(){

    }

    public void previewItem(){
        ContentManager cm = ContentManager.getInstance();
        cm.setTemplatePreview(this.getTemplate());
        cm.setTitlePreview(this.getTitle());
        cm.setSongAuthorPreview("");
        cm.setSongSourcePreview("");
        cm.setCopyrightPreview("");
    }
View Full Code Here

        cm.setSongSourcePreview("");
        cm.setCopyrightPreview("");
    }

    public void showItem(){
        ContentManager cm = ContentManager.getInstance();
        if (BackgroundConfig.getInstance().getModeAsInt() == BackgroundConfig.MODE_STATIC){
            cm.setMainShowBackground(true);
        }else{
            cm.setMainShowBackground(false);
        }
        cm.setMainShowTemplate(true);
        cm.setTemplateLive(this.getTemplate());
        cm.setTitleLive(this.getTitle());
        cm.setSongAuthorLive("");
        cm.setSongSourceLive("");
        cm.setCopyrightLive("");
        cm.stopVideoItem();
    }
View Full Code Here

TOP

Related Classes of datasoul.render.ContentManager

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.