Module omix.api
Package omix.plugin.type
Interface TypeGraphicsHandlerInterface.ValuePainterInterface
- All Known Subinterfaces:
TypeGraphicsHandlerInterface.ResizableValuePainterInterface
- Enclosing interface:
- TypeGraphicsHandlerInterface
public static interface TypeGraphicsHandlerInterface.ValuePainterInterface
This interface must be derived in order to realize
painting of custom object types.
- Author:
- Dr. Peter Droste, Omix Visualization
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
TypeGraphicsHandlerInterface.ValuePainterInterface.ResizeListenerInterface
static interface
TypeGraphicsHandlerInterface.ValuePainterInterface.UpdateListenerInterface
-
Method Summary
Modifier and Type Method Description default void
addResizeListener(TypeGraphicsHandlerInterface.ValuePainterInterface.ResizeListenerInterface updateListener)
default void
addUpdateListener(TypeGraphicsHandlerInterface.ValuePainterInterface.UpdateListenerInterface updateListener)
default void
destroy()
default void
moveToThread(QThread thread)
void
paint(QPainter painter, QRectF clipping)
Called when an object of specific type shall be painted in accessoryObjectField
or in Visualization on Demand (VoD).default void
removeResizeListener(TypeGraphicsHandlerInterface.ValuePainterInterface.ResizeListenerInterface updateListener)
default void
removeUpdateListener(TypeGraphicsHandlerInterface.ValuePainterInterface.UpdateListenerInterface updateListener)
void
setBackground(QColor color)
This method is invoked after creating the value painter and before the value is painted.void
setFont(QFont font)
This method is invoked after creating the value painter and before the value is painted.void
setForeground(QColor color)
This method is invoked after creating the value painter and before the value is painted.QSizeF
size()
The size of the painting area required for the value painting.
-
Method Details
-
paint
Called when an object of specific type shall be painted in accessoryObjectField
or in Visualization on Demand (VoD).- Parameters:
painter
-clipping
- the bounds of the paint region
-
size
QSizeF size()The size of the painting area required for the value painting.- Returns:
- size of the painting area
-
setFont
This method is invoked after creating the value painter and before the value is painted. It receives the current font of the accessoryObjectField
or VoD environment. This font can be used if the value shall be visual represented by text.- Parameters:
font
-
-
setForeground
This method is invoked after creating the value painter and before the value is painted. It receives the foreground color (text color) of the accessoryObjectField
. This color can be used for painting the value.- Parameters:
color
-
-
setBackground
This method is invoked after creating the value painter and before the value is painted. It receives the current font of the accessoryObjectField
. This color can be used for painting the value.- Parameters:
color
-
-
moveToThread
-
destroy
default void destroy() -
addUpdateListener
default void addUpdateListener(TypeGraphicsHandlerInterface.ValuePainterInterface.UpdateListenerInterface updateListener) -
removeUpdateListener
default void removeUpdateListener(TypeGraphicsHandlerInterface.ValuePainterInterface.UpdateListenerInterface updateListener) -
addResizeListener
default void addResizeListener(TypeGraphicsHandlerInterface.ValuePainterInterface.ResizeListenerInterface updateListener) -
removeResizeListener
default void removeResizeListener(TypeGraphicsHandlerInterface.ValuePainterInterface.ResizeListenerInterface updateListener)
-