Package com.volantis.mcs.protocols.layouts

Examples of com.volantis.mcs.protocols.layouts.GridInstance


        // Javadoc inherited from super class.
        public boolean visit(Grid format, Object object)
                throws FormatVisitorException {

            initialiseFormatInstance(new GridInstance(index), format);
            // Only visit the topmost format.
            return true;
        }
View Full Code Here


            final FormatInstance instance)
            throws RendererException {

        if (!instance.isEmpty()) {

            GridInstance gridInstance = (GridInstance) instance;
            boolean[] requiredColumns = gridInstance.getRequiredColumns();
            int requiredColumnCount = 0;
            for (int i = 0; i < requiredColumns.length; i++) {
                boolean requiredColumn = requiredColumns[i];
                requiredColumnCount += requiredColumn ? 1 : 0;
            }
            writeGrid(context, gridInstance,
                    context.getLayoutModule(),
                    gridInstance.getRequiredRows(),
                    requiredColumns,
                    requiredColumnCount);
        }
    }
View Full Code Here

    protected void writeChild(NDimensionalIndex childIndex, int row, int column)
            throws RendererException {

        // Handle the spatial cell processing
        GridInstance gridInstance = (GridInstance)
                context.getFormatInstance(
                        child, childIndex);

        gridRenderer.writeGrid(context, gridInstance, alignedGridModule,
                requiredSlices.getSubRows(row),
View Full Code Here

            return null;
        }
    }

    protected void updateInstance(FormatInstance instance, int row, int col) {
        GridInstance grid = (GridInstance) instance;

        boolean[] gridRows = grid.getRequiredRows();
        boolean[] gridCols = grid.getRequiredColumns();

        updateRequiredIndices(row, gridRows, requiredRows);
        updateRequiredIndices(col, gridCols, requiredColumns);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.layouts.GridInstance

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.