|
JIDE 3.3.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.chart.render.AbstractLineRenderer
com.jidesoft.chart.render.DefaultLineRenderer
public class DefaultLineRenderer
A renderer for drawing lines on a chart. Consecutive points in the ChartModel are joined by straight line segments.
| Field Summary | |
|---|---|
static String |
PROPERTY_CHART
|
static String |
PROPERTY_USE_DRAW_POLYLINE
|
| Constructor Summary | |
|---|---|
DefaultLineRenderer(Chart chart)
Creates a DefaultLineRenderer using the supplied chart object as the chart object onto which lines should be drawn. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener to this object |
Chart |
getChart()
Returns the chart associated with this renderer |
boolean |
getUseDrawPolyline()
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove the supplied property change listener from this object |
void |
renderLine(Graphics g,
ChartModel m,
int[] xPoints,
int[] yPoints,
ChartStyle style)
Render lines using the supplied arrays of x and y pixel coordinates onto the supplied Graphics context. |
void |
setChart(Chart chart)
Sets the chart onto which the lines should be drawn |
void |
setUseDrawPolyline(boolean newUseDrawPolyline)
Specify whether to use drawPolyline() to paint multiple line segments. |
| Methods inherited from class com.jidesoft.chart.render.AbstractLineRenderer |
|---|
createLineFillPaint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_CHART
public static final String PROPERTY_USE_DRAW_POLYLINE
| Constructor Detail |
|---|
public DefaultLineRenderer(Chart chart)
chart - the chart object| Method Detail |
|---|
public Chart getChart()
public void setChart(Chart chart)
chart - the Chart objectpublic boolean getUseDrawPolyline()
public void setUseDrawPolyline(boolean newUseDrawPolyline)
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - a property change listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - the property change listener to remove
public void renderLine(Graphics g,
ChartModel m,
int[] xPoints,
int[] yPoints,
ChartStyle style)
g - the Graphics contextm - the ChartModel from which the points originatedxPoints - an array of x coordinatesyPoints - an array of y coordinatesstyle - the suggested style for rendering (a custom renderer may choose to ignore this)
|
JIDE 3.3.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||