Package org.apache.isis.viewer.dnd.drawing

Examples of org.apache.isis.viewer.dnd.drawing.Location


        Properties.saveSizeOption(Properties.PROPERTY_BASE + "initial.size", bounds.getSize());
    }

    public void locationChange(final int x, final int y) {
        Properties.saveLocationOption(Properties.PROPERTY_BASE + "initial.location", new Location(x, y));
    }
View Full Code Here


                x = ViewConstants.HPADDING;
                y += lineHeight + ViewConstants.VPADDING;
                lineHeight = 0;
            }
            button.setSize(buttonSize);
            button.setLocation(new Location(x, y));
            x += buttonSize.getWidth() + ViewConstants.HPADDING;
            lineHeight = Math.max(lineHeight, buttonSize.getHeight());
        }
    }
View Full Code Here

            markDamaged();
            return;
        }

        if (isEditable) {
            final Location location = click.getLocation();
            final int col = column(location);
            final int row = row(location);
            if (col >= 0 && col < COLUMNS && row >= 0 && row < ROWS) {
                date.add(Calendar.DAY_OF_MONTH, row * 7 + col);
                final Content content = getContent();
View Full Code Here

        final int height = barHeight * noBars;
        final View[] subviews = view.getSubviews();
        int y = ViewConstants.VPADDING;
        for (final View bar : subviews) {
            bar.setSize(new Size(width, height));
            bar.setLocation(new Location(ViewConstants.HPADDING, y));
            y += height;
        }
    }
View Full Code Here

            s.setWidth(axis.getColumnWidth(i));
            cell.setSize(s);

            final int b = cell.getBaseline();
            final int baselineOffset = Math.max(0, maxBaseline - b);
            cell.setLocation(new Location(x, baselineOffset));

            x += s.getWidth();
        }
    }
View Full Code Here

        final View grid = getSubviews()[1];
        final Size gridSize = getRequiredSize(Size.createMax());
        gridSize.contract(getPadding());
        gridSize.contractHeight(toolbarSize.getHeight());
        bounds = new Bounds(new Location(0, toolbarSize.getHeight()), gridSize);
        grid.setBounds(bounds);
        LOG.debug("   grid " + toolbarSize);

    }
View Full Code Here

        size.contractWidth(ViewConstants.HPADDING);
        size.contractWidth(controls.length * (WindowControl.WIDTH + ViewConstants.HPADDING));

        size.contractHeight(BORDER_WIDTH * 2);

        iconView.setLocation(new Location(BORDER_WIDTH, BORDER_WIDTH));
        iconView.setSize(size);
    }
View Full Code Here

        x -= widthControl * controls.length;
        final int y = BORDER_WIDTH;

        for (final WindowControl control : controls) {
            control.setSize(control.getRequiredSize(Size.createMax()));
            control.setLocation(new Location(x, y));
            x += widthControl;
        }
    }
View Full Code Here

        }

        if (logo == null) {
            LOG.debug("logo image not found: " + fileName);
        } else {
            location = Properties.getLocation(PARAMETER_BASE + "location", new Location(-30, -30));
            logoSize = Properties.getSize(PARAMETER_BASE + "size", logo.getSize());
        }
    }
View Full Code Here

    }

    @Override
    public DragEvent dragStart(final DragStart drag) {
        if (overBorder(drag.getLocation())) {
            final Location location = drag.getLocation();
            final DragViewOutline dragOverlay = new DragViewOutline(getView());
            return new ViewDragImpl(this, new Offset(location.getX(), location.getY()), dragOverlay);
        } else {
            return super.dragStart(drag);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.drawing.Location

Copyright © 2018 www.massapicom. 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.