Examples of TextPainter


Examples of org.apache.batik.gvt.TextPainter

        final BatikUaDocument userAgent = new BatikUaDocument(
                new AffineTransform());
        userAgent.setLogger(this.svg.getLogger());
        BridgeContext ctx = new BridgeContext(userAgent);
        GVTBuilder builder = new GVTBuilder();
        TextPainter textPainter = null;
        if (strokeSVGText) {
            textPainter = new StrokingTextPainter();
        } else {
            textPainter = new PDFTextPainter(fontConsumer, this.svg.getLogger());
        }
View Full Code Here

Examples of org.apache.batik.gvt.TextPainter

                  RenderingHints.VALUE_INTERPOLATION_BILINEAR);

            FontRenderContext fontRenderContext =
                new FontRenderContext(new AffineTransform(), true, true);

            TextPainter textPainter = new StrokingTextPainter();

            GraphicsNodeRableFactory gnrFactory =
                new ConcreteGraphicsNodeRableFactory();

            nodeRenderContext =
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.image.painter.TextPainter

  {
    super(
      new AdjustableBorderPainter(
        new DisabledColorChange(
          new OffscreenWrappingPainter(
            new TextPainter(TEXT_KEY)
            )),
        topMargin,
        _TEXT_START_MARGIN,
        bottomMargin,
        _TEXT_END_MARGIN,
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.image.painter.TextPainter

  {
    super(
      new AdjustableBorderPainter(
        new DisabledColorChange(
          new OffscreenWrappingPainter(
            new TextPainter(TEXT_KEY)
            )),
        0,
        _TEXT_START_MARGIN,
        0,
        _TEXT_END_MARGIN,
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.image.painter.TextPainter

  {
    super(
      new AdjustableBorderPainter(
        new DisabledColorChange(
          new OffscreenWrappingPainter(
            new TextPainter(TEXT_KEY)
            )),
        topMargin,
        _TEXT_START_MARGIN,
        bottomMargin,
        _TEXT_END_MARGIN,
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.image.painter.TextPainter

  {
    super(
      new AdjustableBorderPainter(
        new DisabledColorChange(
          new OffscreenWrappingPainter(
            new TextPainter(TEXT_KEY)
            )),
        0,
        _TEXT_START_MARGIN,
        0,
        _TEXT_END_MARGIN,
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.image.painter.TextPainter

  {
    super(
      new AdjustableBorderPainter(
        new DisabledColorChange(
          new OffscreenWrappingPainter(
            new TextPainter(TEXT_KEY)
            )),
        0,
        _TEXT_START_MARGIN,
        0,
        _TEXT_END_MARGIN,
View Full Code Here

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

    public void configureRegistry(IConfigRegistry configRegistry) {

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.TOP, new ImagePainter(
                                GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_ONE_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.BOTTOM,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_TWO_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.LEFT, new ImagePainter(
                                GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_THREE_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.RIGHT,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_FOUR_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.TOP_LEFT,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_FIVE_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.TOP_RIGHT,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_SIX_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.BOTTOM_LEFT,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_SEVEN_LABEL);

        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new CellPainterDecorator(
                        new TextPainter(), CellEdgeEnum.BOTTOM_RIGHT,
                        new ImagePainter(GUIHelper.getImage("plus")),
                        this.paintDecorationdepentend), DisplayMode.NORMAL,
                CellPainterDecorator_Example.COLUMN_EIGHT_LABEL);

    }
View Full Code Here

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

                                ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 0);

                configRegistry.registerConfigAttribute(
                        CellConfigAttributes.CELL_PAINTER,
                        new BackgroundPainter(new CellPainterDecorator(
                                new TextPainter() {
                                    @Override
                                    protected String convertDataType(
                                            ILayerCell cell,
                                            IConfigRegistry configRegistry) {
                                        Datum dataValue = (Datum) cell
View Full Code Here

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

        natTable.addConfiguration(new DefaultNatTableStyleConfiguration() {
            {
                // override the LineBorderDecorator here to show how to paint
                // borders on single sides of a cell
                cellPainter = new CustomLineBorderDecorator(new TextPainter());
                // set a border style
                borderStyle = new BorderStyle(2, GUIHelper.COLOR_BLUE,
                        LineStyleEnum.DASHDOT);
            }
        });
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.