Codota Logo
XYBubbleRenderer
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • notifyDataSetChanged (ArrayAdapter)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JCheckBox (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now