Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling renderText from Java #26

Open
garfieldnate opened this issue Apr 12, 2021 · 4 comments
Open

calling renderText from Java #26

garfieldnate opened this issue Apr 12, 2021 · 4 comments

Comments

@garfieldnate
Copy link

Hi, thanks for this useful library! I'm using it in a Java project and I wanted to try out the ROUNDED and ASCII styles, but I cannot seem to access Table.renderText (or Table.render). Is this feature meant to be available from Java?

@JakeWharton
Copy link
Owner

It should be available via TextRendering.render(table, otherArgs..)

@garfieldnate
Copy link
Author

🤔 Thanks, I had missed that completely. It's a bit unclear what I should pass as an argument after the table, though. I can't just input TextBorder.ASCII; it expects a function from Cells to TextLayouts, but the only implementation of TextLayout is SimpleLayout, and that's an internal class.

@garfieldnate
Copy link
Author

garfieldnate commented Apr 13, 2021

Note that, though I'm interested in checking out the ROUNDED style, I actually need the ASCII style as a workaround for #29.

@stjava
Copy link

stjava commented Jun 18, 2021

Can you add java examples?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants