Examples of PieSectionEntity


Examples of org.jfree.chart.entity.PieSectionEntity

                        String url = null;
                        if (this.urlGenerator != null) {
                            url = this.urlGenerator.generateURL(this.dataset,
                                    key, this.pieIndex);
                        }
                        PieSectionEntity entity = new PieSectionEntity(
                                arc, this.dataset, this.pieIndex, section, key,
                                tip, url);
                        entities.add(entity);
                    }
                }
View Full Code Here

Examples of org.jfree.chart.entity.PieSectionEntity

              LOG.debug("Link entity skipped, not XYItemEntity.class:" + ce);
          }
        }
        if (linkGenerator instanceof PieSectionLinkGenerator) {
          if (ce instanceof PieSectionEntity) {
            PieSectionEntity pieEnt = (PieSectionEntity) ce;
            link = ((PieSectionLinkGenerator) linkGenerator).generateLink(dataset, pieEnt.getSectionKey());
          }
        }
    }
    return link;
  }
View Full Code Here

Examples of org.jfree.chart.entity.PieSectionEntity

        }
      }

      if (toolTipGenerator instanceof PieToolTipGenerator) {
        if (ce instanceof PieSectionEntity) {
        PieSectionEntity pieEnt = (PieSectionEntity) ce;
        PieDataset ds = (PieDataset) dataset;
        final int index = pieEnt.getSectionIndex();
        tooltip = ((PieToolTipGenerator) toolTipGenerator).generateToolTip(ds, ds.getKey(index), index);
        }
      }
    } else {
      // throw because category is unknown
View Full Code Here

Examples of org.jfree.chart.entity.PieSectionEntity

    int keyListIndex = 0;
    Iterator iter = info.getEntityCollection().iterator();
    while ( iter.hasNext() ) {
      ChartEntity entity = (ChartEntity) iter.next();
      if ( entity instanceof PieSectionEntity ) {
        PieSectionEntity pieSectionEntity = (PieSectionEntity) entity;
        String value = pieSectionEntity.getSectionKey().toString();
        if ( paramName == null ) {
          pieSectionEntity.setURLText( value );
        } else {
          try {
            String encodedVal = URLEncoder.encode( value, LocaleHelper.getSystemEncoding() );
            String drillURL = TemplateUtil.applyTemplate( urlTemplate, paramName, encodedVal );
            pieSectionEntity.setURLText( drillURL );

          } catch ( UnsupportedEncodingException e ) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          }
View Full Code Here

Examples of org.jfree.chart.entity.PieSectionEntity

                        String url = null;
                        if (this.urlGenerator != null) {
                            url = this.urlGenerator.generateURL(this.dataset,
                                    key, this.pieIndex);
                        }
                        PieSectionEntity entity = new PieSectionEntity(
                                arc, this.dataset, this.pieIndex, section, key,
                                tip, url);
                        entities.add(entity);
                    }
                }
View Full Code Here

Examples of org.jfree.chart.entity.PieSectionEntity

                    String url = null;
                    if (getURLGenerator() != null) {
                        url = getURLGenerator().generateURL(dataset, currentKey,
                                getPieIndex());
                    }
                    PieSectionEntity entity = new PieSectionEntity(
                            upperArc, dataset, getPieIndex(), sectionIndex,
                            currentKey, tip, url);
                    entities.add(entity);
                }
            }
View Full Code Here

Examples of org.jfree.chart.entity.PieSectionEntity

        return null;
    }

    public static PieSectorInfo getPieSectorInfo(ChartEntity entity) {
        if (entity instanceof PieSectionEntity) {
            PieSectionEntity pieEntity = (PieSectionEntity) entity;
            return getPieSectorInfo(pieEntity.getDataset(), pieEntity.getSectionKey(), pieEntity.getPieIndex());
        }

        return null;
    }
View Full Code Here

Examples of org.jfree.chart.entity.PieSectionEntity

                        String url = null;
                        if (this.urlGenerator != null) {
                            url = this.urlGenerator.generateURL(this.dataset,
                                    key, this.pieIndex);
                        }
                        PieSectionEntity entity = new PieSectionEntity(
                                arc, this.dataset, this.pieIndex, section, key,
                                tip, url);
                        entities.add(entity);
                    }
                }
View Full Code Here

Examples of org.jfree.chart.entity.PieSectionEntity

                        PieURLGenerator urlGenerator = getURLGenerator();
                        if (urlGenerator != null) {
                            url = urlGenerator.generateURL(dataset, key,
                                    getPieIndex());
                        }
                        PieSectionEntity entity = new PieSectionEntity(path,
                                dataset, getPieIndex(), section, key, tip,
                                url);
                        entities.add(entity);
                    }
                }
View Full Code Here

Examples of org.jfree.chart.entity.PieSectionEntity

    /**
     * Confirm that the equals method can distinguish all the required fields.
     */
    public void testEquals() {
        PieSectionEntity e1 = new PieSectionEntity(
            new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0), new DefaultPieDataset(),
            0, 1, "Key", "ToolTip", "URL"
        );
        StandardEntityCollection c1 = new StandardEntityCollection();
        c1.addEntity(e1);

        PieSectionEntity e2 = new PieSectionEntity(
            new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0), new DefaultPieDataset(),
            0, 1, "Key", "ToolTip", "URL"
        );
        StandardEntityCollection c2 = new StandardEntityCollection();
        c2.addEntity(e2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.