Parkinson Disease Database

spirals.data.viewers
Class SimpleTabletDataViewer

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

public class SimpleTabletDataViewer
extends TabletDataViewer

Nejjednosušší třída pro zobrazování dat.

Copyright: Copyright (c) 2005 Jan Dolezel

Company: ČVUT FEL, Prague


Field Summary
protected  int border
          number of pixels between active area and border
 
Fields inherited from class spirals.data.viewers.TabletDataViewer
all, controls, data, screen, showUp, tabletData, ti
 
Constructor Summary
SimpleTabletDataViewer(javax.swing.JPanel screen, javax.swing.JPanel controls, Data data, boolean all, boolean showUp)
           
 
Method Summary
protected  void clearWindow(java.awt.Graphics g)
          vymaže okno
protected  void drawTablet(java.awt.Graphics g)
          vykreslí obrysy tabletu
 java.lang.String getDescription()
          vrátí textový popis prohlížeče
protected  double getKoeficient()
           
protected  int getOffsetX()
          posunutí tabletu v souřadnicích tabletu
protected  int getOffsetY()
          posunutí tabletu v souřadnicích tabletu
protected  int getPictureHeight()
           
protected  int getPictureWidth()
           
protected  int getScreenHeight()
           
protected  int getScreenWidth()
           
protected  int getTabletOffsetX()
          vrací číslo, kde na plátně je nejlevější bod tabletu
protected  int getTabletOffsetY()
          vrací číslo, kde na plátně je nejvyšší bod tabletu
private  void install()
           
 void paint(java.awt.Graphics g)
          načrtne tablet a vykreslí data
protected  void paintData(java.awt.Graphics g, TabletData tabletData)
          vlastní kreslení dat
protected  void setDrawColor(java.awt.Graphics g, int index)
           
 
Methods inherited from class spirals.data.viewers.TabletDataViewer
disableControls, repaint, setTabletData, setTabletInfo, updateControls, updateData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

border

protected final int border
number of pixels between active area and border

See Also:
Constant Field Values
Constructor Detail

SimpleTabletDataViewer

public SimpleTabletDataViewer(javax.swing.JPanel screen,
                              javax.swing.JPanel controls,
                              Data data,
                              boolean all,
                              boolean showUp)
Method Detail

install

private void install()

paint

public void paint(java.awt.Graphics g)
načrtne tablet a vykreslí data

Specified by:
paint in class TabletDataViewer
Parameters:
g - Graphics

clearWindow

protected void clearWindow(java.awt.Graphics g)
vymaže okno

Parameters:
g - Graphics

drawTablet

protected void drawTablet(java.awt.Graphics g)
vykreslí obrysy tabletu

Parameters:
g - Graphics

paintData

protected void paintData(java.awt.Graphics g,
                         TabletData tabletData)
vlastní kreslení dat

Parameters:
g - Graphics

setDrawColor

protected void setDrawColor(java.awt.Graphics g,
                            int index)

getScreenWidth

protected int getScreenWidth()
Returns:
int šířka viewportu

getScreenHeight

protected int getScreenHeight()
Returns:
int výška viewportu

getKoeficient

protected double getKoeficient()
Returns:
int poměr velikosti viewportu k tabletu

getPictureWidth

protected int getPictureWidth()
Returns:
int šířka tabletu v obrazovkových bodech

getPictureHeight

protected int getPictureHeight()
Returns:
int výška tabletu v obrazovkových bodech

getTabletOffsetX

protected int getTabletOffsetX()
vrací číslo, kde na plátně je nejlevější bod tabletu

Returns:
int

getTabletOffsetY

protected int getTabletOffsetY()
vrací číslo, kde na plátně je nejvyšší bod tabletu

Returns:
int

getOffsetX

protected int getOffsetX()
posunutí tabletu v souřadnicích tabletu

Returns:
int

getOffsetY

protected int getOffsetY()
posunutí tabletu v souřadnicích tabletu

Returns:
int

getDescription

public java.lang.String getDescription()
Description copied from class: TabletDataViewer
vrátí textový popis prohlížeče

Overrides:
getDescription in class TabletDataViewer
Returns:
String

Parkinson Disease Database