Javatpoint Logo
Javatpoint Logo

XYLineAndShapeRenderer Class

  • XYLineAndShapeRenderer class comes under the org.jfree.chart.renderer.xy package of JFreeChart library.
  • This class connects data points with lines and/or draws shapes at each data point.
  • This class is designed for use with the XYPlot class.

Constructor:

constructor Description
XYLineAndShapeRenderer() It creates a new renderer with both lines and shapes visible.
XYLineAndShapeRenderer(boolean lines, boolean shapes) It creates a new renderer.

Method Summary

Method Description
drawFirstPassShape(Graphics2D g2, int pass, int series, int item, Shape shape) This method draws the first pass shape.
drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass) This method draws the visual representation of a single data item.
drawPrimaryLine(XYItemRendererState state, Graphics2D g2, XYPlot plot, XYDataset dataset, int pass, int series, int item, ValueAxis domainAxis, ValueAxis rangeAxis, Rectangle2D dataArea) This method draws the item (first pass).
equals(Object obj) This method tests this renderer for equality with an arbitrary object.
getDefaultLinesVisible( ) This method returns the default 'lines visible' attribute.
getDefaultShapesFilled( ) This method returns the default 'shape filled' attribute.
getDrawOutlines( ) This method returns true if outlines should be drawn for shapes, and false otherwise.
getDrawSeriesLineAsPath( ) This method returns a flag that controls whether or not each series is drawn as a single path.
getItemLineVisible(int series, int item) This method returns the flag used to control whether or not the shape for an item is visible.
getItemShapeFilled(int series, int item) This method returns the flag used to control whether or not the shape for an item is filled.
getItemShapeVisible(int series, int item) This method returns the flag used to control whether or not the shape for an item is filled.
initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info) This method initializes the renderer.
setDefaultLinesVisible(boolean flag) This method sets the default 'lines visible' flag and sends a RendererChangeEvent to all registered listeners.






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA