superwaba.ext.xplat.io.print
Class Settings

java.lang.Object
  |
  +--superwaba.ext.xplat.io.print.Settings

public abstract class Settings
extends Object

This class is used to get and set various settings from the printer. Each driver has its own set of settings.


Constructor Summary
protected Settings()
          This class can't be instantiated.
 
Method Summary
abstract  float getFloat(int what)
          Gets a float value
abstract  int getInt(int what)
          Gets an integer value
abstract  String getString(int what)
          Gets a String value
abstract  void set(int what, float i)
          Sets a value as float
abstract  void set(int what, int i)
          Sets a value as integer
abstract  void set(int what, String s)
          Sets a value as String
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, toString, wait, wait
 

Constructor Detail

Settings

protected Settings()
This class can't be instantiated.
Method Detail

set

public abstract void set(int what,
                         String s)
                  throws NotSupportedException,
                         PrinterException
Sets a value as String

set

public abstract void set(int what,
                         int i)
                  throws NotSupportedException,
                         PrinterException
Sets a value as integer

set

public abstract void set(int what,
                         float i)
                  throws NotSupportedException,
                         PrinterException
Sets a value as float

getString

public abstract String getString(int what)
                          throws NotSupportedException,
                                 PrinterException
Gets a String value

getInt

public abstract int getInt(int what)
                    throws NotSupportedException,
                           PrinterException
Gets an integer value

getFloat

public abstract float getFloat(int what)
                        throws NotSupportedException,
                               PrinterException
Gets a float value