Class InfoBoxPainter
java.lang.Object
com.inductiveautomation.ignition.designer.gui.attributetextpane.AbstractAttributeTextPanePainter
com.inductiveautomation.ignition.designer.gui.attributetextpane.painters.InfoBoxPainter
- All Implemented Interfaces:
AttributeTextPanePainter
Note: This class should be the last class added to the painters list of the AttributeTextPane. This is because
it will paint the info box on top of the other painters.
-
Constructor Summary
ConstructorsConstructorDescriptionInfoBoxPainter
(AttributeTextPane textPane) InfoBoxPainter
(AttributeTextPane textPane, Function<Element, String> infoBoxTextFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoid
paint
(AttributeTextPaneLabelView labelView, AttributeSet attrs, Graphics2D g2, Shape allocated) Methods inherited from class com.inductiveautomation.ignition.designer.gui.attributetextpane.AbstractAttributeTextPanePainter
getViewRectangle
-
Constructor Details
-
InfoBoxPainter
-
InfoBoxPainter
-
-
Method Details
-
paint
public void paint(AttributeTextPaneLabelView labelView, AttributeSet attrs, Graphics2D g2, Shape allocated) - Parameters:
labelView
- The label view that is being paintedattrs
- The attributes of the current viewg2
- The graphics context to paint onallocated
- The allocated shape for the view, this is the area for painting.
-