Examples of extendWidth()


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

    }

    @Override
    public ViewAreaType viewAreaType(final Location mouseLocation) {
        final Bounds title = new Bounds(new Location(), icon.getSize());
        title.extendWidth(left);
        title.extendWidth(text.getSize().getWidth());
        if (title.contains(mouseLocation)) {
            return ViewAreaType.CONTENT;
        } else {
            return super.viewAreaType(mouseLocation);
View Full Code Here

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

    @Override
    public ViewAreaType viewAreaType(final Location mouseLocation) {
        final Bounds title = new Bounds(new Location(), icon.getSize());
        title.extendWidth(left);
        title.extendWidth(text.getSize().getWidth());
        if (title.contains(mouseLocation)) {
            return ViewAreaType.CONTENT;
        } else {
            return super.viewAreaType(mouseLocation);
        }
View Full Code Here

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

        super(content);
        this.text = text;
        this.showBounds = showBounds;
        icon = new IconGraphic(this, text);
        Size size = icon.getSize();
        size.extendWidth(text.stringWidth(string));
        setMaximumSize(size);
    }

    protected void draw(final Canvas canvas, final int x, final int y) {
        int baseline = icon.getBaseline() + y;
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()

        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()

    @Override
    public Size getRequiredSize(final Size maximumSize) {
        final Size size = super.getRequiredSize(maximumSize);
        size.ensureWidth(totalButtonWidth());
        size.extendWidth(BUTTON_SPACING * 2);
        return size;
    }

    @Override
    public View identify(final Location location) {
View Full Code Here

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

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

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

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

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

    }

    @Override
    public Size getRequiredSize(final Size maximumSize) {
        final Size size = super.getRequiredSize(maximumSize);
        size.extendWidth(ViewConstants.HPADDING * 2);
        return size;
    }
}
View Full Code Here

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

        final Size leftPanelRequiredSize = left.getRequiredSize(new Size(availableSpace));
        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
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
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.