Examples of BackgroundPainter


Examples of games.stendhal.client.gui.j2d.BackgroundPainter

    /**
     * Create a new PrettyEditorPane.
     */
    public PrettyEditorPane() {
      background = new BackgroundPainter(BACKGROUND_IMAGE);
      setOpaque(false);
      setContentType("text/html");
      setEditable(false);
    }
View Full Code Here

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

                                DisplayMode.NORMAL,
                                ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 0);

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

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

    public void configureRegistry(IConfigRegistry configRegistry) {
        // register a TextPainter to ensure that the GroupBy objects are
        // rendered as text
        // even if in the first column by default another painter is registered
        configRegistry.registerConfigAttribute(
                CellConfigAttributes.CELL_PAINTER, new BackgroundPainter(
                        new GroupByCellTextPainter()), DisplayMode.NORMAL,
                GroupByDataLayer.GROUP_BY_OBJECT);

        // register a converter for group by summary values that renders ... in
        // case there is
View Full Code Here

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

                    log.warn("There is no IndentedTreeImagePainter found for TREE_STRUCTURE_PAINTER, " //$NON-NLS-1$
                            + "using local configured IndentedTreeImagePainter as fallback"); //$NON-NLS-1$
                    // fallback
                    this.indentedTreeImagePainter
                    .setBaseCellPainter(cellPainter);
                    cellPainter = new BackgroundPainter(
                            this.indentedTreeImagePainter);
                }
            } else {
                // backwards compatibility fallback
                this.indentedTreeImagePainter.setBaseCellPainter(cellPainter);
                cellPainter = new BackgroundPainter(
                        this.indentedTreeImagePainter);
            }
        }

        return cellPainter;
View Full Code Here

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

                // between cell
                // 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(
View Full Code Here

Examples of prefuse.util.display.BackgroundPainter

     * false to only include the image once
     */
    public synchronized void setBackgroundImage(Image image,
                                      boolean fixed, boolean tileImage)
    {
        BackgroundPainter bg = null;
        if ( image != null )
            bg = new BackgroundPainter(image, fixed, tileImage);
        setBackgroundPainter(bg);
    }
View Full Code Here

Examples of prefuse.util.display.BackgroundPainter

     * false to only include the image once
     */
    public synchronized void setBackgroundImage(String location,
                                      boolean fixed, boolean tileImage)
    {
        BackgroundPainter bg = null;
        if ( location != null )
            bg = new BackgroundPainter(location, fixed, tileImage);
        setBackgroundPainter(bg);       
    }
View Full Code Here

Examples of prefuse.util.display.BackgroundPainter

     * false to only include the image once
     */
    public synchronized void setBackgroundImage(Image image,
                                      boolean fixed, boolean tileImage)
    {
        BackgroundPainter bg = null;
        if ( image != null )
            bg = new BackgroundPainter(image, fixed, tileImage);
        setBackgroundPainter(bg);
    }
View Full Code Here

Examples of prefuse.util.display.BackgroundPainter

     * false to only include the image once
     */
    public synchronized void setBackgroundImage(String location,
                                      boolean fixed, boolean tileImage)
    {
        BackgroundPainter bg = null;
        if ( location != null )
            bg = new BackgroundPainter(location, fixed, tileImage);
        setBackgroundPainter(bg);       
    }
View Full Code Here

Examples of tvbrowser.ui.programtable.background.BackgroundPainter

    return mColumnWidth;
  }


  public void updateBackground() {
    BackgroundPainter oldPainter = mBackgroundPainter;
   
    String background = Settings.propTableBackgroundStyle.getString();
   
    if(oldPainter instanceof SingleColorBackPainter && !background.equals("singleColor")) {
      resetBackground();
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.