org.jfree.chart.urls.XYURLGenerator Java Examples

The following examples show how to use org.jfree.chart.urls.XYURLGenerator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StandardXYItemRenderer.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Constructs a new renderer.  To specify the type of renderer, use one of
 * the constants: {@link #SHAPES}, {@link #LINES} or
 * {@link #SHAPES_AND_LINES}.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the item label generator (<code>null</code>
 *                          permitted).
 * @param urlGenerator  the URL generator.
 */
public StandardXYItemRenderer(int type,
                              XYToolTipGenerator toolTipGenerator,
                              XYURLGenerator urlGenerator) {

    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setBaseURLGenerator(urlGenerator);
    if ((type & SHAPES) != 0) {
        this.baseShapesVisible = true;
    }
    if ((type & LINES) != 0) {
        this.plotLines = true;
    }
    if ((type & IMAGES) != 0) {
        this.plotImages = true;
    }
    if ((type & DISCONTINUOUS) != 0) {
        this.plotDiscontinuous = true;
    }

    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;
    this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
    this.drawSeriesLineAsPath = false;
}
 
Example #2
Source File: XYAreaRenderer2.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Constructs a new renderer.
 *
 * @param labelGenerator  the tool tip generator to use.  <code>null</code>
 *                        is none.
 * @param urlGenerator  the URL generator (null permitted).
 */
public XYAreaRenderer2(XYToolTipGenerator labelGenerator,
                       XYURLGenerator urlGenerator) {
    super();
    this.showOutline = false;
    setBaseToolTipGenerator(labelGenerator);
    setURLGenerator(urlGenerator);
    GeneralPath area = new GeneralPath();
    area.moveTo(0.0f, -4.0f);
    area.lineTo(3.0f, -2.0f);
    area.lineTo(4.0f, 4.0f);
    area.lineTo(-4.0f, 4.0f);
    area.lineTo(-3.0f, -2.0f);
    area.closePath();
    this.legendArea = area;
}
 
Example #3
Source File: XYStepAreaRenderer.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Constructs a new renderer.
 * <p>
 * To specify the type of renderer, use one of the constants:
 * AREA, SHAPES or AREA_AND_SHAPES.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the tool tip generator to use
 *                          (<code>null</code> permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYStepAreaRenderer(int type,
                          XYToolTipGenerator toolTipGenerator,
                          XYURLGenerator urlGenerator) {

    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setBaseURLGenerator(urlGenerator);

    if (type == AREA) {
        this.plotArea = true;
    }
    else if (type == SHAPES) {
        this.shapesVisible = true;
    }
    else if (type == AREA_AND_SHAPES) {
        this.plotArea = true;
        this.shapesVisible = true;
    }
    this.showOutline = false;
}
 
Example #4
Source File: XYAreaRenderer2.java    From opensim-gui with Apache License 2.0 6 votes vote down vote up
/**
 * Constructs a new renderer.
 *
 * @param labelGenerator  the tool tip generator to use.  <code>null</code> 
 *                        is none.
 * @param urlGenerator  the URL generator (null permitted).
 */
public XYAreaRenderer2(XYToolTipGenerator labelGenerator, 
                       XYURLGenerator urlGenerator) {
    super();
    this.showOutline = false;
    setBaseToolTipGenerator(labelGenerator);
    setURLGenerator(urlGenerator);
    GeneralPath area = new GeneralPath();
    area.moveTo(0.0f, -4.0f);
    area.lineTo(3.0f, -2.0f);
    area.lineTo(4.0f, 4.0f);
    area.lineTo(-4.0f, 4.0f);
    area.lineTo(-3.0f, -2.0f);
    area.closePath();
    this.legendArea = area;
}
 
Example #5
Source File: XYAreaRenderer2.java    From openstock with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Constructs a new renderer.
 *
 * @param labelGenerator  the tool tip generator to use.  <code>null</code>
 *                        is none.
 * @param urlGenerator  the URL generator (null permitted).
 */
public XYAreaRenderer2(XYToolTipGenerator labelGenerator,
                       XYURLGenerator urlGenerator) {
    super();
    this.showOutline = false;
    setBaseToolTipGenerator(labelGenerator);
    setURLGenerator(urlGenerator);
    GeneralPath area = new GeneralPath();
    area.moveTo(0.0f, -4.0f);
    area.lineTo(3.0f, -2.0f);
    area.lineTo(4.0f, 4.0f);
    area.lineTo(-4.0f, 4.0f);
    area.lineTo(-3.0f, -2.0f);
    area.closePath();
    this.legendArea = area;
}
 
Example #6
Source File: XYStepAreaRenderer.java    From ECG-Viewer with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Constructs a new renderer.
 * <p>
 * To specify the type of renderer, use one of the constants:
 * AREA, SHAPES or AREA_AND_SHAPES.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the tool tip generator to use
 *                          (<code>null</code> permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYStepAreaRenderer(int type, XYToolTipGenerator toolTipGenerator,
        XYURLGenerator urlGenerator) {
    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);

    if (type == AREA) {
        this.plotArea = true;
    }
    else if (type == SHAPES) {
        this.shapesVisible = true;
    }
    else if (type == AREA_AND_SHAPES) {
        this.plotArea = true;
        this.shapesVisible = true;
    }
    this.showOutline = false;
    this.stepPoint = 1.0;
}
 
Example #7
Source File: XYAreaRenderer2.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Constructs a new renderer.
 *
 * @param labelGenerator  the tool tip generator to use.  <code>null</code>
 *                        is none.
 * @param urlGenerator  the URL generator (null permitted).
 */
public XYAreaRenderer2(XYToolTipGenerator labelGenerator,
                       XYURLGenerator urlGenerator) {
    super();
    this.showOutline = false;
    setBaseToolTipGenerator(labelGenerator);
    setURLGenerator(urlGenerator);
    GeneralPath area = new GeneralPath();
    area.moveTo(0.0f, -4.0f);
    area.lineTo(3.0f, -2.0f);
    area.lineTo(4.0f, 4.0f);
    area.lineTo(-4.0f, 4.0f);
    area.lineTo(-3.0f, -2.0f);
    area.closePath();
    this.legendArea = area;
}
 
Example #8
Source File: XYAreaRenderer2.java    From ccu-historian with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Constructs a new renderer.
 *
 * @param labelGenerator  the tool tip generator to use.  <code>null</code>
 *                        is none.
 * @param urlGenerator  the URL generator (null permitted).
 */
public XYAreaRenderer2(XYToolTipGenerator labelGenerator,
                       XYURLGenerator urlGenerator) {
    super();
    this.showOutline = false;
    setBaseToolTipGenerator(labelGenerator);
    setURLGenerator(urlGenerator);
    GeneralPath area = new GeneralPath();
    area.moveTo(0.0f, -4.0f);
    area.lineTo(3.0f, -2.0f);
    area.lineTo(4.0f, 4.0f);
    area.lineTo(-4.0f, 4.0f);
    area.lineTo(-3.0f, -2.0f);
    area.closePath();
    this.legendArea = area;
}
 
Example #9
Source File: XYAreaRenderer.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructs a new renderer.  To specify the type of renderer, use one of
 * the constants: <code>SHAPES</code>, <code>LINES</code>,
 * <code>SHAPES_AND_LINES</code>, <code>AREA</code> or
 * <code>AREA_AND_SHAPES</code>.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the tool tip generator to use
 *                          (<code>null</code> permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYAreaRenderer(int type, XYToolTipGenerator toolTipGenerator,
                      XYURLGenerator urlGenerator) {

    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);

    if (type == SHAPES) {
        this.plotShapes = true;
    }
    if (type == LINES) {
        this.plotLines = true;
    }
    if (type == SHAPES_AND_LINES) {
        this.plotShapes = true;
        this.plotLines = true;
    }
    if (type == AREA) {
        this.plotArea = true;
    }
    if (type == AREA_AND_SHAPES) {
        this.plotArea = true;
        this.plotShapes = true;
    }
    this.showOutline = false;
    GeneralPath area = new GeneralPath();
    area.moveTo(0.0f, -4.0f);
    area.lineTo(3.0f, -2.0f);
    area.lineTo(4.0f, 4.0f);
    area.lineTo(-4.0f, 4.0f);
    area.lineTo(-3.0f, -2.0f);
    area.closePath();
    this.legendArea = area;
    this.useFillPaint = false;
    this.gradientTransformer = new StandardGradientPaintTransformer();
}
 
Example #10
Source File: StandardXYItemRenderer.java    From nmonvisualizer with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a new renderer.  To specify the type of renderer, use one of
 * the constants: {@link #SHAPES}, {@link #LINES} or
 * {@link #SHAPES_AND_LINES}.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the item label generator (<code>null</code>
 *                          permitted).
 * @param urlGenerator  the URL generator.
 */
public StandardXYItemRenderer(int type,
                              XYToolTipGenerator toolTipGenerator,
                              XYURLGenerator urlGenerator) {

    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);
    if ((type & SHAPES) != 0) {
        this.baseShapesVisible = true;
    }
    if ((type & LINES) != 0) {
        this.plotLines = true;
    }
    if ((type & IMAGES) != 0) {
        this.plotImages = true;
    }
    if ((type & DISCONTINUOUS) != 0) {
        this.plotDiscontinuous = true;
    }

    this.shapesFilled = null;
    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;
    this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
    this.drawSeriesLineAsPath = false;
}
 
Example #11
Source File: XYAreaRenderer.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructs a new renderer.  To specify the type of renderer, use one of
 * the constants: <code>SHAPES</code>, <code>LINES</code>,
 * <code>SHAPES_AND_LINES</code>, <code>AREA</code> or
 * <code>AREA_AND_SHAPES</code>.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the tool tip generator to use
 *                          (<code>null</code> permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYAreaRenderer(int type, XYToolTipGenerator toolTipGenerator,
                      XYURLGenerator urlGenerator) {

    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);

    if (type == SHAPES) {
        this.plotShapes = true;
    }
    if (type == LINES) {
        this.plotLines = true;
    }
    if (type == SHAPES_AND_LINES) {
        this.plotShapes = true;
        this.plotLines = true;
    }
    if (type == AREA) {
        this.plotArea = true;
    }
    if (type == AREA_AND_SHAPES) {
        this.plotArea = true;
        this.plotShapes = true;
    }
    this.showOutline = false;
    GeneralPath area = new GeneralPath();
    area.moveTo(0.0f, -4.0f);
    area.lineTo(3.0f, -2.0f);
    area.lineTo(4.0f, 4.0f);
    area.lineTo(-4.0f, 4.0f);
    area.lineTo(-3.0f, -2.0f);
    area.closePath();
    this.legendArea = area;
    this.useFillPaint = false;
    this.gradientTransformer = new StandardGradientPaintTransformer();
}
 
Example #12
Source File: XYAreaRenderer.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a new renderer.
 * <p>
 * To specify the type of renderer, use one of the constants: SHAPES, LINES,
 * SHAPES_AND_LINES, AREA or AREA_AND_SHAPES.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the tool tip generator to use 
 *                          (<code>null</code> permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYAreaRenderer(int type, XYToolTipGenerator toolTipGenerator, 
                      XYURLGenerator urlGenerator) {

    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);

    if (type == SHAPES) {
        this.plotShapes = true;
    }
    if (type == LINES) {
        this.plotLines = true;
    }
    if (type == SHAPES_AND_LINES) {
        this.plotShapes = true;
        this.plotLines = true;
    }
    if (type == AREA) {
        this.plotArea = true;
    }
    if (type == AREA_AND_SHAPES) {
        this.plotArea = true;
        this.plotShapes = true;
    }
    this.showOutline = false;
    GeneralPath area = new GeneralPath();
    area.moveTo(0.0f, -4.0f);
    area.lineTo(3.0f, -2.0f);
    area.lineTo(4.0f, 4.0f);
    area.lineTo(-4.0f, 4.0f);
    area.lineTo(-3.0f, -2.0f);
    area.closePath();
    this.legendArea = area;

}
 
Example #13
Source File: XYAreaRenderer.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a new renderer.  To specify the type of renderer, use one of
 * the constants: <code>SHAPES</code>, <code>LINES</code>,
 * <code>SHAPES_AND_LINES</code>, <code>AREA</code> or
 * <code>AREA_AND_SHAPES</code>.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the tool tip generator to use
 *                          (<code>null</code> permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYAreaRenderer(int type, XYToolTipGenerator toolTipGenerator,
                      XYURLGenerator urlGenerator) {

    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);

    if (type == SHAPES) {
        this.plotShapes = true;
    }
    if (type == LINES) {
        this.plotLines = true;
    }
    if (type == SHAPES_AND_LINES) {
        this.plotShapes = true;
        this.plotLines = true;
    }
    if (type == AREA) {
        this.plotArea = true;
    }
    if (type == AREA_AND_SHAPES) {
        this.plotArea = true;
        this.plotShapes = true;
    }
    this.showOutline = false;
    GeneralPath area = new GeneralPath();
    area.moveTo(0.0f, -4.0f);
    area.lineTo(3.0f, -2.0f);
    area.lineTo(4.0f, 4.0f);
    area.lineTo(-4.0f, 4.0f);
    area.lineTo(-3.0f, -2.0f);
    area.closePath();
    this.legendArea = area;
    this.useFillPaint = false;
    this.gradientTransformer = new StandardGradientPaintTransformer();
}
 
Example #14
Source File: StandardXYItemRenderer.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs a new renderer.
 * <p>
 * To specify the type of renderer, use one of the constants: SHAPES, LINES 
 * or SHAPES_AND_LINES.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the item label generator (<code>null</code> 
 *                          permitted).
 * @param urlGenerator  the URL generator.
 */
public StandardXYItemRenderer(int type,
                              XYToolTipGenerator toolTipGenerator,
                              XYURLGenerator urlGenerator) {

    super();
    setToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);
    if ((type & SHAPES) != 0) {
        this.baseShapesVisible = true;
    }
    if ((type & LINES) != 0) {
        this.plotLines = true;
    }
    if ((type & IMAGES) != 0) {
        this.plotImages = true;
    }
    if ((type & DISCONTINUOUS) != 0) {
        this.plotDiscontinuous = true;
    }

    this.shapesFilled = null;
    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;
    this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
    this.drawSeriesLineAsPath = true;    //Ayman
}
 
Example #15
Source File: StandardXYItemRenderer.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructs a new renderer.  To specify the type of renderer, use one of
 * the constants: {@link #SHAPES}, {@link #LINES} or
 * {@link #SHAPES_AND_LINES}.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the item label generator (<code>null</code>
 *                          permitted).
 * @param urlGenerator  the URL generator.
 */
public StandardXYItemRenderer(int type,
                              XYToolTipGenerator toolTipGenerator,
                              XYURLGenerator urlGenerator) {

    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);
    if ((type & SHAPES) != 0) {
        this.baseShapesVisible = true;
    }
    if ((type & LINES) != 0) {
        this.plotLines = true;
    }
    if ((type & IMAGES) != 0) {
        this.plotImages = true;
    }
    if ((type & DISCONTINUOUS) != 0) {
        this.plotDiscontinuous = true;
    }

    this.shapesFilled = null;
    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;
    this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
    this.drawSeriesLineAsPath = false;
}
 
Example #16
Source File: StandardXYItemRenderer.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructs a new renderer.  To specify the type of renderer, use one of
 * the constants: {@link #SHAPES}, {@link #LINES} or
 * {@link #SHAPES_AND_LINES}.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the item label generator (<code>null</code>
 *                          permitted).
 * @param urlGenerator  the URL generator.
 */
public StandardXYItemRenderer(int type,
                              XYToolTipGenerator toolTipGenerator,
                              XYURLGenerator urlGenerator) {

    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);
    if ((type & SHAPES) != 0) {
        this.baseShapesVisible = true;
    }
    if ((type & LINES) != 0) {
        this.plotLines = true;
    }
    if ((type & IMAGES) != 0) {
        this.plotImages = true;
    }
    if ((type & DISCONTINUOUS) != 0) {
        this.plotDiscontinuous = true;
    }

    this.shapesFilled = null;
    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;
    this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
    this.drawSeriesLineAsPath = false;
}
 
Example #17
Source File: StandardXYItemRenderer.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructs a new renderer.  To specify the type of renderer, use one of
 * the constants: {@link #SHAPES}, {@link #LINES} or
 * {@link #SHAPES_AND_LINES}.
 *
 * @param type  the type of renderer.
 * @param toolTipGenerator  the item label generator (<code>null</code>
 *                          permitted).
 * @param urlGenerator  the URL generator.
 */
public StandardXYItemRenderer(int type,
                              XYToolTipGenerator toolTipGenerator,
                              XYURLGenerator urlGenerator) {

    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);
    if ((type & SHAPES) != 0) {
        this.baseShapesVisible = true;
    }
    if ((type & LINES) != 0) {
        this.plotLines = true;
    }
    if ((type & IMAGES) != 0) {
        this.plotImages = true;
    }
    if ((type & DISCONTINUOUS) != 0) {
        this.plotDiscontinuous = true;
    }

    this.shapesFilled = null;
    this.seriesShapesFilled = new BooleanList();
    this.baseShapesFilled = true;
    this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
    this.drawSeriesLineAsPath = false;
}
 
Example #18
Source File: ReportPage.java    From freeacs with MIT License 4 votes vote down vote up
private void displayReportChartWithImageMap(
    Map<String, Object> root,
    int numberOfColumns,
    int averageLengthPrLegend,
    List<String> aggregation,
    HttpSession session) {
  StringWriter stringWriter = new StringWriter();
  PrintWriter writer = new PrintWriter(stringWriter);

  boolean shouldZoom = true;

  switch (reportType) {
    case JOB:
    case UNIT:
      shouldZoom = false;
      break;
    default:
      break;
  }

  String clickablePointUrl = "";
  if (shouldZoom || periodType.getSelected().isLongerThan(PeriodType.HOUR)) {
    clickablePointUrl =
        generateClickablePointUrl(
            periodType.getSelected(),
            reportType.getName(),
            method.getSelected(),
            optionalmethod.getSelected());
  }

  XYPlot plot = (XYPlot) chart.getPlot();
  XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer();
  XYURLGenerator urls = new ReportURLGenerator(clickablePointUrl, chart, aggregation);
  renderer.setURLGenerator(urls);
  XYSeriesLabelGenerator slg =
      new CustomXYSeriesLabelGenerator("javascript:xAPS.report.updateReport(%d);");
  renderer.setLegendItemURLGenerator(slg);
  renderer.setDefaultShapesVisible(true);
  renderer.setDrawOutlines(true);
  renderer.setUseFillPaint(true);
  renderer.setDefaultFillPaint(Color.white);

  try {
    ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());
    ByteArrayOutputStream image = new ByteArrayOutputStream();

    int chartWidth = 700 + 10 * averageLengthPrLegend * numberOfColumns + 35 * numberOfColumns;

    ChartUtils.writeChartAsPNG(image, chart, chartWidth, 400, info);

    session.setAttribute("JFreeChartPNG" + reportType.getName(), image.toByteArray());

    ImageMapUtils.writeImageMap(
        writer,
        "chart" + reportType.getName(),
        info,
        arg0 -> " title=\"" + arg0 + "\" alt=\"" + arg0 + "\"",
        arg0 -> " href=\"" + arg0 + "\"");

    writer.println(
        "<img src=\""
            + Page.REPORT.getUrl()
            + "&type="
            + reportType.getName()
            + "&image=true&d="
            + new Date().getTime()
            + "\" border=\"0\" usemap=\"#chart"
            + reportType.getName()
            + "\" id=\"ImageMapImg\" alt=\"ReportImage\"/>");
    writer.close();

    root.put("imagemap", stringWriter.toString());
  } catch (IOException e) {
    e.printStackTrace();
  }
}
 
Example #19
Source File: FormattedStackedXYAreaRenderer2.java    From rapidminer-studio with GNU Affero General Public License v3.0 4 votes vote down vote up
public FormattedStackedXYAreaRenderer2(XYToolTipGenerator labelGenerator, XYURLGenerator urlGenerator) {
	super(labelGenerator, urlGenerator);
}
 
Example #20
Source File: FormattedXYAreaRenderer2.java    From rapidminer-studio with GNU Affero General Public License v3.0 4 votes vote down vote up
public FormattedXYAreaRenderer2(XYToolTipGenerator labelGenerator, XYURLGenerator urlGenerator) {
	super(labelGenerator, urlGenerator);
}
 
Example #21
Source File: AbstractXYItemRenderer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the default URL generator and, if requested, sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param generator  the generator (<code>null</code> permitted).
 * @param notify  notify listener?
 *
 * @see #getBaseURLGenerator()
 *
 * @since 1.2.0
 */
public void setBaseURLGenerator(XYURLGenerator generator, boolean notify) {
    this.baseURLGenerator = generator;
    if (notify) {
        fireChangeEvent();
    }
}
 
Example #22
Source File: XYStepRenderer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new renderer with the specified tool tip and URL
 * generators.
 *
 * @param toolTipGenerator  the item label generator (<code>null</code>
 *     permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYStepRenderer(XYToolTipGenerator toolTipGenerator,
                      XYURLGenerator urlGenerator) {
    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setBaseURLGenerator(urlGenerator);
    setBaseShapesVisible(false);
}
 
Example #23
Source File: XYStepRenderer.java    From ECG-Viewer with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new renderer with the specified tool tip and URL
 * generators.
 *
 * @param toolTipGenerator  the item label generator (<code>null</code>
 *     permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYStepRenderer(XYToolTipGenerator toolTipGenerator,
                      XYURLGenerator urlGenerator) {
    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);
    setBaseShapesVisible(false);
}
 
Example #24
Source File: StackedXYAreaRenderer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Constructs a new renderer.  To specify the type of renderer, use one of
 * the constants: <code>SHAPES</code>, <code>LINES</code>,
 * <code>SHAPES_AND_LINES</code>, <code>AREA</code> or
 * <code>AREA_AND_SHAPES</code>.
 *
 * @param type  the type of renderer.
 * @param labelGenerator  the tool tip generator to use (<code>null</code>
 *                        is none).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public StackedXYAreaRenderer(int type,
                             XYToolTipGenerator labelGenerator,
                             XYURLGenerator urlGenerator) {

    super(type, labelGenerator, urlGenerator);
}
 
Example #25
Source File: XYStepRenderer.java    From opensim-gui with Apache License 2.0 3 votes vote down vote up
/**
 * Constructs a new renderer with the specified tool tip and URL 
 * generators.
 *
 * @param toolTipGenerator  the item label generator (<code>null</code> 
 *     permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYStepRenderer(XYToolTipGenerator toolTipGenerator,
                      XYURLGenerator urlGenerator) {
    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);
    setShapesVisible(false);
}
 
Example #26
Source File: XYStepRenderer.java    From SIMVA-SoS with Apache License 2.0 3 votes vote down vote up
/**
 * Constructs a new renderer with the specified tool tip and URL
 * generators.
 *
 * @param toolTipGenerator  the item label generator (<code>null</code>
 *     permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYStepRenderer(XYToolTipGenerator toolTipGenerator,
                      XYURLGenerator urlGenerator) {
    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);
    setBaseShapesVisible(false);
}
 
Example #27
Source File: AbstractXYItemRenderer.java    From astor with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets the default URL generator and, if requested, sends a 
 * {@link RendererChangeEvent} to all registered listeners.
 * 
 * @param generator  the generator (<code>null</code> permitted).
 * @param notify  notify listener?
 *
 * @see #getBaseURLGenerator()
 * 
 * @since 1.2.0
 */
public void setBaseURLGenerator(XYURLGenerator generator, boolean notify) {
    this.baseURLGenerator = generator;
    if (notify) {
        fireChangeEvent();
    }
}
 
Example #28
Source File: XYStepRenderer.java    From ccu-historian with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Constructs a new renderer with the specified tool tip and URL
 * generators.
 *
 * @param toolTipGenerator  the item label generator (<code>null</code>
 *     permitted).
 * @param urlGenerator  the URL generator (<code>null</code> permitted).
 */
public XYStepRenderer(XYToolTipGenerator toolTipGenerator,
                      XYURLGenerator urlGenerator) {
    super();
    setBaseToolTipGenerator(toolTipGenerator);
    setURLGenerator(urlGenerator);
    setBaseShapesVisible(false);
}
 
Example #29
Source File: ModifiedPlot.java    From chipster with MIT License 3 votes vote down vote up
/**
 * Sets the URL generator for HTML image maps.
 *
 * @param urlGenerator  the URL generator (null permitted).
 */
public void setURLGenerator(XYURLGenerator urlGenerator) {

    //Object oldValue = this.urlGenerator;
    this.urlGenerator = urlGenerator;

}
 
Example #30
Source File: XYItemRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Sets the URL generator for HTML image maps.
 *
 * @param urlGenerator the URL generator (null permitted).
 */
public void setURLGenerator(XYURLGenerator urlGenerator);