Tabnine Logo
XYBubbleRenderer
Code IndexAdd Tabnine to your IDE (free)

How to use
XYBubbleRenderer
in
org.jfree.chart.renderer.xy

Best Java code snippets using org.jfree.chart.renderer.xy.XYBubbleRenderer (Showing top 7 results out of 315)

origin: jfree/jfreechart

if (!getItemVisible(series, item)) {
  return;
  switch(getScaleType()) {
    case SCALE_ON_DOMAIN_AXIS:
      zero = domainAxis.valueToJava2D(0.0, dataArea,
  g2.setPaint(getItemPaint(series, item));
  g2.fill(circle);
  g2.setStroke(getItemOutlineStroke(series, item));
  g2.setPaint(getItemOutlinePaint(series, item));
  g2.draw(circle);
  if (isItemLabelVisible(series, item)) {
    if (orientation == PlotOrientation.VERTICAL) {
      drawItemLabel(g2, orientation, dataset, series, item,
          transX, transY, false);
      drawItemLabel(g2, orientation, dataset, series, item,
          transY, transX, false);
        = info.getOwner().getEntityCollection();
    if (entities != null && circle.intersects(dataArea)) {
      addEntity(entities, circle, dataset, series, item,
          circle.getCenterX(), circle.getCenterY());
  updateCrosshairValues(crosshairState, x, y, datasetIndex,
      transX, transY, orientation);
origin: jfree/jfreechart

public LegendItem getLegendItem(int datasetIndex, int series) {
  LegendItem result = null;
  XYPlot plot = getPlot();
  if (plot == null) {
    return null;
    if (getItemVisible(series, 0)) {
      String label = getLegendItemLabelGenerator().generateLabel(
          dataset, series);
      String description = label;
      String toolTipText = null;
      if (getLegendItemToolTipGenerator() != null) {
        toolTipText = getLegendItemToolTipGenerator().generateLabel(
            dataset, series);
      if (getLegendItemURLGenerator() != null) {
        urlText = getLegendItemURLGenerator().generateLabel(
            dataset, series);
      Shape shape = lookupLegendShape(series);
      Paint paint = lookupSeriesPaint(series);
      Paint outlinePaint = lookupSeriesOutlinePaint(series);
      Stroke outlineStroke = lookupSeriesOutlineStroke(series);
      result = new LegendItem(label, description, toolTipText,
          urlText, shape, paint, outlineStroke, outlinePaint);
      result.setLabelFont(lookupLegendTextFont(series));
      Paint labelPaint = lookupLegendTextPaint(series);
      if (labelPaint != null) {
        result.setLabelPaint(labelPaint);
origin: org.codehaus.jtstand/jtstand-chart

XYItemRenderer renderer = new XYBubbleRenderer(
    XYBubbleRenderer.SCALE_ON_RANGE_AXIS);
if (tooltips) {
origin: jfree/jfreechart

XYItemRenderer renderer = new XYBubbleRenderer(
    XYBubbleRenderer.SCALE_ON_RANGE_AXIS);
if (tooltips) {
origin: org.codehaus.jtstand/jtstand-chart

XYPlot plot = getPlot();
if (plot == null) {
  return null;
  if (getItemVisible(series, 0)) {
    String label = getLegendItemLabelGenerator().generateLabel(
        dataset, series);
    String description = label;
    String toolTipText = null;
    if (getLegendItemToolTipGenerator() != null) {
      toolTipText = getLegendItemToolTipGenerator().generateLabel(
          dataset, series);
    if (getLegendItemURLGenerator() != null) {
      urlText = getLegendItemURLGenerator().generateLabel(
          dataset, series);
    Shape shape = lookupLegendShape(series);
    Paint paint = lookupSeriesPaint(series);
    Paint outlinePaint = lookupSeriesOutlinePaint(series);
    Stroke outlineStroke = lookupSeriesOutlineStroke(series);
    result = new LegendItem(label, description, toolTipText,
        urlText, shape, paint, outlineStroke, outlinePaint);
    result.setLabelFont(lookupLegendTextFont(series));
    Paint labelPaint = lookupLegendTextPaint(series);
    if (labelPaint != null) {
      result.setLabelPaint(labelPaint);
origin: org.codehaus.jtstand/jtstand-chart

if (!getItemVisible(series, item)) {
  return;
  switch(getScaleType()) {
    case SCALE_ON_DOMAIN_AXIS:
      zero = domainAxis.valueToJava2D(0.0, dataArea,
  g2.setPaint(getItemPaint(series, item));
  g2.fill(circle);
  g2.setStroke(getItemOutlineStroke(series, item));
  g2.setPaint(getItemOutlinePaint(series, item));
  g2.draw(circle);
  if (isItemLabelVisible(series, item)) {
    if (orientation == PlotOrientation.VERTICAL) {
      drawItemLabel(g2, orientation, dataset, series, item,
          transX, transY, false);
      drawItemLabel(g2, orientation, dataset, series, item,
          transY, transX, false);
    entities = info.getOwner().getEntityCollection();
    if (entities != null && circle.intersects(dataArea)) {
      addEntity(entities, circle, dataset, series, item,
          circle.getCenterX(), circle.getCenterY());
  updateCrosshairValues(crosshairState, x, y, domainAxisIndex,
      rangeAxisIndex, transX, transY, orientation);
origin: jasperreports/jasperreports

JRBubblePlot bubblePlot = (JRBubblePlot)getPlot();
int scaleType = bubblePlot.getScaleTypeInteger() == null ? XYBubbleRenderer.SCALE_ON_RANGE_AXIS : bubblePlot.getScaleTypeInteger().intValue();
XYBubbleRenderer bubbleRenderer = new XYBubbleRenderer( scaleType );
xyPlot.setRenderer( bubbleRenderer );
org.jfree.chart.renderer.xyXYBubbleRenderer

Javadoc

A renderer that draws a circle at each data point with a diameter that is determined by the z-value in the dataset (the renderer requires the dataset to be an instance of XYZDataset. The example shown here is generated by the XYBubbleChartDemo1.java program included in the JFreeChart demo collection:

Most used methods

  • <init>
    Constructs a new renderer with the specified type of scaling.
  • addEntity
  • drawItemLabel
  • getItemOutlinePaint
  • getItemOutlineStroke
  • getItemPaint
  • getItemVisible
  • getLegendItemLabelGenerator
  • getLegendItemToolTipGenerator
  • getLegendItemURLGenerator
  • getPlot
  • getScaleType
    Returns the scale type that was set when the renderer was constructed.
  • getPlot,
  • getScaleType,
  • isItemLabelVisible,
  • lookupLegendShape,
  • lookupLegendTextFont,
  • lookupLegendTextPaint,
  • lookupSeriesOutlinePaint,
  • lookupSeriesOutlineStroke,
  • lookupSeriesPaint,
  • updateCrosshairValues

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now