Parkinson Disease Database

spirals.data.viewers
Class TabletDataViewer

java.lang.Object
  extended by spirals.data.viewers.TabletDataViewer
Direct Known Subclasses:
DoubleViewer, SimpleTabletDataViewer

public abstract class TabletDataViewer
extends java.lang.Object

Základní abstraktní třída, kterou musí rozšířit každý zobrazovač dat.

Copyright: Copyright (c) 2005 Jan Dolezel

Company: ČVUT FEL, Prague


Field Summary
protected  boolean all
           
protected  javax.swing.JPanel controls
          panel to place controls
protected  Data data
          captured info about data
protected  javax.swing.JPanel screen
          panel to draw on
protected  boolean showUp
           
protected  TabletData tabletData
          captured data
protected  TabletInfo ti
          active tablet measures
 
Constructor Summary
TabletDataViewer(javax.swing.JPanel screen, javax.swing.JPanel controls, Data data, boolean all, boolean showUp)
          creates new viewer
 
Method Summary
 void disableControls()
          Zamezí používání ovládacích prvků
 java.lang.String getDescription()
          vrátí textový popis prohlížeče
abstract  void paint(java.awt.Graphics g)
          derived class must override this method to implement drawing
 void repaint()
          repaint provided panel with data
 void setTabletData(Data data)
          provides new TabletData for viewing
 void setTabletInfo(TabletInfo tabletInfo)
          sets new tablet measures
 void updateControls()
          Volá se vždy při změně dat.
 void updateData()
          Volá se vždy při změně dat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ti

protected TabletInfo ti
active tablet measures


tabletData

protected TabletData tabletData
captured data


data

protected Data data
captured info about data


screen

protected javax.swing.JPanel screen
panel to draw on


controls

protected javax.swing.JPanel controls
panel to place controls


all

protected boolean all

showUp

protected boolean showUp
Constructor Detail

TabletDataViewer

public TabletDataViewer(javax.swing.JPanel screen,
                        javax.swing.JPanel controls,
                        Data data,
                        boolean all,
                        boolean showUp)
creates new viewer

Parameters:
screen - panel to draw on
controls - panel to place controls
data - captured data from tablet
showUp - view only points where is pen down?
Method Detail

paint

public abstract void paint(java.awt.Graphics g)
derived class must override this method to implement drawing


repaint

public final void repaint()
repaint provided panel with data


setTabletData

public final void setTabletData(Data data)
provides new TabletData for viewing


setTabletInfo

public final void setTabletInfo(TabletInfo tabletInfo)
sets new tablet measures


getDescription

public java.lang.String getDescription()
vrátí textový popis prohlížeče

Returns:
String

updateControls

public void updateControls()
Volá se vždy při změně dat. Upraví ovládací prvky prohlížeče


disableControls

public void disableControls()
Zamezí používání ovládacích prvků


updateData

public void updateData()
Volá se vždy při změně dat. Všechny výpočty nad daty by měly být volány z této funkce


Parkinson Disease Database