java.lang.Object
omix.plugin.type.TypeEditHandlerInterface.PaintResponse
- Enclosing interface:
- TypeEditHandlerInterface
public static final class TypeEditHandlerInterface.PaintResponse extends Object
Answer of a
The table cell is painted as follows:
TypeEditHandlerInterface.paintCell(FieldInfo, PaintValueUtilities)
request.
In general, the PaintResponse can contain text, brush (text color),
font, pixmap and a painter. All of these members may be null
.The table cell is painted as follows:
- The text (
getText()
) is painted if available with- ...the font (
getFont()
) if available - ...and text color (
getBrush()
) if available.
- ...the font (
- If no text is available, the pixmap (
getPixmap()
) is used to fill the background otherwise it is used as decoration if available. - The icon (
getIcon()
) is used as decoration. - Finally, the painter (
getPainter()
) can fill the cell in arbitrary manner.
- Author:
- Dr. Peter Droste, Omix Visualization
-
Constructor Summary
Constructors Constructor Description PaintResponse()
-
Method Summary
Modifier and Type Method Description QBrush
getBrush()
QFont
getFont()
QIcon
getIcon()
TypeEditHandlerInterface.CellPainterInterface
getPainter()
QPalette
getPalette()
QPixmap
getPixmap()
String
getText()
void
setBrushSupplier(Supplier<QBrush> brushSupplier)
void
setFontSupplier(Supplier<QFont> fontSupplier)
void
setIconSupplier(Supplier<QIcon> iconSupplier)
void
setPainterSupplier(Supplier<TypeEditHandlerInterface.CellPainterInterface> paintingSupplier)
void
setPaletteSupplier(Supplier<QPalette> paletteSupplier)
void
setPixmapSupplier(Supplier<QPixmap> pixmapSupplier)
void
setText(String text)
void
setTextSupplier(Supplier<String> textSupplier)
-
Constructor Details
-
PaintResponse
public PaintResponse()
-
-
Method Details
-
getBrush
-
setBrushSupplier
-
getText
-
setTextSupplier
-
setText
-
getFont
-
setFontSupplier
-
getPixmap
-
setPixmapSupplier
-
getIcon
-
setIconSupplier
-
getPainter
-
setPainterSupplier
public void setPainterSupplier(Supplier<TypeEditHandlerInterface.CellPainterInterface> paintingSupplier) -
getPalette
-
setPaletteSupplier
-