soccerclient.datamanager
Class ViewMode

java.lang.Object
  |
  +--soccerclient.datamanager.ViewMode
All Implemented Interfaces:
java.io.Serializable

public class ViewMode
extends java.lang.Object
implements java.io.Serializable

Überschrift: ViewMode

Beschreibung: In this class the actual viewmode is saved

Copyright: Copyright (c) 2002

Organisation: pm39

Author:
J.F.G
See Also:
Serialized Form

Inner Class Summary
(package private)  class ViewMode.NoViewMode
           
 
Field Summary
static int HIGH
           
static int LOW
           
static int NARROW
           
static int NORMAL
           
static int WIDE
           
 
Constructor Summary
ViewMode()
          Creates a new ViewMode instance with HIGH quality and NORMAL width
ViewMode(int quality, int width)
          Creates a new ViewMode
 
Method Summary
 int getQuality()
          Returns value of quality of the see-sense
 int getWidth()
          Returns value of width of the see-sense
 void setViewMode(int vm)
          Sets values quality or width.
 void setViewMode(int quality, int width)
          Sets values quality and width
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOW

public static final int LOW

HIGH

public static final int HIGH

NARROW

public static final int NARROW

NORMAL

public static final int NORMAL

WIDE

public static final int WIDE
Constructor Detail

ViewMode

public ViewMode()
Creates a new ViewMode instance with HIGH quality and NORMAL width

ViewMode

public ViewMode(int quality,
                int width)
         throws java.lang.Exception
Creates a new ViewMode
Parameters:
quality - a int value specifying quality of the see-sense
width - a int value specifying width of the see-sense
Throws:
ViewMode.NoViewMode - quality != LOW|HIGH or width != NARROW|NORMAL|WIDE
Method Detail

getQuality

public int getQuality()
Returns value of quality of the see-sense
Returns:
a int containing value of quality (LOW|HIGH)

getWidth

public int getWidth()
Returns value of width of the see-sense
Returns:
a int containing value of width (NARROW|NORMAL|WIDTH)

setViewMode

public void setViewMode(int vm)
                 throws java.lang.Exception
Sets values quality or width. If vm = LOW|HIGH then quality is set If vm = NARROW|NORMAL|WIDE then width is set
Parameters:
vm - a int value specifying quality or width of the see-sense
Throws:
ViewMode.NoViewMode - vm != LOW|HIGH|NARROW|NORMAL|WIDE

setViewMode

public void setViewMode(int quality,
                        int width)
                 throws java.lang.Exception
Sets values quality and width
Parameters:
quality - a int value specifying quality of the see-sense
width - a int value specifying width of the see-sense
Throws:
ViewMode.NoViewMode - quality != LOW|HIGH or width != NARROW|NORMAL|WIDE