Examples of FormatType


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

Examples of com.volantis.mcs.layouts.FormatType

        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

Examples of com.volantis.mcs.layouts.FormatType

    // 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

Examples of com.volantis.mcs.layouts.FormatType

            // 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

Examples of com.volantis.mcs.layouts.FormatType

        // 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

Examples of com.volantis.mcs.layouts.FormatType

        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

Examples of com.volantis.mcs.layouts.FormatType

            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

Examples of org.apache.cxf.ws.eventing.FormatType

        String url = TestUtil.generateRandomURLWithHttpTransport(NOTIFICATION_TEST_PORT);
        eventSinkAddr.setValue(url);
        eventSinkERT.setAddress(eventSinkAddr);
        subscribe.setDelivery(new DeliveryType());
        subscribe.getDelivery().getContent().add(new ObjectFactory().createNotifyTo(eventSinkERT));
        FormatType formatType = new FormatType();
        formatType.setName(EventingConstants.DELIVERY_FORMAT_WRAPPED);
        subscribe.setFormat(formatType);

        eventSourceClient.subscribeOp(subscribe);
        eventSourceClient.subscribeOp(subscribe);
        eventSourceClient.subscribeOp(subscribe);
View Full Code Here

Examples of org.jnetstream.capture.FormatType

      throws IOException {

    final BufferedReadableByteChannel b = new BufferedReadableByteChannel(in);
    b.mark(24);

    final FormatType type = this.formatType(b);

    switch (type) {
      case Pcap:
        b.reset();
        ByteOrder order = PcapInputCapture.checkFormat(b);
View Full Code Here

Examples of org.jnetstream.capture.FormatType

    /*
     * Now try InputCapture which may also yield a known format
     */
    ReadableByteChannel channel = new RandomAccessFile(file, "r").getChannel();
    FormatType type = formatType(channel);
    channel.close();

    if (logger.isTraceEnabled()) {
      logger.trace(file.getName() + ", type=" + FormatType.Pcap);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.