net.ctdp.rfdynhud.widgets.base.widget
Class WidgetSet

java.lang.Object
  extended by net.ctdp.rfdynhud.widgets.base.widget.WidgetSet

public class WidgetSet
extends java.lang.Object

The WidgetSet groups Widgets.

Author:
Marvin Froehlich (CTDP)

Constructor Summary
WidgetSet(int version)
           
 
Method Summary
static int composeVersion(int major, int minor, int revision)
          Composes one 32 bit integer from major, minor and revision numbers.
 java.lang.String getDefaultBorderValue(java.lang.String name)
          Gets the default value for the given border alias/name.
 java.lang.String getDefaultNamedColorValue(java.lang.String name)
          Gets the default value for the given named color.
 java.lang.String getDefaultNamedFontValue(java.lang.String name)
          Gets the default value for the given named font.
protected  java.net.URL getIcon(java.lang.String name)
           
 int getVersion()
          Gets a comparable version indicator for this WidgetPackage.
 java.lang.String getVersionString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetSet

public WidgetSet(int version)
Parameters:
version - see composeVersion(int, int, int)
Method Detail

getIcon

protected final java.net.URL getIcon(java.lang.String name)

composeVersion

public static final int composeVersion(int major,
                                       int minor,
                                       int revision)
Composes one 32 bit integer from major, minor and revision numbers.

Parameters:
major - major field
minor - minor field
revision - revision field
Returns:
a 32 bit integer for the version.

getVersion

public final int getVersion()
Gets a comparable version indicator for this WidgetPackage.

Returns:
a comparable version indicator for this WidgetPackage.

getVersionString

public final java.lang.String getVersionString()

getDefaultBorderValue

public java.lang.String getDefaultBorderValue(java.lang.String name)
Gets the default value for the given border alias/name.

Parameters:
name - the border name to query
Returns:
the default value for the given border alias/name.

getDefaultNamedColorValue

public java.lang.String getDefaultNamedColorValue(java.lang.String name)
Gets the default value for the given named color.

Parameters:
name - the color name to query
Returns:
the default value for the given named color.

getDefaultNamedFontValue

public java.lang.String getDefaultNamedFontValue(java.lang.String name)
Gets the default value for the given named font.

Parameters:
name - the font name to query
Returns:
the default value for the given named font.