poi-ooxml: add new API to add text transparency on XLSX#214
Conversation
This API uses XSSFColor built with alpha channel to set up the right value. We must take care of the fact Excel uses 1000th of percent and positive numbers
| return ok; | ||
| } | ||
|
|
||
| public void setTextFillColor(XSSFColor color) { |
There was a problem hiding this comment.
could you add a getTextFillColor?
There was a problem hiding this comment.
Must I return null if no fill colour is found?
There was a problem hiding this comment.
Probably best to return null if no value is set
There was a problem hiding this comment.
Ok, I will try to do so. But translating CTColors into XSSFColor may be hard, Is there any helper to do that in the project?
There was a problem hiding this comment.
XSSFColor has public static XSSFColor from(CTColor color, IndexedColorMap map) - you can use new DefaultIndexedColorMap()
There was a problem hiding this comment.
Ok I will try to build org.openxmlformats.schemas.spreadsheetml.x2006.main.CTColor from CTSolidColorFillProperties.
I'm wondering if we cannot create a sub interface for all those colors instead of CTColor
This API uses XSSFColor built with alpha channel to set up the right value.
We must take care of the fact Excel uses 1000th of percent and positive numbers