TV-Browser 2.7.5 API

util.settings
Class WindowSetting

java.lang.Object
  extended by util.settings.WindowSetting

public final class WindowSetting
extends Object

A class with the position and size settings for a window.

Since:
2.7
Author:
René Mach

Constructor Summary
WindowSetting(Dimension size)
          Creates an instance of this class with the default setting -1 for all values.
WindowSetting(ObjectInputStream in)
          Creates an instance of this class with the values read from the stream.
 
Method Summary
 void layout(Window window)
          Sets the values to the given window.
 void saveSettings(ObjectOutputStream out)
          Saves the values in the given stream.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowSetting

public WindowSetting(ObjectInputStream in)
              throws IOException
Creates an instance of this class with the values read from the stream.

Parameters:
in - The stream to read the settings from.
Throws:
IOException - Thrown if something went wrong.

WindowSetting

public WindowSetting(Dimension size)
Creates an instance of this class with the default setting -1 for all values.

Parameters:
size - The default size of the window.
Method Detail

saveSettings

public void saveSettings(ObjectOutputStream out)
                  throws IOException
Saves the values in the given stream.

Parameters:
out - The stream to save the values in.
Throws:
IOException

layout

public void layout(Window window)
Sets the values to the given window.

Parameters:
window - The window to set the values for.

toString

public String toString()
Overrides:
toString in class Object

TV-Browser 2.7.5 API

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