|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The base interface for renderers.
Method Summary | |
java.awt.Paint |
getDefaultOutlinePaint()
Returns the default outline paint. |
java.awt.Stroke |
getDefaultOutlineStroke()
Returns the default outline stroke. |
java.awt.Paint |
getDefaultPaint()
Returns the default paint. |
java.awt.Shape |
getDefaultShape()
Returns the default shape. |
java.awt.Stroke |
getDefaultStroke()
Returns the default stroke. |
DrawingSupplier |
getDrawingSupplier()
Returns the drawing supplier for the renderer. |
Plot |
getPlot()
Returns the plot that the renderer has been assigned to. |
boolean |
isOutlinePaintTableActive()
Returns true if the outline paint table is being used, and false
otherwise. |
boolean |
isOutlineStrokeTableActive()
Returns true if the outline stroke table is being used, and false
otherwise. |
boolean |
isPaintTableActive()
Returns true if the paint table is being used, and false otherwise. |
boolean |
isShapeTableActive()
Returns true if the shape table is being used, and false
otherwise. |
boolean |
isStrokeTableActive()
Returns true if the stroke table is being used, and false
otherwise. |
void |
setDefaultOutlinePaint(java.awt.Paint paint)
Sets the default outline paint. |
void |
setDefaultOutlineStroke(java.awt.Stroke stroke)
Sets the default outline stroke. |
void |
setDefaultPaint(java.awt.Paint paint)
Sets the default paint. |
void |
setDefaultShape(java.awt.Shape shape)
Sets the default shape. |
void |
setDefaultStroke(java.awt.Stroke stroke)
Sets the default stroke. |
void |
setDrawingSupplier(DrawingSupplier supplier)
Sets the drawing supplier for the renderer. |
void |
setOutlinePaintTableActive(boolean flag)
Sets the flag that controls whether the outline paint table is used or not. |
void |
setOutlineStrokeTableActive(boolean flag)
Sets the flag that controls whether the outline stroke table is used or not. |
void |
setPaintTableActive(boolean flag)
Sets the flag that controls whether the paint table is used or not. |
void |
setPlot(Plot plot)
Sets the plot that the renderer has been assigned to. |
void |
setSeriesPaint(int dataset,
int series,
java.awt.Paint paint)
Sets the paint for a series. |
void |
setSeriesPaint(int series,
java.awt.Paint paint)
Sets the paint for a series in the primary dataset. |
void |
setSeriesStroke(int dataset,
int series,
java.awt.Stroke stroke)
Sets the stroke used for a series. |
void |
setSeriesStroke(int series,
java.awt.Stroke stroke)
Sets the stroke used for a series (in the primary dataset). |
void |
setShapeTableActive(boolean flag)
Sets the flag that controls whether the shape table is used or not. |
void |
setStrokeTableActive(boolean flag)
Sets the flag that controls whether the stroke table is used or not. |
Method Detail |
public Plot getPlot()
public void setPlot(Plot plot)
You shouldn't need to call this method yourself, the plot will do it for you when you assign the renderer to the plot.
plot
- the plot.public DrawingSupplier getDrawingSupplier()
public void setDrawingSupplier(DrawingSupplier supplier)
Paint
, Stroke
and
Shape
objects that the renderer can use to populate its tables. The supplier can
be shared among multiple renderers.
supplier
- the new supplier.public java.awt.Paint getDefaultPaint()
public void setDefaultPaint(java.awt.Paint paint)
In most cases, the renderer's paint table will be active and so this default value will not be used.
paint
- the paint.public boolean isPaintTableActive()
true
if the paint table is being used, and false
otherwise.
public void setPaintTableActive(boolean flag)
flag
- the flag.public void setSeriesPaint(int series, java.awt.Paint paint)
series
- the series index (zero-based).paint
- the paint.public void setSeriesPaint(int dataset, int series, java.awt.Paint paint)
dataset
- the dataset index (zero-based).series
- the series index (zero-based).paint
- the paint.public java.awt.Paint getDefaultOutlinePaint()
public void setDefaultOutlinePaint(java.awt.Paint paint)
paint
- the paint.public boolean isOutlinePaintTableActive()
true
if the outline paint table is being used, and false
otherwise.
public void setOutlinePaintTableActive(boolean flag)
flag
- the flag.public java.awt.Stroke getDefaultStroke()
public void setDefaultStroke(java.awt.Stroke stroke)
stroke
- the stroke.public boolean isStrokeTableActive()
true
if the stroke table is being used, and false
otherwise.
public void setStrokeTableActive(boolean flag)
flag
- the flag.public java.awt.Stroke getDefaultOutlineStroke()
public void setDefaultOutlineStroke(java.awt.Stroke stroke)
stroke
- the default outline stroke.public void setSeriesStroke(int series, java.awt.Stroke stroke)
series
- the series.stroke
- the stroke.public void setSeriesStroke(int dataset, int series, java.awt.Stroke stroke)
dataset
- the dataset index (zero-based).series
- the series index (zero-based).stroke
- the stroke.public boolean isOutlineStrokeTableActive()
true
if the outline stroke table is being used, and false
otherwise.
public void setOutlineStrokeTableActive(boolean flag)
flag
- the flag.public java.awt.Shape getDefaultShape()
public void setDefaultShape(java.awt.Shape shape)
shape
- the shape.public boolean isShapeTableActive()
true
if the shape table is being used, and false
otherwise.
public void setShapeTableActive(boolean flag)
flag
- the flag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |