Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.TemporalFormatIterator


        pane = new Pane(null);
        paneContext = new TestPaneInstance();

        deviceLayoutContext = new TestDeviceLayoutContext();

        tfi2 = new TemporalFormatIterator(null);
        tfi2.setInstance(0);

        tfi2Instance = new TemporalFormatIteratorInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        tfi2Instance.setDeviceLayoutContext(deviceLayoutContext);
        tfi2Instance.setFormat(tfi2);

        tfi = new TemporalFormatIterator(null);
        tfi.setInstance(1);

        tfiInstance = new TemporalFormatIteratorInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        tfiInstance.setDeviceLayoutContext(deviceLayoutContext);
View Full Code Here


     */
    public void testIsSkippableTemporal1() throws Exception
    {
        privateSetUp();
       
        TemporalFormatIterator tfi = new TemporalFormatIterator(canvasLayout);
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "0");
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "variable");

        Format format2 = new Pane(canvasLayout);
        format2.setName("pane2");
        pageContext.addPaneMapping((Pane)format2);

View Full Code Here

     */
    public void testIsSkippableTemporal2() throws Exception
    {
        privateSetUp();
       
        TemporalFormatIterator tfi = new TemporalFormatIterator(canvasLayout);
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "4");
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "fixed");

        Format format2 = new Pane(canvasLayout);
        format2.setName("pane2");
        pageContext.addPaneMapping((Pane)format2);

View Full Code Here

     */
    public void testIsSkippableTemporal3() throws Exception
    {
        privateSetUp();
       
        TemporalFormatIterator tfi = new TemporalFormatIterator(canvasLayout);
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "4");
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "variable");

        Format format2 = new Pane(canvasLayout);
        format2.setName("pane2");
        pageContext.addPaneMapping((Pane)format2);

View Full Code Here

     */
    public void testIsSkippableTemporal4() throws Exception
    {
        privateSetUp();
       
        TemporalFormatIterator tfi = new TemporalFormatIterator(canvasLayout);
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "0");
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "fixed");

        Format format2 = new Pane(canvasLayout);
        format2.setName("pane2");
        pageContext.addPaneMapping((Pane)format2);

View Full Code Here

        sfi2.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMN_COUNT, "3");
        sfi2.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROWS, "fixed");
        sfi2.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMNS, "fixed");
        sfi2.setName("spatial2");

        TemporalFormatIterator tfi = new TemporalFormatIterator(canvasLayout);
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "4");
        tfi.setAttribute(TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "variable");
        tfi.setName("temporal");

        Format format2 = new Pane(canvasLayout);
        format2.setName("pane2");
        pageContext.addPaneMapping((Pane)format2);

        Format format3 = new Pane(canvasLayout);
        format3.setName("pane3");
        pageContext.addPaneMapping((Pane)format3);
        format3.setParent(tfi);

        Grid grid2 = new Grid(canvasLayout);
        grid2.setName("grid2");      
        grid2.setRows(2);
        grid2.setColumns(1);
        grid2.setParent(sfi2);
        grid2.insertChildAt(format2, 0);
        format2.setParent(grid2);
       
        grid2.insertChildAt(tfi, 1);
        tfi.setParent(grid2);

        grid2.setParent(sfi2);

        grid.setRows(2);
        grid.setColumns(1);
View Full Code Here

     * @throws Exception
     *
     * todo XDIME-CP fix this
     */
    public void notestRenderTemporalFormatIteratorFixed() throws Exception {
        TemporalFormatIterator temporal = createTemporalFormatIterator();
        temporal.setAttribute(
                TemporalFormatIterator.TEMPORAL_ITERATOR_CLOCK_VALUES, "3");
        temporal.setAttribute(
            TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT,"9");
        temporal.setAttribute(
            TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS,"fixed");
        activateTemporal(temporal);

        //Create a new pane
        Pane pane = (Pane) createPane();
        //Pretend to get the buffers for two different format instances
        int[] idx = { 2 };
        PaneInstance ctx2 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx2.getCurrentBuffer().writeText("non-empty");
        idx[0] = 5;
        PaneInstance ctx5 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx5.getCurrentBuffer().writeText("non-empty");
        temporal.setChildAt(pane, 0);
        //Render the format
        TemporalFormatIteratorInstance sfi =
                new TemporalFormatIteratorInstance(
                        NDimensionalIndex.ZERO_DIMENSIONS);
        sfi.setFormat(temporal);
View Full Code Here

     *
     * todo XDIME-CP fix this
     */
    public void notestRenderTemporalFormatIteratorFixedTimeValues()
            throws Exception {
        TemporalFormatIterator temporal = createTemporalFormatIterator();
        // Set three time values
        temporal.setAttribute(
                TemporalFormatIterator.TEMPORAL_ITERATOR_CLOCK_VALUES,
                "1,2,3");
        // ... and 5 elements.  Last 2 duration values should be last
        // timeValue (3))
        temporal.setAttribute(
            TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT,"5");
        temporal.setAttribute(
            TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS,"fixed");
        activateTemporal(temporal);

        //Create a new pane
        Pane pane = (Pane) createPane();
        //Pretend to get the buffers for two different format instances
        int[] idx = { 2 };
        PaneInstance ctx2 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx2.getCurrentBuffer().writeText("non-empty");
        idx[0] = 5;
        PaneInstance ctx5 = (PaneInstance) dlContext.getFormatInstance(pane,
                new NDimensionalIndex(idx));
        ctx5.getCurrentBuffer().writeText("non-empty");
        temporal.setChildAt(pane, 0);
        //Render the format
        TemporalFormatIteratorInstance sfi =
                new TemporalFormatIteratorInstance(
                        NDimensionalIndex.ZERO_DIMENSIONS);
        sfi.setFormat(temporal);
View Full Code Here

     * @throws Exception
     *
     * todo XDIME-CP fix this
     */
    public void notestRenderTemporalFormatIteratorVariable1() throws Exception {
        TemporalFormatIterator temporal = createTemporalFormatIterator();
        temporal.setAttribute(
                TemporalFormatIterator.TEMPORAL_ITERATOR_CLOCK_VALUES, "3");
        temporal.setAttribute(
            TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "6");
        temporal.setAttribute(
            TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "variable");
        activateTemporal(temporal);

        createTemporal(getTemporalIteratorFormatRenderer(), temporal);

View Full Code Here

     * @throws Exception
     *
     * todo XDIME-CP fix this
     */
    public void notestRenderTemporalFormatIteratorVariable2() throws Exception {
        TemporalFormatIterator temporal = createTemporalFormatIterator();
        temporal.setAttribute(
                TemporalFormatIterator.TEMPORAL_ITERATOR_CLOCK_VALUES, "3");
        temporal.setAttribute(
            TemporalFormatIterator.TEMPORAL_ITERATOR_CELL_COUNT, "4");
        temporal.setAttribute(
            TemporalFormatIterator.TEMPORAL_ITERATOR_CELLS, "variable");
        activateTemporal(temporal);

        createTemporal(getTemporalIteratorFormatRenderer(), temporal);

View Full Code Here

TOP

Related Classes of com.volantis.mcs.layouts.TemporalFormatIterator

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.