Examples of addSource()


Examples of java.awt.image.renderable.ParameterBlock.addSource()

            RenderingHints formatHints = new RenderingHints(JAI.KEY_BORDER_EXTENDER, BorderExtender.createInstance(BorderExtender.BORDER_COPY));

            Interpolation interp = Interpolation.getInstance(Interpolation.INTERP_NEAREST);
            ParameterBlock params = new ParameterBlock();
            params.addSource(image);
            params.add(xform);
            params.add(interp);
            // NOTE: we cache this for the screen
            return JAI.create("Affine", params, formatHints);
        }
View Full Code Here

Examples of javax.media.jai.ParameterBlockJAI.addSource()

        }

        // create an optimized color map for the dithering process. This helps
        // avoid speckled looking areas of uniform colour
        ParameterBlockJAI pb2 = new ParameterBlockJAI("ColorQuantizer");
        pb2.addSource(src);
        pb2.setParameter("maxColorNum", colormapSize);
        RenderedOp dithered = JAI.create("ColorQuantizer", pb2, hints);

        if (kernel != null) {
            // defer computation of the lookup table. Note that "LUT" should really
View Full Code Here

Examples of net.minecraftforge.gradle.tasks.dev.GenDevProjectsTask.addSource()

        task = makeTask("generateProjectFML", GenDevProjectsTask.class);
        {
            task.setJson(delayedFile(DevConstants.JSON_DEV));
            task.setTargetDir(delayedFile(DevConstants.ECLIPSE_FML));

            task.addSource(delayedFile(DevConstants.ECLIPSE_FML_SRC));
            task.addSource(delayedFile(DevConstants.FML_SOURCES));
            task.addTestSource(delayedFile(DevConstants.FML_TEST_SOURCES));

            task.addResource(delayedFile(DevConstants.ECLIPSE_FML_RES));
            task.addResource(delayedFile(DevConstants.FML_RESOURCES));
View Full Code Here

Examples of org.apache.cocoon.components.source.impl.MultiSourceValidity.addSource()

                MultiSourceValidity aggregatedValidity = new MultiSourceValidity(resolver, 0);
                for (int i = 0; i < this.sourceUris.length; i++) {
                    Source source = null;
                    try {
                        source = resolver.resolveURI(this.sourceUris[i]);
                        aggregatedValidity.addSource(source);
                    } finally {
                        if (source != null) {
                            resolver.release(source);
                        }
                    }
View Full Code Here

Examples of org.apache.commons.digester.substitution.MultiVariableExpander.addSource()

     */
    protected void enableDigesterSubstitutor(Digester digester)
    {
        Map systemProperties = System.getProperties();
        MultiVariableExpander expander = new MultiVariableExpander();
        expander.addSource("$", systemProperties);

        // allow expansion in both xml attributes and element text
        Substitutor substitutor = new VariableSubstitutor(expander);
        digester.setSubstitutor(substitutor);
    }
View Full Code Here

Examples of org.apache.commons.digester3.substitution.MultiVariableExpander.addSource()

    private Digester createDigesterThatCanDoAnt()
    {
        Digester digester = new Digester();

        MultiVariableExpander expander = new MultiVariableExpander();
        expander.addSource( "$", mutableSource );
        digester.setSubstitutor( new VariableSubstitutor( expander ) );

        int useRootObj = -1;
        Class<?>[] callerArgTypes = new Class[] { String.class, String.class };
        CallMethodRule caller = new CallMethodRule( useRootObj, "addProperty", callerArgTypes.length, callerArgTypes );
View Full Code Here

Examples of org.apache.flink.streaming.api.environment.LocalStreamEnvironment.addSource()

  @Test
  public void test() throws Exception {
    LocalStreamEnvironment env = StreamExecutionEnvironment.createLocalEnvironment(1);
   
    @SuppressWarnings("unused")
    DataStream<Tuple1<Integer>> dataStream1 = env.addSource(new MySource1(), 1).writeAsText(PREFIX + "test1.txt");

    fillExpected1();

    @SuppressWarnings("unused")
    DataStream<Tuple1<Integer>> dataStream2 = env.addSource(new MySource1(), 1).writeAsText(PREFIX + "test2.txt", 5);
View Full Code Here

Examples of org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.addSource()

  public static void main(String[] args) throws Exception {

    StreamExecutionEnvironment env = StreamExecutionEnvironment.createLocalEnvironment(1);

    @SuppressWarnings("unused")
    DataStream<String> stream1 = env
      .addSource(new MyKafkaSource("localhost:2181", "group", "test", 1), SOURCE_PARALELISM)
      .addSink(new MyKafkaPrintSink());

    @SuppressWarnings("unused")
    DataStream<String> stream2 = env
View Full Code Here

Examples of org.apache.jetspeed.om.common.DublinCore.addSource()

        dc.addIdentifier(JetspeedLocale.getDefaultLocale(), "Identifier 1");
        dc.addLanguage(JetspeedLocale.getDefaultLocale(), "Language 1");
        dc.addPublisher(JetspeedLocale.getDefaultLocale(), "Publisher 1");
        dc.addRelation(JetspeedLocale.getDefaultLocale(), "Relation 1");
        dc.addRight(JetspeedLocale.getDefaultLocale(), "Right 1");
        dc.addSource(JetspeedLocale.getDefaultLocale(), "Source 1");
        dc.addSubject(JetspeedLocale.getDefaultLocale(), "Subject 1");
        dc.addType(JetspeedLocale.getDefaultLocale(), "Type 1");
    }

    public void testData() throws Exception
View Full Code Here

Examples of org.apache.jetspeed.om.impl.DublinCoreImpl.addSource()

        dc.addIdentifier(JetspeedLocale.getDefaultLocale(), "Identifier 1");
        dc.addLanguage(JetspeedLocale.getDefaultLocale(), "Language 1");
        dc.addPublisher(JetspeedLocale.getDefaultLocale(), "Publisher 1");
        dc.addRelation(JetspeedLocale.getDefaultLocale(), "Relation 1");
        dc.addRight(JetspeedLocale.getDefaultLocale(), "Right 1");
        dc.addSource(JetspeedLocale.getDefaultLocale(), "Source 1");
        dc.addSubject(JetspeedLocale.getDefaultLocale(), "Subject 1");
        dc.addType(JetspeedLocale.getDefaultLocale(), "Type 1");
    }

    public void testAll() throws Exception
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.