Examples of extendWidth()


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

    @Override
    public Size getRequiredSize(final Size availableSpace) {
        final Size size = new Size();

        size.extendWidth(BORDER_WIDTH);
        final Size iconMaximumSize = iconView.getRequiredSize(Size.createMax());
        size.extendWidth(iconMaximumSize.getWidth());

        size.extendHeight(iconMaximumSize.getHeight());
        size.ensureHeight(WindowControl.HEIGHT);
View Full Code Here

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

    @Override
    public Size getRequiredSize(final Size availableSpace) {
        final Size size = new Size();

        size.extendWidth(BORDER_WIDTH);
        final Size iconMaximumSize = iconView.getRequiredSize(Size.createMax());
        size.extendWidth(iconMaximumSize.getWidth());

        size.extendHeight(iconMaximumSize.getHeight());
        size.ensureHeight(WindowControl.HEIGHT);
View Full Code Here

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

            size.ensureWidth(itemWidth);
            size.extendHeight(style().getLineHeight() + VPADDING);
        }

        size.extend(getPadding());
        size.extendWidth(HPADDING * 2);
        return size;
    }

    public int getOption() {
        return optionIdentified;
View Full Code Here

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

        final Size size = wrappedView.getRequiredSize(new Size(maximumSize));
        if (size.getWidth() > maximumSize.getWidth()) {
            size.extendHeight(SCROLLBAR_WIDTH);
        }
        if (size.getHeight() > maximumSize.getHeight()) {
            size.extendWidth(SCROLLBAR_WIDTH);
        }
        size.extend(left, top);
        size.limitSize(maximumSize);
        return size;
    }
View Full Code Here

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

        final Size rightPanelRequiredSize =
            right == null ? new Size() : right.getRequiredSize(new Size(availableSpace));

        // combine the two sizes
        final Size totalSize = new Size(leftPanelRequiredSize);
        totalSize.extendWidth(rightPanelRequiredSize.getWidth());
        totalSize.ensureHeight(rightPanelRequiredSize.getHeight());

        if (totalSize.getWidth() > availableSpace.getWidth()) {
            /*
             * If the combined width is greater than the available then we need to divide the space between the two
View Full Code Here

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

            rightPanelRequiredSize = right == null ? new Size() : right.getRequiredSize(maximumSizeRight);
        }

        // combine the two required sizes
        final Size combinedSize = new Size(leftPanelRequiredSize);
        combinedSize.extendWidth(rightPanelRequiredSize.getWidth());
        combinedSize.ensureHeight(rightPanelRequiredSize.getHeight());
        return combinedSize;
    }

    protected void showInRightPane(final View view) {
View Full Code Here

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

    }

    @Override
    public Size getRequiredSize(final Size availableSpace) {
        final Size size = icon.getSize();
        size.extendWidth(View.HPADDING);
        size.extendWidth(text.getSize().getWidth());
        return size;
    }

    private Consent canDrop(final ObjectAdapter dragSource) {
View Full Code Here

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

    @Override
    public Size getRequiredSize(final Size availableSpace) {
        final Size size = icon.getSize();
        size.extendWidth(View.HPADDING);
        size.extendWidth(text.getSize().getWidth());
        return size;
    }

    private Consent canDrop(final ObjectAdapter dragSource) {
        final ObjectContent content = (ObjectContent) getContent();
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.