TV-Browser 2.7.5 API

printplugin.settings
Class ProgramInfoPrintSettings

java.lang.Object
  extended by printplugin.settings.ProgramInfoPrintSettings

public class ProgramInfoPrintSettings
extends Object

The settings for the printing of the program info.

Author:
René Mach

Method Summary
 Object[] getAllFieldTypes()
           
 Object[] getFieldTypes()
           
 Font getFont()
           
static ProgramInfoPrintSettings getInstance()
          If no instance exisits create one.
 boolean isPrintImage()
           
 boolean isPrintPluginIcons()
           
 void readData(ObjectInputStream in)
          Read the settings from the data file.
 void setFieldTypes(Object[] fieldTypes)
          Set the program field types of this settings.
 void setFont(Font font)
          Set the font of this setting.
 void setPrintImage(boolean printImage)
          Set the printImage state of this setting
 void setPrintPluginIcons(boolean printIcons)
          Set the printPluginIcons state of this setting
 void writeData(ObjectOutputStream out)
          Write the settings to the data file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ProgramInfoPrintSettings getInstance()
If no instance exisits create one.

Returns:
The instance of this class.

readData

public void readData(ObjectInputStream in)
              throws IOException,
                     ClassNotFoundException
Read the settings from the data file.

Parameters:
in - The input stream.
Throws:
IOException - If something went wrong with the file io.
ClassNotFoundException - If a class could not be found.

writeData

public void writeData(ObjectOutputStream out)
               throws IOException
Write the settings to the data file.

Parameters:
out - The output stream.
Throws:
IOException - If something went wrong with the file io.

getFont

public Font getFont()
Returns:
The font for the printing.

getFieldTypes

public Object[] getFieldTypes()
Returns:
The field types to print.

getAllFieldTypes

public Object[] getAllFieldTypes()
Returns:
All possible field types.

setFont

public void setFont(Font font)
Set the font of this setting.

Parameters:
font - The font to set.

setPrintImage

public void setPrintImage(boolean printImage)
Set the printImage state of this setting

Parameters:
printImage - If the image should be printed.

isPrintImage

public boolean isPrintImage()
Returns:
If the image should be printed.

setPrintPluginIcons

public void setPrintPluginIcons(boolean printIcons)
Set the printPluginIcons state of this setting

Parameters:
printIcons - If the plugin icons should be printed.

isPrintPluginIcons

public boolean isPrintPluginIcons()
Returns:
If the plugin icons should be printed.

setFieldTypes

public void setFieldTypes(Object[] fieldTypes)
Set the program field types of this settings.

Parameters:
fieldTypes - The field types to set.

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)