Klasse DataTableDecorator

java.lang.Object
org.eclipse.nebula.widgets.nattable.painter.cell.AbstractCellPainter
org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
org.deidentifier.arx.gui.view.impl.common.datatable.DataTableDecorator
Alle implementierten Schnittstellen:
org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter

public class DataTableDecorator extends org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
A table decorator. Based on code from Dirk Fauth.
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final String
    Label for adding a border at the bottom of a cell.
    static final String
    Label for adding a border at the left of a cell.
    static final String
    Label for adding a border at the right of a cell.
    static final String
    Label for adding a border at the top of a cell.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    DataTableDecorator(org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter interiorPainter, org.eclipse.nebula.widgets.nattable.style.BorderStyle defaultBorderStyle)
    Creates a new LabelLineBorderDecorator wrapping the given interior painter using the given BorderStyle as default.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    getPreferredHeight(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry)
     
    int
    getPreferredWidth(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry)
     
    void
    paintCell(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry)
     

    Von Klasse geerbte Methoden org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper

    getCellPainterAt, getWrappedPainter, getWrappedPainterBounds, setWrappedPainter

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • TOP_LINE_BORDER_LABEL

      public static final String TOP_LINE_BORDER_LABEL
      Label for adding a border at the top of a cell.
      Siehe auch:
    • BOTTOM_LINE_BORDER_LABEL

      public static final String BOTTOM_LINE_BORDER_LABEL
      Label for adding a border at the bottom of a cell.
      Siehe auch:
    • LEFT_LINE_BORDER_LABEL

      public static final String LEFT_LINE_BORDER_LABEL
      Label for adding a border at the left of a cell.
      Siehe auch:
    • RIGHT_LINE_BORDER_LABEL

      public static final String RIGHT_LINE_BORDER_LABEL
      Label for adding a border at the right of a cell.
      Siehe auch:
  • Konstruktordetails

    • DataTableDecorator

      public DataTableDecorator(org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter interiorPainter, org.eclipse.nebula.widgets.nattable.style.BorderStyle defaultBorderStyle)
      Creates a new LabelLineBorderDecorator wrapping the given interior painter using the given BorderStyle as default.
      Parameter:
      interiorPainter - The painter to be wrapped by this decorator.
      defaultBorderStyle - The BorderStyle to use as default if there is no BorderStyle configured via cell styles. Can be null.
  • Methodendetails

    • getPreferredHeight

      public int getPreferredHeight(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry)
      Angegeben von:
      getPreferredHeight in Schnittstelle org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter
      Setzt außer Kraft:
      getPreferredHeight in Klasse org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
    • getPreferredWidth

      public int getPreferredWidth(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry)
      Angegeben von:
      getPreferredWidth in Schnittstelle org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter
      Setzt außer Kraft:
      getPreferredWidth in Klasse org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
    • paintCell

      public void paintCell(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry)
      Angegeben von:
      paintCell in Schnittstelle org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter
      Setzt außer Kraft:
      paintCell in Klasse org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper