|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspirals.data.TabletDataViewer
spirals.data.SimpleTabletDataViewer
public class SimpleTabletDataViewer
Simple viewing algorithm of captured data
Copyright: Copyright (c) 2005 Jan Dolezel
Company: ÈVUT FEL, Prague
Field Summary | |
---|---|
private int |
border
number of pixels between active area and border |
private boolean |
detail
zoom |
private boolean |
showUp
|
private TabletInfo |
ti
active tablet measures |
Fields inherited from class spirals.data.TabletDataViewer |
---|
screen, tabletData |
Constructor Summary | |
---|---|
SimpleTabletDataViewer(javax.swing.JPanel screen,
TabletData tabletData,
boolean showUp)
creates new data viewer for specified panel |
Method Summary | |
---|---|
boolean |
getDetail()
is view zoomed? |
void |
paint(java.awt.Graphics g)
painting procedure Method paints data to canvas specified by g param. |
void |
setDetail(boolean detail)
zoom or unzoom view |
void |
setShowUp(boolean showUp)
|
void |
setTabletInfo(TabletInfo tabletInfo)
sets new tablet measures |
Methods inherited from class spirals.data.TabletDataViewer |
---|
repaint, setTabletData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private TabletInfo ti
private int border
private boolean detail
private boolean showUp
Constructor Detail |
---|
public SimpleTabletDataViewer(javax.swing.JPanel screen, TabletData tabletData, boolean showUp)
screen
- panel to draw ontabletData
- data to drawMethod Detail |
---|
public void paint(java.awt.Graphics g)
Method paints data to canvas specified by g param. It preserves aspect ratio of x and y axis. When detail is set to true, it zoom the drawing across entire viewport, still preserve aspect ratio.
paint
in class TabletDataViewer
g
- where to drawpublic void setDetail(boolean detail)
public boolean getDetail()
public void setShowUp(boolean showUp)
public void setTabletInfo(TabletInfo tabletInfo)
|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |