Documentation of 'umontreal.iro.lecuyer.charts.EmpiricalRenderer' Java class
EmpiricalRenderer
umontreal.iro.lecuyer.charts

Class EmpiricalRenderer

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.EventListener, AnnotationChangeListener, LegendItemSource, XYItemRenderer, org.jfree.util.PublicCloneable


    public class EmpiricalRenderer
    extends XYLineAndShapeRenderer
    implements XYItemRenderer, java.lang.Cloneable, org.jfree.util.PublicCloneable
    A renderer that draws horizontal lines between points and/or draws shapes at each data point to provide an empirical style chart. This renderer is designed for use with the {XYPlot} class.
    See Also:
    Serialized Form
    • Constructor Detail

      • EmpiricalRenderer

        public EmpiricalRenderer()
        Creates a new renderer.
      • EmpiricalRenderer

        public EmpiricalRenderer(XYToolTipGenerator toolTipGenerator,
                                 XYURLGenerator urlGenerator)
        Creates a new renderer with selected tool tip and url generators.
        Parameters:
        toolTipGenerator - Tool tip generator.
        urlGenerator - Url generator.
    • Method Detail

      • drawItem

        public void drawItem(java.awt.Graphics2D g2,
                             XYItemRendererState state,
                             java.awt.geom.Rectangle2D dataArea,
                             PlotRenderingInfo info,
                             XYPlot plot,
                             ValueAxis domainAxis,
                             ValueAxis rangeAxis,
                             XYDataset dataset,
                             int series,
                             int item,
                             CrosshairState crosshairState,
                             int pass)
        Draws the visual representation of a single data item.
        Specified by:
        drawItem in interface XYItemRenderer
        Overrides:
        drawItem in class XYLineAndShapeRenderer
        Parameters:
        g2 - the graphics device.
        state - the renderer state.
        dataArea - the area within which the data is being drawn.
        info - collects information about the drawing.
        plot - the plot (can be used to obtain standard color information etc).
        domainAxis - the domain axis.
        rangeAxis - the range axis.
        dataset - the dataset.
        series - the series index (zero-based).
        item - the item index (zero-based).
        crosshairState - crosshair information for the plot (null permitted).
        pass - the pass index.
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Returns a clone of the renderer.
        Specified by:
        clone in interface org.jfree.util.PublicCloneable
        Overrides:
        clone in class XYLineAndShapeRenderer
        Returns:
        A clone.
        Throws:
        java.lang.CloneNotSupportedException - if the clone cannot be created.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.