ch.claudio.fonts
Class Settings

java.lang.Object
  extended by ch.claudio.fonts.Settings

public class Settings
extends java.lang.Object

Store settings which should be preserved over invocations.

Version:
$Id: Settings.java 34 2006-07-10 23:55:46Z $
Author:
Claudio Nieder

Copyright (C) 2006 Claudio Nieder <private@claudio.ch>, CH-8610 Uster

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Constructor Summary
Settings()
           
 
Method Summary
static int getFontIndex()
          Return the number of the selected font.
static void main(java.lang.String[] args)
          Print license.
static void setFontIndex(int index)
          Store the index of the selected font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Settings

public Settings()
Method Detail

getFontIndex

public static int getFontIndex()
Return the number of the selected font. It's up to the caller to adjust the value if it is outside of the range of the available items.

Returns:
index starting with 0

setFontIndex

public static void setFontIndex(int index)
Store the index of the selected font. This is just the index as reported by the list box.

Parameters:
index -

main

public static void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored