sidnet.core.misc
Class TransientDataGrid

java.lang.Object
  extended by sidnet.core.misc.TransientDataGrid
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, DataExchangeReadableOnly, SIDnetDrawableInterface, SIDnetMenuInterface, SIDnetTimeDependable

public class TransientDataGrid
extends java.lang.Object
implements SIDnetDrawableInterface, SIDnetTimeDependable, DataExchangeReadableOnly, SIDnetMenuInterface


Constructor Summary
TransientDataGrid(int rowNum, int colNum, int renderingResolution, long epochTimeInterval, int spatialInterpolationMethod)
          Creates a new instance of TransientDataGrid
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void configureGUI(javax.swing.JPanel hostPanel)
           
 void configureMenu(javax.swing.JPopupMenu hostPopupMenu)
           
 void disableUI()
           
 void enableUI()
           
 DataGrid getCurrentDataGrid()
           
 int getTemporalInterpolationPointAt(int x, int y)
           
 int getTemporalInterpolationPointAt(int x, int y, double temporalIndex)
           
 void nextEpoch()
           
 void passMenuActionEvent(java.awt.event.ActionEvent menuEvent)
           
 double readDataAt(Location2D location, LocationContext locationContext)
           
 int readGridValueAt(int x, int y, long timestamp)
           
 void repaintGUI()
           
 void setVisibleGUI(boolean visible)
           
 void update(long timestamp)
           
 void updateSimulationTimeToCurrent()
           
 void updateTemporalInterpolationGrid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransientDataGrid

public TransientDataGrid(int rowNum,
                         int colNum,
                         int renderingResolution,
                         long epochTimeInterval,
                         int spatialInterpolationMethod)
Creates a new instance of TransientDataGrid

Method Detail

configureGUI

public void configureGUI(javax.swing.JPanel hostPanel)
Specified by:
configureGUI in interface SIDnetDrawableInterface

repaintGUI

public void repaintGUI()
Specified by:
repaintGUI in interface SIDnetDrawableInterface

setVisibleGUI

public void setVisibleGUI(boolean visible)
Specified by:
setVisibleGUI in interface SIDnetDrawableInterface

configureMenu

public void configureMenu(javax.swing.JPopupMenu hostPopupMenu)
Specified by:
configureMenu in interface SIDnetMenuInterface

enableUI

public void enableUI()
Specified by:
enableUI in interface SIDnetMenuInterface

disableUI

public void disableUI()
Specified by:
disableUI in interface SIDnetMenuInterface

passMenuActionEvent

public void passMenuActionEvent(java.awt.event.ActionEvent menuEvent)
Specified by:
passMenuActionEvent in interface SIDnetMenuInterface

updateSimulationTimeToCurrent

public void updateSimulationTimeToCurrent()
Specified by:
updateSimulationTimeToCurrent in interface SIDnetTimeDependable

getTemporalInterpolationPointAt

public int getTemporalInterpolationPointAt(int x,
                                           int y)

getTemporalInterpolationPointAt

public int getTemporalInterpolationPointAt(int x,
                                           int y,
                                           double temporalIndex)

updateTemporalInterpolationGrid

public void updateTemporalInterpolationGrid()

nextEpoch

public void nextEpoch()

readDataAt

public double readDataAt(Location2D location,
                         LocationContext locationContext)
Specified by:
readDataAt in interface DataExchangeReadableOnly

readGridValueAt

public int readGridValueAt(int x,
                           int y,
                           long timestamp)

update

public void update(long timestamp)

getCurrentDataGrid

public DataGrid getCurrentDataGrid()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener