Package org.eclipse.nebula.widgets.nattable.util

Examples of org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider


    public void setUp() {
        final IDataProvider bodyDataProvider = new DataProviderFixture(10, 10);
        gridLayer = new DefaultGridLayer(bodyDataProvider,
                getColumnHeaderDataProvider(bodyDataProvider),
                getRowHeaderDataProvider(bodyDataProvider));
        gridLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 1050, 1050);
            }
        });
View Full Code Here


    @Before
    public void before() {
        dataLayer = new DataLayerFixture(20, 20, 100, 40);
        viewportLayer = new ViewportLayer(dataLayer);
        viewportLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 800, 400);
            }
View Full Code Here

    }

    private void internalSetLayer(ILayer layer) {
        if (layer != null) {
            this.underlyingLayer = layer;
            this.underlyingLayer.setClientAreaProvider(new IClientAreaProvider() {

                @Override
                public Rectangle getClientArea() {
                    final Rectangle clientArea = new Rectangle(0, 0, 0, 0);
                    if (!isDisposed()) {
View Full Code Here

            if (printerData.scope == PrinterData.SELECTION) {
                layer.setClientAreaProvider(originalClientAreaProvider);
            } else {
                final Rectangle fullLayerSize = getTotalArea();

                layer.setClientAreaProvider(new IClientAreaProvider() {
                    @Override
                    public Rectangle getClientArea() {
                        return fullLayerSize;
                    }
                });
View Full Code Here

        viewportLayer = bodyLayer.getViewportLayer();
        commandHandler = new FreezeCommandHandler(freezeLayer, viewportLayer,
                selectionLayer);
        compositeFreezeLayer.registerCommandHandler(commandHandler);

        compositeFreezeLayer.setClientAreaProvider(new IClientAreaProvider() {
            @Override
            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 600, 400);
            }
        });
View Full Code Here

        return underlyingLayer.getClientAreaProvider();
    }

    public void setClientAreaProvider(
            final IClientAreaProvider clientAreaProvider) {
        underlyingLayer.setClientAreaProvider(new IClientAreaProvider() {
            public Rectangle getClientArea() {
                return InvertUtil.invertRectangle(clientAreaProvider
                        .getClientArea());
            }
        });
View Full Code Here

        childLayer.addLayerListener(this);
        this.childLayerToLayoutCoordinateMap.put(
                childLayer, new LayoutCoordinate(layoutX, layoutY));
        this.childLayerLayout[layoutX][layoutY] = childLayer;

        childLayer.setClientAreaProvider(new IClientAreaProvider() {
            @Override
            public Rectangle getClientArea() {
                return getChildClientArea(layoutX, layoutY);
            }
        });
View Full Code Here

    public GridLayerFixture() {
        super(bodyDataProvider, colHeaderDataProvider, rowHeaderDataProvider,
                cornerDataProvider);

        setClientAreaProvider(new IClientAreaProvider() {

            private Rectangle clientArea = new Rectangle(0, 0, 400, 400);

            public Rectangle getClientArea() {
                return clientArea;
View Full Code Here

        setClientAreaProvider(getClientAreaProvider(clientArea));
    }

    private static IClientAreaProvider getClientAreaProvider(
            final Rectangle clientArea) {
        return new IClientAreaProvider() {
            public Rectangle getClientArea() {
                return clientArea;
            }
        };
    }
View Full Code Here

        this.viewportLayer = new ViewportLayer(this.selectionLayer);
        this.freezeLayer = new FreezeLayer(this.selectionLayer);

        this.compositeFreezeLayer = new CompositeFreezeLayer(
                this.freezeLayer, this.viewportLayer, this.selectionLayer);
        this.compositeFreezeLayer.setClientAreaProvider(new IClientAreaProvider() {

            @Override
            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 600, 150);
            }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider

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.