protected void setupCSS(SVGPlot svgp) {
final StyleLibrary style = context.getStyleLibrary();
final double fontsize = style.getTextSize(StyleLibrary.PLOT);
final String fontfamily = style.getFontFamily(StyleLibrary.PLOT);
CSSClass tooltiphidden = new CSSClass(svgp, TOOLTIP_HIDDEN);
tooltiphidden.setStatement(SVGConstants.CSS_FONT_SIZE_PROPERTY, fontsize);
tooltiphidden.setStatement(SVGConstants.CSS_FONT_FAMILY_PROPERTY, fontfamily);
tooltiphidden.setStatement(SVGConstants.CSS_DISPLAY_PROPERTY, SVGConstants.CSS_NONE_VALUE);
svgp.addCSSClassOrLogError(tooltiphidden);
CSSClass tooltipvisible = new CSSClass(svgp, TOOLTIP_VISIBLE);
tooltipvisible.setStatement(SVGConstants.CSS_FONT_SIZE_PROPERTY, fontsize);
tooltipvisible.setStatement(SVGConstants.CSS_FONT_FAMILY_PROPERTY, fontfamily);
svgp.addCSSClassOrLogError(tooltipvisible);
CSSClass tooltipsticky = new CSSClass(svgp, TOOLTIP_STICKY);
tooltipsticky.setStatement(SVGConstants.CSS_FONT_SIZE_PROPERTY, fontsize);
tooltipsticky.setStatement(SVGConstants.CSS_FONT_FAMILY_PROPERTY, fontfamily);
svgp.addCSSClassOrLogError(tooltipsticky);
// invisible but sensitive area for the tooltip activator
CSSClass tooltiparea = new CSSClass(svgp, TOOLTIP_AREA);
tooltiparea.setStatement(SVGConstants.CSS_FILL_PROPERTY, SVGConstants.CSS_RED_VALUE);
tooltiparea.setStatement(SVGConstants.CSS_STROKE_PROPERTY, SVGConstants.CSS_NONE_VALUE);
tooltiparea.setStatement(SVGConstants.CSS_FILL_OPACITY_PROPERTY, "0");
tooltiparea.setStatement(SVGConstants.CSS_CURSOR_PROPERTY, SVGConstants.CSS_POINTER_VALUE);
svgp.addCSSClassOrLogError(tooltiparea);
}