List of usage examples for org.jfree.chart.entity PieSectionEntity getPieIndex
public int getPieIndex()
From source file:org.openfaces.component.chart.impl.helpers.ChartInfoUtil.java
public static PieSectorInfo getPieSectorInfo(ChartEntity entity) { if (entity instanceof PieSectionEntity) { PieSectionEntity pieEntity = (PieSectionEntity) entity; return getPieSectorInfo(pieEntity.getDataset(), pieEntity.getSectionKey(), pieEntity.getPieIndex()); }//from w w w .ja v a 2 s .co m return null; }
From source file:biz.ixnay.pivot.charts.skin.jfree.PieChartViewSkin.java
@Override public ChartView.Element getElementAt(int x, int y) { ChartView.Element element = null; ChartEntity chartEntity = getChartEntityAt(x, y); if (chartEntity instanceof PieSectionEntity) { PieSectionEntity pieSectionEntity = (PieSectionEntity) chartEntity; int sectionIndex = pieSectionEntity.getSectionIndex(); int seriesIndex = pieSectionEntity.getPieIndex(); element = new ChartView.Element(seriesIndex, sectionIndex); }/*from w ww. j a v a2 s. c o m*/ return element; }