Examples of IteratorSizeConstraint


Examples of com.volantis.mcs.layouts.iterators.IteratorSizeConstraint

            if (logger.isDebugEnabled()) {
                logger.debug("Parent index is " + parentIndex);
            }

            // Get this temporal format iterator's properties
            IteratorSizeConstraint cellConstraint =
                    temporal.getMaxCellConstraint();

            int elements;
            // Determine no. of elements to render
            if (cellConstraint.isFixed()) {
                elements = cellConstraint.getMaximumValue();
            } else {
                // Get maximum number of cells to be rendered.
                IteratedFormatInstanceCounter instanceCounter =
                        context.getInstanceCounter();
                int cells = instanceCounter.getMaxInstances(
                        temporal, parentIndex);
                if (logger.isDebugEnabled()) {
                    logger.debug("cells=" + cells);
                }

                elements = cellConstraint.getConstrained(cells);
            }

            SlideAttributes attributes = factory.createSlideAttributes();
            String timeValues = (String) temporal.getAttribute(
                    TemporalFormatIterator.TEMPORAL_ITERATOR_CLOCK_VALUES);
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.