Package org.jfree.chart.entity

Examples of org.jfree.chart.entity.ChartEntity


        area = trimMargin(area);
        drawBorder(g2, area);
        if (this.text.length() < 1) {
            return null;
        }
        ChartEntity entity = null;
        if (params instanceof EntityBlockParams) {
            EntityBlockParams p = (EntityBlockParams) params;
            if (p.getGenerateEntities()) {
                entity = new TitleEntity(area, this, this.toolTipText,
                        this.urlText);
View Full Code Here


        this.label.draw(g2, (float) area.getX(), (float) area.getY(),
                TextBlockAnchor.TOP_LEFT);
        BlockResult result = null;
        if (ebp != null && sec != null) {
            if (this.toolTipText != null || this.urlText != null) {
                ChartEntity entity = new ChartEntity(entityArea,
                        this.toolTipText, this.urlText);  
                sec.add(entity);
                result = new BlockResult();
                result.setEntityCollection(sec);
            }
View Full Code Here

        if (entities != null) {
            int count = entities.getEntityCount();
            ChartView view = chart.getChartView();

            for (int i = count - 1; i >= 0; i--) {
                ChartEntity entity = entities.getEntity(i);

                if (entity.getToolTipText() == null &&
                        entity.getURLText() == null &&
                        getOnClick(chart, chart.getChartView(), entity) == null &&
                        !viewHasAction(view) &&
                        !viewHasPopup(view) &&
                        chart.getChartSelection() == null)
                    continue;
View Full Code Here

    public void decodeAction(String fieldValue) {
        Chart chart = getChart();
        chart.make();

        int index = Integer.parseInt(fieldValue);
        ChartEntity entity = chart.getRenderHints().getRenderingInfo().getEntityCollection().getEntity(index);
        GridPointInfo info = ChartInfoUtil.getGridPointInfo(entity, chart);

        if (chart.getChartSelection() != null) {
            chart.getChartSelection().setItem(info);
        }
View Full Code Here

    public void decodeAction(String fieldValue) {
        Chart chart = getChart();
        chart.make();

        int index = Integer.parseInt(fieldValue);
        ChartEntity entity = chart.getRenderHints().getRenderingInfo().getEntityCollection().getEntity(index);
        PieSectorInfo info = ChartInfoUtil.getPieSectorInfo(entity);

        if (chart.getChartSelection() != null) {
            chart.getChartSelection().setItem(info);
        }
View Full Code Here

        EntityCollection entities = renderingInfo.getEntityCollection();
        if (entities != null) {
            int count = entities.getEntityCount();

            for (int i = count - 1; i >= 0; i--) {
                ChartEntity entity = entities.getEntity(i);

                Map<String, Object> requestMap = facesContext.getExternalContext().getRequestMap();
                chart.setEntityIndex(i);

                if (view instanceof GridChartView) {
View Full Code Here

        area = trimMargin(area);
        drawBorder(g2, area);
        if (this.text.equals("")) {
            return null;
        }
        ChartEntity entity = null;
        if (params instanceof EntityBlockParams) {
            EntityBlockParams p = (EntityBlockParams) params;
            if (p.getGenerateEntities()) {
                entity = new TitleEntity(area, this, this.toolTipText,
                        this.urlText);
View Full Code Here

        sb.append(StringUtils.getLineSeparator());
        EntityCollection entities = info.getEntityCollection();
        if (entities != null) {
            int count = entities.getEntityCount();
            for (int i = count - 1; i >= 0; i--) {
                ChartEntity entity = entities.getEntity(i);
                if (entity.getToolTipText() != null
                        || entity.getURLText() != null) {
                    String area = entity.getImageMapAreaTag(
                            toolTipTagFragmentGenerator,
                            urlTagFragmentGenerator);
                    if (area.length() > 0) {
                        sb.append(area);
                        sb.append(StringUtils.getLineSeparator());
View Full Code Here

        this.label.draw(g2, (float) pt.getX(), (float) pt.getY(),
                this.contentAlignmentPoint);
        BlockResult result = null;
        if (ebp != null && sec != null) {
            if (this.toolTipText != null || this.urlText != null) {
                ChartEntity entity = new ChartEntity(entityArea,
                        this.toolTipText, this.urlText);
                sec.add(entity);
                result = new BlockResult();
                result.setEntityCollection(sec);
            }
View Full Code Here

        String result = null;
        if (this.info != null) {
            EntityCollection entities = this.info.getEntityCollection();
            if (entities != null) {
                Insets insets = getInsets();
                ChartEntity entity = entities.getEntity(
                        (int) ((e.getX() - insets.left) / this.scaleX),
                        (int) ((e.getY() - insets.top) / this.scaleY));
                if (entity != null) {
                    result = entity.getToolTipText();
                }
            }
        }
        return result;
View Full Code Here

TOP

Related Classes of org.jfree.chart.entity.ChartEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.