|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.MultiImageLazyChartRenderer
public class MultiImageLazyChartRenderer
This class maintains a separate Image for each model added to a chart. This means that the models can easily be switched off and on by way of a ChartStyle. It also means that a chart can be built up incrementally, one model at a time.
Constructor Summary | |
---|---|
MultiImageLazyChartRenderer(Chart chart)
|
Method Summary | |
---|---|
void |
addImageChangeListener(ImageChangeListener listener)
|
void |
cancelDrawing()
Cancel drawing |
void |
draw(Graphics g)
Draw the latest image (if any) into the supplied graphics context |
protected void |
fireImageChange()
|
void |
removeImage(ChartModel model)
Removes the image cached for the supplied model |
void |
removeImage(String modelName)
|
void |
removeImageChangeListener(ImageChangeListener listener)
|
void |
updateCharts(boolean clearAll)
|
void |
updateImage(ChartModel model,
boolean canUseCache)
Updates the image in response to a change to an individual model; for example a change to the style for that model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiImageLazyChartRenderer(Chart chart)
Method Detail |
---|
public void addImageChangeListener(ImageChangeListener listener)
public void removeImageChangeListener(ImageChangeListener listener)
protected void fireImageChange()
public void updateCharts(boolean clearAll)
clearAll
- if clearAll is set to true then all the previously painted model images are purged from memorypublic void cancelDrawing()
public void updateImage(ChartModel model, boolean canUseCache)
model
- the model for which a change occurredcanUseCache
- specify whether it is allowed to retrieve the cached Image instead of redrawingpublic void removeImage(String modelName)
public void removeImage(ChartModel model)
model
- the model whose painted and cached image is to be removedpublic void draw(Graphics g)
g
- the Graphics context
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |