Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.FormatType


                                                 ODOMElement element,
                                                 FormatComposite root) {

        FormatComposite formatComposite = null;

        FormatType formatType =
                FormatType.getFormatTypeForElementName(element.getName());

        // formatType will be null if the element is something that supports
        // formats rather than being an actual format e.g. gridFormatColumns
        // In this case there is nothing to build.
View Full Code Here


        List exceptions = new ArrayList();
        Object canvasArgs [] = { new CanvasLayout() };
        Object montageArgs [] = { new MontageLayout() };

        while(iterator.hasNext()) {
            FormatType type = (FormatType) iterator.next();
            Class formatClass = type.getFormatClass();

            Format format = null;
            // Try initialising with a canvas layout first.
            Class[] argTypes;
            argTypes = new Class[] { CanvasLayout.class };
View Full Code Here

    // Javadoc inherited
    public FormatRenderer selectFormatRenderer(Format format)
            throws RendererException {
        FormatRenderer renderer = null;

        FormatType type = format.getFormatType();

        if (type == FormatType.COLUMN_ITERATOR_PANE) {
            renderer = columnIteratorPaneRenderer;
        } else if (type == FormatType.DISSECTING_PANE) {
            renderer = dissectingPaneRenderer;
View Full Code Here

            // or one row and two columns, or a single pane.
            Format parent = pane.getParent();

            if (parent != null)
            {
                FormatType formatType = parent.getFormatType();
                if (FormatType.GRID.equals(formatType))
                {
                    Grid grid = (Grid)parent;
                    int rows = grid.getRows();
                    int columns = grid.getColumns();
View Full Code Here

        // If the user hasn't specified a width for this format then if the
        // format is a grid, evenly space out the width of the columns,
        // else assume it's 100%. (By default the width units will be percentages
        // if a width hasn't been specified.)
        if (formatWidth == null) {
            FormatType type = format.getFormatType();
            if (FormatType.GRID == type) {
                int columns = format.getColumns();
                formatWidthValue = 100 / columns;
            } else {
                formatWidthValue = 100;
View Full Code Here

        typeToBuilder.put(FormatType.SEGMENT_GRID, noRuleBuilder);
        typeToBuilder.put(FormatType.SEGMENT, noRuleBuilder);
    }

    public FormatRuleBuilder selectBuilder(Format format) {
        FormatType type = format.getFormatType();
        FormatRuleBuilder builder = (FormatRuleBuilder) typeToBuilder.get(type);
        if (builder == null) {
            throw new IllegalStateException(
                    "Unknown format type " + type.getTypeName());
        }

        return builder;
    }
View Full Code Here

            FormatType.SPATIAL_FORMAT_ITERATOR,
            FormatType.TEMPORAL_FORMAT_ITERATOR
        };

        for (int i = 0; i < types.length; i++) {
            FormatType type = types[i];
            Element expected = expectedDOM(type);

            compare(expected, FormatPrototype.get(type));
        }
View Full Code Here

TOP

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

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.