|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.das2.graph.Renderer
public abstract class Renderer
Field Summary | |
---|---|
protected DataSet |
ds
The dataset that is being plotted by the Renderer. |
protected java.lang.Exception |
lastException
When a dataset cannot be loaded, the exception causing the failure will be rendered instead. |
protected static java.util.logging.Logger |
logger
|
protected java.beans.PropertyChangeSupport |
propertyChangeSupport
Utility field used by bound properties. |
protected java.lang.Exception |
renderException
This is the exception to be rendered. |
Constructor Summary | |
---|---|
protected |
Renderer()
|
protected |
Renderer(DataSet ds)
|
protected |
Renderer(DataSetDescriptor dsd)
|
Method Summary | |
---|---|
boolean |
acceptContext(int x,
int y)
Returns true if the render thinks it can provide the context for a point. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
protected java.awt.geom.AffineTransform |
getAffineTransform(DasAxis xAxis,
DasAxis yAxis)
|
DataSet |
getConsumedDataSet()
return the data for DataSetConsumer, which might be rebinned. |
DataLoader |
getDataLoader()
|
DataSet |
getDataSet()
returns the current dataset being displayed. |
DataSetDescriptor |
getDataSetDescriptor()
|
java.lang.String |
getDataSetID()
|
protected org.w3c.dom.Element |
getDOMElement(org.w3c.dom.Document document)
|
java.lang.Exception |
getLastException()
|
DasPlot |
getParent()
|
protected void |
installRenderer()
|
protected void |
invalidateParentCacheImage()
|
boolean |
isActive()
Getter for property active. |
boolean |
isDumpDataSet()
Getter for property dumpDataSet. |
boolean |
isOverloading()
|
protected void |
refresh()
recalculate the plot image and repaint. |
protected void |
refreshImage()
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
abstract void |
render(java.awt.Graphics g,
DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor mon)
Render is called whenever the image needs to be refreshed or the content has changed. |
protected void |
renderException(java.awt.Graphics g,
DasAxis xAxis,
DasAxis yAxis,
java.lang.Exception e)
|
void |
setActive(boolean active)
Setter for property active. |
void |
setDataSet(DataSet ds)
|
void |
setDataSetDescriptor(DataSetDescriptor dsd)
|
void |
setDataSetID(java.lang.String id)
|
void |
setDataSetLoader(DataLoader loader)
|
void |
setDumpDataSet(boolean dumpDataSet)
Setter for property dumpDataSet setting this to true causes the dataSet to be dumped. |
void |
setException(java.lang.Exception e)
|
void |
setLastException(java.lang.Exception e)
|
void |
setOverloading(boolean overloading)
|
protected void |
uninstallRenderer()
|
void |
update()
Something has changed with the Render, and the plot should come back to allow this render to repaint. |
protected void |
updateImmediately()
updateImmediately is called from DasPlot when it gets an update event from the AWT Event thread. |
void |
updatePlotImage(DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor monitor)
updatePlotImage is called once the expensive operation of loading the data is completed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DataSet ds
protected java.lang.Exception lastException
protected java.lang.Exception renderException
protected static java.util.logging.Logger logger
protected java.beans.PropertyChangeSupport propertyChangeSupport
Constructor Detail |
---|
protected Renderer(DataSetDescriptor dsd)
protected Renderer(DataSet ds)
protected Renderer()
Method Detail |
---|
public DasPlot getParent()
protected void invalidateParentCacheImage()
public DataSet getDataSet()
public DataSet getConsumedDataSet()
getConsumedDataSet
in interface DataSetConsumer
public boolean isDumpDataSet()
public void setDumpDataSet(boolean dumpDataSet)
dumpDataSet
- New value of property dumpDataSet.public void setLastException(java.lang.Exception e)
public java.lang.Exception getLastException()
public void setDataSet(DataSet ds)
public void setException(java.lang.Exception e)
public void setDataSetID(java.lang.String id) throws DasException
DasException
public java.lang.String getDataSetID()
protected java.awt.geom.AffineTransform getAffineTransform(DasAxis xAxis, DasAxis yAxis)
public abstract void render(java.awt.Graphics g, DasAxis xAxis, DasAxis yAxis, ProgressMonitor mon)
public boolean acceptContext(int x, int y)
x
- the x coordinate in the canvas coordinate system.y
- the y coordinate in the canvas coordinate system.protected void renderException(java.awt.Graphics g, DasAxis xAxis, DasAxis yAxis, java.lang.Exception e)
public void updatePlotImage(DasAxis xAxis, DasAxis yAxis, ProgressMonitor monitor) throws DasException
DasException
protected void refreshImage()
public void update()
protected void updateImmediately()
protected void refresh()
public void setDataSetDescriptor(DataSetDescriptor dsd)
public DataLoader getDataLoader()
public void setDataSetLoader(DataLoader loader)
public DataSetDescriptor getDataSetDescriptor()
protected void installRenderer()
protected void uninstallRenderer()
protected org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
public boolean isOverloading()
public void setOverloading(boolean overloading)
public boolean isActive()
public void setActive(boolean active)
active
- New value of property active.public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- The listener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- The listener to remove.public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |