pjfanning commented on code in PR #409: URL: https://github.com/apache/poi/pull/409#discussion_r1056789642
########## poi/src/main/java/org/apache/poi/sl/usermodel/TextRun.java: ########## @@ -79,6 +80,37 @@ enum FieldType { void setFontColor(PaintStyle color); + /** + * Returns the font highlight (background) color for this text run. + * This returns a {@link SolidPaint}, or null if no highlight is set. Review Comment: You could create a new interface in this package called `HightlightColorSupport` or something similar. Add these methods there instead. HSLFTextRun will not implement HightlightColorSupport. XSLFTextRun will. DrawTextParagraph can check if the text run is an instanceof HightlightColorSupport. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org