Examples of limitWidth()


Examples of org.apache.isis.viewer.dnd.drawing.Size.limitWidth()

        final int height = maxHeight - 80;
        final int x = 100;
        final int y = 100;

        final Size defaultWindowSize = new Size(width, height);
        defaultWindowSize.limitWidth(800);
        defaultWindowSize.limitHeight(600);

        final Size size = Properties.getSize(Properties.PROPERTY_BASE + "initial.size", defaultWindowSize);
        final Location location = Properties.getLocation(Properties.PROPERTY_BASE + "initial.location", new Location(x, y));
        return new Bounds(location, size);
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Size.limitWidth()

            maxWidth = Math.max(maxWidth, s.getWidth());
        }

        for (final View v : subviews) {
            final Size s = v.getRequiredSize(new Size(maximumSize));
            s.limitWidth(maximumSize.getWidth());
            if (fixedWidth || v.getSpecification().isAligned()) {
                s.ensureWidth(maxWidth);
            }
            v.setSize(s);
            v.setLocation(new Location(x, y));
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Size.limitWidth()

        final int height = maxHeight - 80;
        final int x = 100;
        final int y = 100;

        final Size defaultWindowSize = new Size(width, height);
        defaultWindowSize.limitWidth(800);
        defaultWindowSize.limitHeight(600);

        final Size size = Properties.getSize(Properties.PROPERTY_BASE + "initial.size", defaultWindowSize);
        final Location location = Properties.getLocation(Properties.PROPERTY_BASE + "initial.location", new Location(x, y));
        return new Bounds(location, size);
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Size.limitWidth()

        final int height = maxHeight - 80;
        final int x = 40;
        final int y = 40;

        final Size defaultWindowSize = new Size(width, height);
        defaultWindowSize.limitWidth(800);
        defaultWindowSize.limitHeight(600);

        final Size size = Properties.getSize(Properties.PROPERTY_BASE + "initial.size", defaultWindowSize);
        final Location location =
            Properties.getLocation(Properties.PROPERTY_BASE + "initial.location", new Location(x, y));
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Size.limitWidth()

            maxWidth = Math.max(maxWidth, s.getWidth());
        }

        for (final View v : subviews) {
            final Size s = v.getRequiredSize(new Size(maximumSize));
            s.limitWidth(maximumSize.getWidth());
            if (fixedWidth || v.getSpecification().isAligned()) {
                s.ensureWidth(maxWidth);
            }
            v.setSize(s);
            v.setLocation(new Location(x, y));
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.