Examples of TextPainter


Examples of org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter

        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();
        rowStyleConfiguration.oddRowBgColor = GUIHelper.getColor(254, 251, 243);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter

     * @deprecated Use constructor without IRowGroupModel reference
     */
    @SuppressWarnings("rawtypes")
    @Deprecated
    public RowGroupHeaderTextPainter(IRowGroupModel rowGroupModel) {
        this(rowGroupModel, new TextPainter());
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter

     * {@link TextPainter} as base {@link ICellPainter} and decorate it with the
     * {@link RowGroupExpandCollapseImagePainter} on the bottom edge of the
     * cell.
     */
    public RowGroupHeaderTextPainter() {
        this(new TextPainter());
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter

    }

    private void addButtonToColumn(IConfigRegistry configRegistry,
            Composite parent) {
        buttonPainter = new ButtonCellPainter(new CellPainterDecorator(
                new TextPainter(), CellEdgeEnum.RIGHT, new ImagePainter(
                        GUIHelper.getImage("preferences"))));

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, buttonPainter,
                DisplayMode.NORMAL, CUSTOM_CELL_LABEL);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter

        tableContainer.setLayout(new GridLayout(6, true));
        GridDataFactory.fillDefaults().grab(true, true).applyTo(tableContainer);

        createNatTable(tableContainer, new GradientBackgroundPainter(
                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);
        TextPainter strikethroughTextPainer = new TextPainter();
        strikethroughTextPainer.setStrikethrough(true);
        createNatTable2(tableContainer, strikethroughTextPainer);
        TextPainter underlineStrikethroughTextPainer = new TextPainter();
        underlineStrikethroughTextPainer.setUnderline(true);
        underlineStrikethroughTextPainer.setStrikethrough(true);
        createNatTable2(tableContainer, underlineStrikethroughTextPainer);

        VerticalTextPainter vunderlineTextPainer = new VerticalTextPainter(
                true, true, true);
        vunderlineTextPainer.setUnderline(true);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter

     *
     * @deprecated Use constructor without ColumnGroupModel reference
     */
    @Deprecated
    public ColumnGroupHeaderTextPainter(ColumnGroupModel columnGroupModel) {
        this(columnGroupModel, new TextPainter());
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter

     * {@link TextPainter} as base {@link ICellPainter} and decorate it with the
     * {@link ColumnGroupExpandCollapseImagePainter} on the right edge of the
     * cell.
     */
    public ColumnGroupHeaderTextPainter() {
        this(new TextPainter());
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter

                columnLabelAccumulator, dataProvider));

        final ColumnHeaderCheckBoxPainter columnHeaderCheckBoxPainter = new ColumnHeaderCheckBoxPainter(
                bodyDataLayer);
        final ICellPainter column9HeaderPainter = new BeveledBorderDecorator(
                new CellPainterDecorator(new TextPainter(), CellEdgeEnum.RIGHT,
                        columnHeaderCheckBoxPainter));
        natTable.addConfiguration(new AbstractRegistryConfiguration() {
            @Override
            public void configureRegistry(IConfigRegistry configRegistry) {
                configRegistry.registerConfigAttribute(
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter

                    Display.getDefault(),
                    getClass()
                            .getResourceAsStream(
                                    "/org/eclipse/nebula/widgets/nattable/examples/resources/selected_column_header_bg.png"));

            TextPainter txtPainter = new TextPainter(false, false);

            ICellPainter bgImagePainter = new BackgroundImagePainter(
                    txtPainter, bgImage, GUIHelper.getColor(192, 192, 192));

            configRegistry.registerConfigAttribute(
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.painter.cell.TextPainter

                    CellConfigAttributes.CELL_STYLE, style, DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_FOUR_LABEL);

            configRegistry.registerConfigAttribute(
                    CellConfigAttributes.CELL_PAINTER,
                    new GradientBackgroundPainter(new TextPainter(false, false,
                            false, true), true), DisplayMode.NORMAL,
                    _4222_CellPainterExample.COLUMN_FOUR_LABEL);
        }
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.