org.das2.graph
Class PlotSymbolRenderer

java.lang.Object
  extended by org.das2.graph.Renderer
      extended by org.das2.graph.PlotSymbolRenderer
All Implemented Interfaces:
Editable, DataSetConsumer

public class PlotSymbolRenderer
extends Renderer


Field Summary
static java.lang.String PROP_COLOR
           
static java.lang.String PROP_COLORBAR
           
static java.lang.String PROP_COLORBYDATASETID
           
static java.lang.String PROP_PSYM
           
static java.lang.String PROP_SYMSIZE
           
 
Fields inherited from class org.das2.graph.Renderer
ds, lastException, logger, propertyChangeSupport, renderException
 
Constructor Summary
PlotSymbolRenderer()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Add PropertyChangeListener.
 java.awt.Color getColor()
          Get the value of color
 DasColorBar getColorBar()
           
 java.lang.String getColorByDataSetId()
           
protected  org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
           
 PlotSymbol getPsym()
          Get the value of psym
 double getSymSize()
          Get the value of symsize
protected  void installRenderer()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Remove PropertyChangeListener.
 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.
 void setColor(java.awt.Color newcolor)
          Set the value of color
 void setColorBar(DasColorBar colorBar)
           
 void setColorByDataSetId(java.lang.String newcolorByDataSetId)
           
 void setPsym(PlotSymbol newpsym)
          Set the value of psym
 void setSymSize(double newsymsize)
          Set the value of symsize
protected  void uninstallRenderer()
           
 
Methods inherited from class org.das2.graph.Renderer
acceptContext, addPropertyChangeListener, getAffineTransform, getConsumedDataSet, getDataLoader, getDataSet, getDataSetDescriptor, getDataSetID, getLastException, getParent, invalidateParentCacheImage, isActive, isDumpDataSet, isOverloading, refresh, refreshImage, removePropertyChangeListener, renderException, setActive, setDataSet, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDumpDataSet, setException, setLastException, setOverloading, update, updateImmediately, updatePlotImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_PSYM

public static final java.lang.String PROP_PSYM
See Also:
Constant Field Values

PROP_SYMSIZE

public static final java.lang.String PROP_SYMSIZE
See Also:
Constant Field Values

PROP_COLOR

public static final java.lang.String PROP_COLOR
See Also:
Constant Field Values

PROP_COLORBYDATASETID

public static final java.lang.String PROP_COLORBYDATASETID
See Also:
Constant Field Values

PROP_COLORBAR

public static final java.lang.String PROP_COLORBAR
See Also:
Constant Field Values
Constructor Detail

PlotSymbolRenderer

public PlotSymbolRenderer()
Method Detail

render

public void render(java.awt.Graphics g,
                   DasAxis xAxis,
                   DasAxis yAxis,
                   ProgressMonitor mon)
Description copied from class: Renderer
Render is called whenever the image needs to be refreshed or the content has changed. This operation should occur with an animation-interactive time scale, and an image should be cached when this is not possible. The graphics object will have its origin at the upper-left corner of the screen.

Specified by:
render in class Renderer

getPsym

public PlotSymbol getPsym()
Get the value of psym

Returns:
the value of psym

setPsym

public void setPsym(PlotSymbol newpsym)
Set the value of psym

Parameters:
newpsym - new value of psym

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add PropertyChangeListener.

Overrides:
addPropertyChangeListener in class Renderer
Parameters:
listener -

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove PropertyChangeListener.

Overrides:
removePropertyChangeListener in class Renderer
Parameters:
listener -

getSymSize

public double getSymSize()
Get the value of symsize

Returns:
the value of symsize

setSymSize

public void setSymSize(double newsymsize)
Set the value of symsize

Parameters:
newsymsize - new value of symsize

getColor

public java.awt.Color getColor()
Get the value of color

Returns:
the value of color

setColor

public void setColor(java.awt.Color newcolor)
Set the value of color

Parameters:
newcolor - new value of color

getColorByDataSetId

public java.lang.String getColorByDataSetId()

setColorByDataSetId

public void setColorByDataSetId(java.lang.String newcolorByDataSetId)

getColorBar

public DasColorBar getColorBar()

setColorBar

public void setColorBar(DasColorBar colorBar)

installRenderer

protected void installRenderer()
Overrides:
installRenderer in class Renderer

uninstallRenderer

protected void uninstallRenderer()
Overrides:
uninstallRenderer in class Renderer

getDOMElement

protected org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
Overrides:
getDOMElement in class Renderer