Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.NDimensionalIndex


        ContextInternals.setMarinerPageContext(requestContext, context);
        protocol.setMarinerPageContext(context);

        int idx[] = {1, 0};
        NDimensionalIndex index = new NDimensionalIndex(idx);
        PaneInstance paneInstance = new PaneInstance(index);

        paneInstance.setStyleClass("fred");
        context.setFormatInstance(paneInstance);
View Full Code Here


       
        index = NDimensionalIndex.ZERO_DIMENSIONS;
        assertTrue("shouldn't skip format",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {0});
        assertTrue("should treat format.0 as format",
                !createPaneContext(index).ignore());
    }
View Full Code Here

        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMN_COUNT, "2");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROWS, "fixed");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMNS, "fixed");
        format.setParent(sfi);
       
        index = new NDimensionalIndex(new int[] {0});
        assertTrue("shouldn't skip format.0",
                !createPaneContext(index).ignore());
       
        index = new NDimensionalIndex(new int[] {1});
        assertTrue("shouldn't skip format.1",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {2});
        assertTrue("shouldn't skip format.2",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {3});
        assertTrue("shouldn't skip format.3",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {4});
        assertTrue("should skip format.4",
                createPaneContext(index).ignore());

        index = NDimensionalIndex.ZERO_DIMENSIONS;
        assertTrue("should treat format as format.0",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {1, 2});
        assertTrue("should treat format1.2 as format.1",
                !createPaneContext(index).ignore());
    }
View Full Code Here

        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMN_COUNT, "3");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROWS, "variable");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMNS, "fixed");
        format.setParent(sfi);
       
        index = new NDimensionalIndex(new int[] {0});
        assertTrue("shouldn't skip format.0",
                !createPaneContext(index).ignore());
       
        index = new NDimensionalIndex(new int[] {2});
        assertTrue("shouldn't skip format.2",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {5});
        assertTrue("shouldn't skip format.5",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {6});
        assertTrue("should skip format.6",
                createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {7});
        assertTrue("should skip format.7",
                createPaneContext(index).ignore());

        index = NDimensionalIndex.ZERO_DIMENSIONS;
        assertTrue("should treat format as format.0",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {1, 2});
        assertTrue("should treat format1.2 as format.1",
                !createPaneContext(index).ignore());
    }
View Full Code Here

        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMN_COUNT, "3");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROWS, "variable");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMNS, "variable");
        format.setParent(sfi);
       
        index = new NDimensionalIndex(new int[] {0});
        assertTrue("shouldn't skip format.0",
                !createPaneContext(index).ignore());
       
        index = new NDimensionalIndex(new int[] {1});
        assertTrue("shouldn't skip format.1",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {2});
        assertTrue("shouldn't skip format.2",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {3});
        assertTrue("should skip format.3",
                createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {4});
        assertTrue("should skip format.4",
                createPaneContext(index).ignore());

        index = NDimensionalIndex.ZERO_DIMENSIONS;
        assertTrue("should treat format as format.0",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {1, 2});
        assertTrue("should treat format1.2 as format.1",
                !createPaneContext(index).ignore());
    }
View Full Code Here

        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMN_COUNT, "0");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROWS, "fixed");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMNS, "variable");
        format.setParent(sfi);
       
        index = new NDimensionalIndex(new int[] {0});
        assertTrue("shouldn't skip format.0",
                !createPaneContext(index).ignore());
       
        index = new NDimensionalIndex(new int[] {3});
        assertTrue("shouldn't skip format.3",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {4});
        assertTrue("shouldn't skip format.4",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {5});
        assertTrue("shouldn't skip format.5",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {1000});
        assertTrue("shouldn't skip format.1000",
                !createPaneContext(index).ignore());

        index = NDimensionalIndex.ZERO_DIMENSIONS;
        assertTrue("should treat format as format.0",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {1, 2});
        assertTrue("should treat format1.2 as format.1",
                !createPaneContext(index).ignore());
    }
View Full Code Here

        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMN_COUNT, "0");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROWS, "fixed");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMNS, "variable");
        format.setParent(sfi);
       
        index = new NDimensionalIndex(new int[] {0});
        assertTrue("should skip format.0",
                createPaneContext(index).ignore());
       
        index = new NDimensionalIndex(new int[] {3});
        assertTrue("should skip format.3",
                createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {4});
        assertTrue("should skip format.4",
                createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {5});
        assertTrue("should skip format.5",
                createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {1000});
        assertTrue("should skip format.1000",
                createPaneContext(index).ignore());

        index = NDimensionalIndex.ZERO_DIMENSIONS;
        assertTrue("should treat format as format.0",
                createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {1, 2});
        assertTrue("should treat format1.2 as format.1",
                createPaneContext(index).ignore());
    }
View Full Code Here

        format.setParent(grid);
       
        grid.insertChildAt(format2, 1);
        format2.setParent(grid);

        index = new NDimensionalIndex(new int[] {0});
        assertTrue("shouldn't skip format.0",
                !createPaneContext(index).ignore());
       
        index = new NDimensionalIndex(new int[] {3});
        assertTrue("shouldn't skip format2.3",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {4});
        assertTrue("shouldn't skip format.4",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {5});
        assertTrue("shouldn't skip format2.5",
                !createPaneContext(index, format2).ignore());

        index = new NDimensionalIndex(new int[] {1000});
        assertTrue("shouldn't skip format.1000",
                !createPaneContext(index).ignore());

        index = NDimensionalIndex.ZERO_DIMENSIONS;
        assertTrue("should treat format2 as format.0",
                !createPaneContext(index, format2).ignore());

        index = new NDimensionalIndex(new int[] {1, 2});
        assertTrue("should treat format.1.2 as format.1",
                !createPaneContext(index).ignore());
    }
View Full Code Here

        format.setParent(grid);
       
        grid.insertChildAt(format2, 1);
        format2.setParent(grid);

        index = new NDimensionalIndex(new int[] {0});
        assertTrue("shouldn't skip format.0",
                !createPaneContext(index).ignore());
       
        index = new NDimensionalIndex(new int[] {1});
        assertTrue("shouldn't skip format2.1",
                !createPaneContext(index, format2).ignore());

        index = new NDimensionalIndex(new int[] {3});
        assertTrue("shouldn't skip format.3",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {4});
        assertTrue("should skip format2.4",
                createPaneContext(index, format2).ignore());

        index = new NDimensionalIndex(new int[] {5});
        assertTrue("should skip format.5",
                createPaneContext(index).ignore());

        index = NDimensionalIndex.ZERO_DIMENSIONS;
        assertTrue("should treat format2 as format.0",
                !createPaneContext(index, format2).ignore());

        index = new NDimensionalIndex(new int[] {1, 2});
        assertTrue("should treat format.1.2 as format.1",
                !createPaneContext(index).ignore());
    }
View Full Code Here

        format.setParent(grid);
       
        grid.insertChildAt(format2, 1);
        format2.setParent(grid);

        index = new NDimensionalIndex(new int[] {0});
        assertTrue("shouldn't skip format.0",
                !createPaneContext(index).ignore());
       
        index = new NDimensionalIndex(new int[] {1});
        assertTrue("shouldn't skip format2.1",
                !createPaneContext(index, format2).ignore());

        index = new NDimensionalIndex(new int[] {3});
        assertTrue("shouldn't skip format.3",
                !createPaneContext(index).ignore());

        index = new NDimensionalIndex(new int[] {4});
        assertTrue("should skip format2.4",
                createPaneContext(index, format2).ignore());

        index = new NDimensionalIndex(new int[] {5});
        assertTrue("should skip format.5",
                createPaneContext(index).ignore());

        index = NDimensionalIndex.ZERO_DIMENSIONS;
        assertTrue("should treat format2 as format.0",
                !createPaneContext(index, format2).ignore());

        index = new NDimensionalIndex(new int[] {1, 2});
        assertTrue("should treat format.1.2 as format.1",
                !createPaneContext(index).ignore());
    }
View Full Code Here

TOP

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

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.