JavaFXSmartGraph icon indicating copy to clipboard operation
JavaFXSmartGraph copied to clipboard

add the possibility to draw rectangles behind vertex labels to improve readability

Open elbosso opened this issue 1 year ago • 1 comments

I propose to attach not only a label to each vertex but a rectangle as well - this is then painted underneath the label, adding visual distinction and improving readability.

For example:

image

elbosso avatar Aug 19 '24 15:08 elbosso

to this end, i propose a new style class (example):

.vertex-label-rect {
    -fx-stroke-width: 3;
    -fx-stroke: #A0A0A0;
    -fx-stroke-type: outside;
    -fx-fill: #D0D0D0;
    -fx-opacity: 0.4;
}

elbosso avatar Aug 19 '24 15:08 elbosso

Will try to get to this. Seems like a good improvement and through styling (or its absence) we can keep the current look.

brunomnsilva avatar May 17 '25 19:05 brunomnsilva

Done!

Example:

Image

brunomnsilva avatar May 19 '25 19:05 brunomnsilva