Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8433501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:24:11+00:00 2026-06-10T06:24:11+00:00

I am looking for a good java library to manipulate box, arrows and labels

  • 0

I am looking for a good java library to manipulate box, arrows and labels in order to dynamically create and fill diagrams like the following and render them to a png :
enter image description here
Another example
enter image description here

I can create a static template to be filled later, but I will need to dynamically create labels for every box and edges in the diagrams.

For now I have tried using batik to manipulate an svg template but creating multiline labels for the edges is proving quite complicated. The SVG way with batik seems to force me to create 1 text object for each label line with absolute positioning for each which is a real pain.

I would like to be able to define the label specifying only the text and the link they relate to, eventually some hints as to how it should be placed and let the library place them.

Any suggestions ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:24:13+00:00Added an answer on June 10, 2026 at 6:24 am

    If this is in a commercial scenario, the Java graph drawing library yFiles can be a good match for your requirements:

    You can use a convenient API to create and style your diagram and automatically layout the diagram with lots and lots options to constrain the resulting layout to suit your needs.
    Multi-line and (simple) HTML labels are supported out-of-the-box.
    Also you can export to PNG (as well as other pixel based image formats) and vector graphics formats like SVG, PDF, EPS.

    This can be done both in a regular Java (Swing) application as well as in a headless environment (e.g. to create images on a server and to send them to a web-based thin client dynamically).

    To get a feel what can be done using that library, I suggest you take a look at the freely available graph editor application “yEd” that is based on yFiles and lets you try out the above steps in an interactive manner.

    (Disclosure: I work for yWorks, but on Stackoverflow I do not represent my employer.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a Java compression library that: is good for XML has a
I'm looking for a good charting library for Java. It can be open source
I am looking for any good Socket library with events for Java. Mainly it
Is there a good library for functional programming in Java? I'm looking for stuff
I am looking for a good Java Graph Library which is thread safe for
I'm looking for a good Java library that easily allows the read/write of fixed-width
I am looking for a good visualization library in Java for my school project
Possible Duplicate: Fast Java library for circle recognition I'm looking for a good Java
I'm looking for a good easy to use Java based Quadratic Programming (QP) solver.
I'm looking for a good sorted list for java. Googling around give me some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.