JIDE 3.4.0

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  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.


JIDE 3.4.0