JIDE 3.5.15

com.jidesoft.chart.render
Class AbstractLineRenderer

java.lang.Object
  extended by com.jidesoft.chart.render.AbstractLineRenderer
All Implemented Interfaces:
LineRenderer
Direct Known Subclasses:
DefaultLineRenderer, SmoothLineRenderer, StepLineRenderer

public abstract class AbstractLineRenderer
extends Object
implements LineRenderer

An abstract superclass for line renderers


Constructor Summary
AbstractLineRenderer()
           
 
Method Summary
protected  float calculateXHorizontalExtent(Chart chart, ChartModel m, LineFillExtent extent)
           
protected  float calculateYVerticalExtent(Chart chart, ChartModel m, LineFillExtent extent)
          Calculates the place on the y axis to which we fill the line
protected  Paint createLineFillPaint(ChartModel m, ChartStyle style, int x, int y, int width, int height)
          This returns the lineFill specified in the ChartStyle, but can be overridden to return, for example, a gradient fill that depends on the height of the area that is to be filled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.chart.render.LineRenderer
renderLine
 

Constructor Detail

AbstractLineRenderer

public AbstractLineRenderer()
Method Detail

createLineFillPaint

protected Paint createLineFillPaint(ChartModel m,
                                    ChartStyle style,
                                    int x,
                                    int y,
                                    int width,
                                    int height)
This returns the lineFill specified in the ChartStyle, but can be overridden to return, for example, a gradient fill that depends on the height of the area that is to be filled.

If you override this method, be sure that the ChartStyle still has a value for the lineFill property as this is used as a trigger to determine whether the lineFill is to be used. So a value needs to be provided even though it may be overridden and not used.


calculateYVerticalExtent

protected float calculateYVerticalExtent(Chart chart,
                                         ChartModel m,
                                         LineFillExtent extent)
Calculates the place on the y axis to which we fill the line

Parameters:
chart - the chart
m - the model we are filling
extent - the logical name for the extent of the fill
Returns:
a y pixel coordinate for the extent of the fill

calculateXHorizontalExtent

protected float calculateXHorizontalExtent(Chart chart,
                                           ChartModel m,
                                           LineFillExtent extent)

JIDE 3.5.15