Examples of IOutput


Examples of com.neophob.sematrix.core.output.IOutput

        cp5.getTooltip().register(GuiElement.SAVE_SCREENSHOT.guiText(), messages.getString("GeneratorGui.TOOLTIP_SAVE_SCREENSHOT")); //$NON-NLS-1$

       
        nfoXPos += xposAdd;
        nfoYPos = yPosStartDrowdown+20;
        IOutput output = col.getOutputDevice();
        if (output!=null) {
            String gammaText = WordUtils.capitalizeFully(StringUtils.replace(output.getGammaType().toString(), "_", " "));
            cp5.addTextlabel("nfoGamma", messages.getString("GeneratorGui.GAMMA_CORRECTION")+gammaText, nfoXPos, nfoYPos).moveTo(infoTab).getValueLabel(); //$NON-NLS-1$ //$NON-NLS-2$         
            nfoYPos+=yposAdd;
            cp5.addTextlabel("nfoBps", messages.getString("GeneratorGui.OUTPUT_BPP")+output.getBpp(), nfoXPos, nfoYPos).moveTo(infoTab).getValueLabel(); //$NON-NLS-1$ //$NON-NLS-2$
            nfoYPos+=yposAdd;
        }
        sentFrames = cp5.addTextlabel("nfoSentFrames", "", nfoXPos, nfoYPos).moveTo(infoTab).getValueLabel(); //$NON-NLS-1$ //$NON-NLS-2$
        nfoYPos+=yposAdd;       
        outputErrorCounter = cp5.addTextlabel("nfoErrorFrames", "", nfoXPos, nfoYPos).moveTo(infoTab).getValueLabel(); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of com.neophob.sematrix.core.output.IOutput

            runtime.setText(messages.getString("GeneratorGui.RUNNING_SINCE")+runningSince);          //$NON-NLS-1$
            sentFrames.setText(messages.getString("GeneratorGui.SENT_FRAMES")+frames); //$NON-NLS-1$
            int snd1000 = (int)(1000f*Collector.getInstance().getSound().getVolumeNormalized());
            currentVolume.setText(messages.getString("GeneratorGui.CURRENT_VOLUME")+(snd1000/1000f));
           
            IOutput output = col.getOutputDevice();
            if (output!=null) {
                String outputStateStr = WordUtils.capitalizeFully(output.getConnectionStatus());
                outputState.setText(outputStateStr);
                outputErrorCounter.setText(messages.getString("GeneratorGui.IO_ERRORS")+output.getErrorCounter());             //$NON-NLS-1$             
            }
            long recievedMB = col.getPixConStat().getRecievedOscBytes()/1024/1024;
            String oscStat  = messages.getString("GeneratorGui.OSC_STATISTIC")+col.getPixConStat().getRecievedOscPakets()+"/"+recievedMB;
            oscStatistic.setText(oscStat);
           
View Full Code Here

Examples of org.pentaho.chart.plugin.api.IOutput

      IChartLinkGenerator chartLinkGenerator =
          contentLinkingTemplate == null ? null : new ChartLinkGenerator( contentLinkingTemplate );
      IChartDataModel chartDataModel =
          ChartBeanFactory.createChartDataModel( data, scalingFactor, convertNullsToZero, valueColumn, seriesColumn,
            categoryColumn, chartModel );
      IOutput output = ChartBeanFactory.createChart( chartModel, chartDataModel, chartLinkGenerator );
      // Wrap output as necessary
      if ( OpenFlashChartPlugin.PLUGIN_ID.equals( chartEngine ) ) {
        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        output.persistChart( outputStream, getOutputType(), chartWidth, chartHeight );

        String persistedChart = new String( outputStream.toByteArray(), "utf-8" ); //$NON-NLS-1$

        IPentahoRequestContext requestContext = PentahoRequestContextHolder.getRequestContext();
        String flashContent =
            ChartBeansGeneratorUtil.mergeOpenFlashChartHtmlTemplate( persistedChart.replaceAll( "\"", "\\\\\"" ),
              //$NON-NLS-1$ //$NON-NLS-2$
              requestContext.getContextPath() + this.getSwfPath() + "/" + getSwfName() ); //$NON-NLS-1$

        is = new ByteArrayInputStream( flashContent.getBytes( "utf-8" ) ); //$NON-NLS-1$
      } else if ( JFreeChartPlugin.PLUGIN_ID.equals( chartEngine ) ) {
        if ( "html".equals( outputType ) || ( chartLinkGenerator != null ) ) { //$NON-NLS-1$
          File imageFile =
              PentahoSystem.getApplicationContext().createTempFile( PentahoSessionHolder.getSession(),
                "tmp_chart_", ".png", false ); //$NON-NLS-1$
          FileOutputStream outputStream = new FileOutputStream( imageFile );
          output.persistChart( outputStream, OutputTypes.FILE_TYPE_PNG, chartWidth, chartHeight );

          String imageMapName = null;
          String imageMap = null;
          if ( chartLinkGenerator != null ) {
            imageMapName = imageFile.getName().substring( 0, imageFile.getName().indexOf( '.' ) );
            imageMap = ( (JFreeChartOutput) output ).getMap( imageMapName );
          }
          String jFreeChartHtml =
              ChartBeansGeneratorUtil.mergeJFreeChartHtmlTemplate( imageFile, imageMap, imageMapName, chartWidth,
                chartHeight, PentahoRequestContextHolder.getRequestContext().getContextPath() );
          is = new ByteArrayInputStream( jFreeChartHtml.getBytes( "utf-8" ) ); //$NON-NLS-1$
        } else {
          ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
          output.persistChart( outputStream, getOutputType(), chartWidth, chartHeight );
          is = new ByteArrayInputStream( outputStream.toByteArray() );
        }
      }

      int val = 0;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.