de.hagenah.diplomacy.diptool
Class Preferences

java.lang.Object
  extended by de.hagenah.diplomacy.diptool.Preferences
All Implemented Interfaces:
java.io.Serializable

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

In this class the preferences are stored.

See Also:
Serialized Form

Method Summary
 boolean antiAliasing()
          Is antialiasing used?
 int getBrightness()
          Returns the brightness of the centers on the map.
 int getHighlighting()
          Returns the highlighting on the map.
 java.util.SortedSet getJudges()
          Returns the sorted set with the judges.
 boolean showAbbreviations()
          Are the province abbreviations shown on the map?
 boolean showCenters()
          Are the centers shown on the map?
 boolean showOrdersPower()
          Are the orders (type B) shown on the map?
 boolean showOrdersType()
          Are the orders (type A) shown on the map?
 boolean showUnits()
          Are the units shown on the map?
 boolean unitIcons()
          Are the unit icons shown instead of unit shapes?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBrightness

public int getBrightness()
Returns the brightness of the centers on the map.

Returns:
The brightness (0=unitcolor to 255=white)

getHighlighting

public int getHighlighting()
Returns the highlighting on the map.

Returns:
The highlighting (0=unchanged to 255=black)

getJudges

public java.util.SortedSet getJudges()
Returns the sorted set with the judges.

Returns:
The judges (Judge objects)

showAbbreviations

public boolean showAbbreviations()
Are the province abbreviations shown on the map?


showCenters

public boolean showCenters()
Are the centers shown on the map?


showOrdersType

public boolean showOrdersType()
Are the orders (type A) shown on the map?


showOrdersPower

public boolean showOrdersPower()
Are the orders (type B) shown on the map?


showUnits

public boolean showUnits()
Are the units shown on the map?


unitIcons

public boolean unitIcons()
Are the unit icons shown instead of unit shapes?


antiAliasing

public boolean antiAliasing()
Is antialiasing used?