コード例 #1
0
  @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);
    }
  }
コード例 #2
0
 public ToggleTextTooltipRenderer(String text, final BarChartBar ad) {
   super(text, new IntegerCoord2d(), ad.getBounds().getCenter());
   this.ad = ad;
 }