Examples of EntityCollection


Examples of org.jfree.chart.entity.EntityCollection

          rangeAxisIndex, transX, transY, orientation);

      // collect entity and tool tip information...
      if (state.getInfo() != null)
      {
        final EntityCollection entities = state.getEntityCollection();
        if (entities != null)
        {
          String tip = null;
          final XYToolTipGenerator generator
              = getToolTipGenerator(series, item);
          if (generator != null)
          {
            tip = generator.generateToolTip(dataset, series, item);
          }
          String url = null;
          if (getURLGenerator() != null)
          {
            url = getURLGenerator().generateURL(dataset, series,
                item);
          }
          final XYItemEntity entity = new XYItemEntity(s, dataset,
              series, item, tip, url);
          entities.add(entity);
        }
      }
    }

  }
View Full Code Here

Examples of org.jfree.chart.entity.EntityCollection

          drawItemLabel(g2, orientation, dataset, series, item, transY, transX, false);
        }
      }

      // setup for collecting optional entity info...
      EntityCollection entities = null;
      if (info != null)
      {
        entities = info.getOwner().getEntityCollection();
      }

      // add an entity for the item...
      if (entities != null)
      {
        String tip = null;
        final XYToolTipGenerator generator = getToolTipGenerator(series, item);
        if (generator != null)
        {
          tip = generator.generateToolTip(dataset, series, item);
        }
        String url = null;
        if (getURLGenerator() != null)
        {
          url = getURLGenerator().generateURL(dataset, series, item);
        }
        final XYItemEntity entity = new XYItemEntity(circle, dataset, series, item, tip, url);
        entities.add(entity);
      }

      final int domainAxisIndex = plot.getDomainAxisIndex(domainAxis);
      final int rangeAxisIndex = plot.getRangeAxisIndex(rangeAxis);
      updateCrosshairValues(crosshairState, x, y, domainAxisIndex, rangeAxisIndex, transX, transY, orientation);
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.