@Override public void render(Graphics2D g2d) { if (visible) { updateTargetCoordinate(ad.getBounds().getCenter()); IntegerCoord2d c2d = ad.getCenterToScreenProj(); updateScreenPosition(c2d); this.text = ad.getInfo(); super.render(g2d); } }
public ToggleTextTooltipRenderer(String text, final BarChartBar ad) { super(text, new IntegerCoord2d(), ad.getBounds().getCenter()); this.ad = ad; }