Package org.eclipse.nebula.widgets.nattable.painter.cell

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


        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);
        createVerticalHeaderNatTable(tableContainer, vunderlineTextPainer);
        VerticalTextPainter vstrikethroughTextPainer = new VerticalTextPainter(
                true, true, true);
        vstrikethroughTextPainer.setStrikethrough(true);
        createVerticalHeaderNatTable(tableContainer, vstrikethroughTextPainer);
        VerticalTextPainter vunderlineStrikethroughTextPainer = new VerticalTextPainter(
                true, true, true);
        vunderlineStrikethroughTextPainer.setUnderline(true);
        vunderlineStrikethroughTextPainer.setStrikethrough(true);
        createVerticalHeaderNatTable(tableContainer,
                vunderlineStrikethroughTextPainer);

        // uncomment the following lines to see different calculation
        // configurations with greater font sizes
View Full Code Here


                    @Override
                    protected void addColumnHeaderStyleConfig() {
                        addConfiguration(new DefaultColumnHeaderStyleConfiguration() {
                            {
                                cellPainter = new BeveledBorderDecorator(
                                        new VerticalTextPainter());
                            }
                        });
                    }
                });
View Full Code Here

                            }
                        }, DisplayMode.NORMAL, GridRegion.ROW_HEADER);

                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.CELL_PAINTER,
                        new BeveledBorderDecorator(new VerticalTextPainter(
                                false, true, true)), DisplayMode.NORMAL,
                        GridRegion.COLUMN_HEADER);

            }
        });
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.painter.cell.VerticalTextPainter

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.