Examples of PaddingDecorator


Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.PaddingDecorator

        natTableConfiguration.fgColor = GUIHelper.getColor(30, 76, 19);
        natTableConfiguration.hAlign = HorizontalAlignmentEnum.LEFT;
        natTableConfiguration.vAlign = VerticalAlignmentEnum.TOP;

        // A custom painter can be plugged in to paint the cells differently
        natTableConfiguration.cellPainter = new PaddingDecorator(
                new TextPainter(), 1);

        // Setup even odd row colors - row colors override the NatTable default
        // colors
        DefaultRowStyleConfiguration rowStyleConfiguration = new DefaultRowStyleConfiguration();
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.PaddingDecorator

    @Override
    public void configureRegistry(IConfigRegistry configRegistry) {
        // Plug in custom painter
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new PaddingDecorator(
                        cellPainter, 0, 0, 0, 5), DisplayMode.NORMAL,
                GridRegion.FILTER_ROW);
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.RENDER_GRID_LINES, Boolean.TRUE,
                DisplayMode.NORMAL, GridRegion.FILTER_ROW);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.PaddingDecorator

                new TextPainter(false, false, false), true));
        createNatTable(tableContainer, new TextPainter(true, true, false));
        createNatTable(tableContainer, new TextPainter(false, true, true));
        createNatTable(tableContainer, new TextPainter(true, true, true));
        createNatTable(tableContainer, new TextPainter(true, true, 5, true));
        createNatTable(tableContainer, new PaddingDecorator(new TextPainter(
                true, true, 5, true), 5));

        createVerticalHeaderNatTable(tableContainer, new VerticalTextPainter(
                false, true, false));
        createVerticalHeaderNatTable(tableContainer, new VerticalTextPainter(
                true, true, false));
        createVerticalHeaderNatTable(tableContainer,
                new GradientBackgroundPainter(new VerticalTextPainter(false,
                        false, true)));
        createVerticalHeaderNatTable(tableContainer, new VerticalTextPainter(
                true, true, true));
        createVerticalHeaderNatTable(tableContainer, new VerticalTextPainter(
                true, true, 5, true));
        createVerticalHeaderNatTable(tableContainer, new PaddingDecorator(
                new VerticalTextPainter(true, true, 5, true), 5));

        TextPainter underlineTextPainer = new TextPainter();
        underlineTextPainer.setUnderline(true);
        createNatTable2(tableContainer, underlineTextPainer);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.PaddingDecorator

            // the CustomLineBorderDecorator needs an additional border label to
            // know where to render a border
            // within the cell
            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER,
                    new CustomLineBorderDecorator(new PaddingDecorator(
                            new TextPainter(), 0, 5, 0, 0), new BorderStyle(2,
                            GUIHelper.COLOR_GREEN, LineStyleEnum.SOLID)),
                    DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_SIX_LABEL);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.PaddingDecorator

    public PercentageBarCellPainter() {
        this(2);
    }

    public PercentageBarCellPainter(int outerPadding) {
        super(new PaddingDecorator(new LineBorderDecorator(
                new PercentageBarDecorator(new TextPainter(false, false)),
                new BorderStyle()), outerPadding));
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.PaddingDecorator

            configRegistry.registerConfigAttribute(
                    EditConfigAttributes.CELL_EDITOR, comboBoxCellEditor,
                    DisplayMode.EDIT, _447_EditorExample.COLUMN_THIRTEEN_LABEL);

            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER, new PaddingDecorator(
                            new ComboBoxPainter(GUIHelper.getImage("plus")), 0,
                            2, 0, 0), DisplayMode.NORMAL,
                    _447_EditorExample.COLUMN_THIRTEEN_LABEL);
        }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.decorator.PaddingDecorator

                // border and tree icons.
                TreeImagePainter treeImagePainter = new TreeImagePainter(
                        false,
                        GUIHelper.getImage("right"), GUIHelper.getImage("right_down"), null); //$NON-NLS-1$//$NON-NLS-2$
                ICellPainter treeStructurePainter = new BackgroundPainter(
                        new PaddingDecorator(new IndentedTreeImagePainter(10,
                                null, CellEdgeEnum.LEFT, treeImagePainter,
                                false, 2, true), 0, 5, 0, 5, false));

                configRegistry.registerConfigAttribute(
                        TreeConfigAttributes.TREE_STRUCTURE_PAINTER,
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.