nsacartoon.blogg.se

Crosshair overlay change color
Crosshair overlay change color








But using Crosshair#setLabelOutlineVisible(boolean) will also remove the text and Crosshair#setLabelFont(Font) doesn't change the font at all.

crosshair overlay change color crosshair overlay change color

tLabelGenerator(new CrosshairLabelGenerator() String generateLabel(final Crosshair ch) Īs a start, I would like to remove the box around the text and would like to control the font size and family. tLabelBackgroundPaint(new Color(1f, 1f, 1f, 0f)) This is my current snippet: // add crosshairįinal CrosshairOverlay crosshairOverlay = new CrosshairOverlay() įinal Crosshair xCrosshair = new Crosshair(Double.NaN, Color.DARK_GRAY, new BasicStroke(0f)) This works quite well, though I would like to change the way the label is drawn.

crosshair overlay change color

I am trying to use a crosshair overlay for an XYPlot.










Crosshair overlay change color