Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.SpatialFormatIterator


        pane = new Pane(null);
        paneInstance = new PaneInstance(ONE_DIMENSIONAL_INDEX);

        deviceLayoutContext = new MyDeviceLayoutContext();

        sfi2 = new SpatialFormatIterator(null);
        sfi2.setInstance(0);

        sfi2Instance = new SpatialFormatIteratorInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        sfi2Instance.setDeviceLayoutContext(deviceLayoutContext);
        sfi2Instance.setFormat(sfi2);

        sfi = new SpatialFormatIterator(null);
        sfi.setInstance(1);

        sfiInstance = new SpatialFormatIteratorInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        sfiInstance.setDeviceLayoutContext(deviceLayoutContext);
View Full Code Here


        pane.setName("pane");

        paneInstance = new PaneInstance(NDimensionalIndex.ZERO_DIMENSIONS);
        paneInstance.setDeviceLayoutContext(deviceLayoutContext);
       
        sfi = new SpatialFormatIterator(canvasLayout);
        sfi.setName("sfi");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROW_COUNT, "2");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROWS, "fixed");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMN_COUNT, "1");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMNS, "fixed");
View Full Code Here

        pane.setName("pane");
       
        paneInstance = new TestPaneInstance();
        paneInstance.setDeviceLayoutContext(deviceLayoutContext);
       
        sfi = new SpatialFormatIterator(canvasLayout);
        sfi.setName("sfi");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROW_COUNT, "2");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_ROWS, "fixed");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMN_COUNT, "1");
        sfi.setAttribute(SpatialFormatIterator.SPATIAL_ITERATOR_COLUMNS, "fixed");
View Full Code Here

    public void notestStyling()
            throws Exception {

        // Create and activate the runtime device layout.
        RuntimeDeviceLayout runtimeDeviceLayout = createRuntimeDeviceLayout();
        SpatialFormatIterator spatialFormatIterator = (SpatialFormatIterator)
                runtimeDeviceLayout.getRootFormat();

        // Initialise the device layout and page contexts.
        DeviceLayoutContext deviceLayoutContext = new DeviceLayoutContext();
//        deviceLayoutContext.setStylingFactory(StylingFactory.getDefaultInstance());
View Full Code Here

        } else if (type == FormatType.SEGMENT) {
            renderer = segmentRenderer;
        } else if (type == FormatType.SEGMENT_GRID) {
            renderer = segmentGridRenderer;
        } else if (type == FormatType.SPATIAL_FORMAT_ITERATOR) {
            SpatialFormatIterator spatial = (SpatialFormatIterator) format;

            if (spatial.isContentAligned() &&
                    (spatial.getNumChildren() == 1) &&
                    (spatial.getChildAt(0) instanceof Grid)) {
                renderer = alignedSpatialFormatIteratorRenderer;
            } else {
                renderer = spatialFormatIteratorRenderer;
            }
        } else if (type == FormatType.TEMPORAL_FORMAT_ITERATOR) {
View Full Code Here

        columns = coordinateConverter.getColumns();
    }

    protected boolean calculate() {

        final SpatialFormatIterator spatial =
                (SpatialFormatIterator) formatInstance.getFormat();

        if ((formatInstance == null) || formatInstance.isEmpty()
                || rows == 0) {
            return false;
        }


        NDimensionalIndex childIndex =
                formatInstance.getIndex().addDimension();

        // Retrieve the (must be) single SpatialIterator's child
        int numChildren = spatial.getNumChildren();
        final Format child = spatial.getChildAt(0);
        if (numChildren != 1) {
            throw new IllegalStateException(exceptionLocalizer.format(
                    "render-spatial-iterator-multiple-children"));
        }
View Full Code Here

        if ((instance == null) || instance.isEmpty()) {
            return;
        }

        SpatialFormatIterator spatial = (SpatialFormatIterator)
                instance.getFormat();

        // Start styling
        FormatStylingEngine formatStylingEngine =
                context.getFormatStylingEngine();
        Styles formatStyles = formatStylingEngine.startStyleable(
                spatial, spatial.getStyleClass());

        CoordinateConverter converter = chooseCoordinateConverter(
                context, instance, spatial, formatStyles);

        render(context, instance, formatStyles, converter);
View Full Code Here

TOP

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

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.