Sautrela

edu.gtts.sautrela.engine.util
Class DataPlotter

java.lang.Object
  extended by edu.gtts.sautrela.engine.AbstractDataProcessor
      extended by edu.gtts.sautrela.engine.util.DataPlotter
All Implemented Interfaces:
DataProcessor, java.beans.BeanInfo, java.io.Serializable

public class DataPlotter
extends AbstractDataProcessor

A DataPltotter is a simple DataProcessor that is able to do 2d-plots. The input data is supossed to arrive in multidimensional vectors, that is, each time a IntData, ShortData or DoubleData is received, each one is supossed to ve a n-dimenssional dot.

Author:
mpenagar
See Also:
Serialized Form

Nested Class Summary
static class DataPlotter.Style
           
 
Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
DataPlotter()
           
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 int getHeight()
          Getter for property height.
 DataPlotter.Style getStyle()
          Getter for property style.
 int getWidth()
          Getter for property width.
 int getXdataindex()
          Getter for property xdataindex.
 int getYdataindex()
          Getter for property ydataindex.
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer none)
          Generates the plot on a JFrame.
 void setContainer(java.awt.Container container)
          Creates a new instance of DataPlotter2
 void setHeight(int height)
          Setter for property height.
 void setStyle(DataPlotter.Style style)
          Setter for property style.
 void setWidth(int width)
          Setter for property width.
 void setXdataindex(int xdataindex)
          Setter for property xdataindex.
 void setYdataindex(int ydataindex)
          Setter for property ydataindex.
 
Methods inherited from class edu.gtts.sautrela.engine.AbstractDataProcessor
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataPlotter

public DataPlotter()
Method Detail

setContainer

public void setContainer(java.awt.Container container)
Creates a new instance of DataPlotter2


process

public void process(Buffer in,
                    Buffer none)
             throws DataProcessorException
Generates the plot on a JFrame.

Parameters:
in - Input Buffer
none - Output Buffer
Throws:
DataProcessorException

getWidth

public int getWidth()
Getter for property width.

Returns:
Value of property width.

setWidth

public void setWidth(int width)
Setter for property width.

Parameters:
width - New value of property width.

getHeight

public int getHeight()
Getter for property height.

Returns:
Value of property height.

setHeight

public void setHeight(int height)
Setter for property height.

Parameters:
height - New value of property height.

getXdataindex

public int getXdataindex()
Getter for property xdataindex.

Returns:
Value of property xdataindex.

setXdataindex

public void setXdataindex(int xdataindex)
Setter for property xdataindex.

Parameters:
xdataindex - New value of property xdataindex.

getYdataindex

public int getYdataindex()
Getter for property ydataindex.

Returns:
Value of property ydataindex.

setYdataindex

public void setYdataindex(int ydataindex)
Setter for property ydataindex.

Parameters:
ydataindex - New value of property ydataindex.

getStyle

public DataPlotter.Style getStyle()
Getter for property style.

Returns:
Value of property style.

setStyle

public void setStyle(DataPlotter.Style style)
Setter for property style.

Parameters:
style - New value of property style.

editBeanInfo

public void editBeanInfo(java.beans.BeanInfo info)
Overrides:
editBeanInfo in class AbstractDataProcessor

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

Sautrela