Parkinson Disease Database

tablet
Class TabletInfo

java.lang.Object
  extended by tablet.TabletInfo

public class TabletInfo
extends java.lang.Object

Class stores information about tablet

Copyright: Copyright (c) 2005 Miroslav Skrbek, Jan Dolezel

Company: ÈVUT FEL, Prague


Field Summary
private  int maxx
          maximal x coordinate
private  int maxy
          maximal y coordinate
private  int minx
          minimal x coordinate
private  int miny
          minimal y coordinate
private  java.lang.String name
          tablet name
 
Constructor Summary
TabletInfo(java.lang.String name, int maxx, int maxy)
          creates new tablet information with x and y minimal coordinates set to 0
TabletInfo(java.lang.String name, int minx, int maxx, int miny, int maxy)
          creates new tablet information
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getHeight()
          returns tablet's height
 int getMaxX()
          returns tablet's maximal x coordinate
 int getMaxY()
          returns tablet's maximal y coordinate
 int getMinX()
          returns tablet's minimal x coordinate
 int getMinY()
          returns tablet's minimal y coordinate
 java.lang.String getTabletName()
          returns tablet's name
 int getWidth()
          returns tablet's width
 java.lang.String toString()
          returns string representation of tablet's naem and measures
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
tablet name


minx

private int minx
minimal x coordinate


maxx

private int maxx
maximal x coordinate


miny

private int miny
minimal y coordinate


maxy

private int maxy
maximal y coordinate

Constructor Detail

TabletInfo

public TabletInfo(java.lang.String name,
                  int maxx,
                  int maxy)
creates new tablet information with x and y minimal coordinates set to 0

Parameters:
name - tablet name
maxx - maximal x coordinate
maxy - maximal y coordinate

TabletInfo

public TabletInfo(java.lang.String name,
                  int minx,
                  int maxx,
                  int miny,
                  int maxy)
creates new tablet information

Parameters:
name - tablet name
minx - minimal x coordinate
maxx - maximal x coordinate
miny - minimal y coordinate
maxy - maximal y coordinate
Method Detail

getTabletName

public java.lang.String getTabletName()
returns tablet's name


getMinX

public int getMinX()
returns tablet's minimal x coordinate


getMinY

public int getMinY()
returns tablet's minimal y coordinate


getMaxX

public int getMaxX()
returns tablet's maximal x coordinate


getMaxY

public int getMaxY()
returns tablet's maximal y coordinate


getWidth

public int getWidth()
returns tablet's width


getHeight

public int getHeight()
returns tablet's height


toString

public java.lang.String toString()
returns string representation of tablet's naem and measures

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

Parkinson Disease Database