Example usage for org.jfree.chart.entity TickLabelEntity getToolTipText

List of usage examples for org.jfree.chart.entity TickLabelEntity getToolTipText

Introduction

In this page you can find the example usage for org.jfree.chart.entity TickLabelEntity getToolTipText.

Prototype

public String getToolTipText() 

Source Link

Document

Returns the tool tip text for the entity.

Usage

From source file:com.igalia.java.zk.components.JFreeChartEngine.java

/**
 * decode TickLabelEntity into key-value pair of Area's componentScope.
 *///from w ww  .ja  v a  2s.  c om
private void decodeTickLabelInfo(Area area, TickLabelEntity info, Chart chart) {
    if (info == null) {
        return;
    }
    final ChartModel model = chart.getModel();
    final int seq = ((Integer) chart.getAttribute("TICK_SEQ")).intValue();

    if (model instanceof CategoryModel) {
        Comparable category = ((CategoryModel) model).getCategory(seq);
        area.setAttribute("category", category);
        if (chart.isShowTooltiptext() && info.getToolTipText() == null) {
            area.setTooltiptext(category.toString());
        }
    }
}