sub_arctic.output
Class style_manager

java.lang.Object
  |
  +--sub_arctic.output.style_manager

public class style_manager
extends java.lang.Object

This class holds onto information that the toolkit will need about the current way to display the interface and other properties of the interface w.r.t. display.


Field Summary
protected static style _current_style
          Store the current style.
protected static java.awt.Font _default_font
          The default font for the system.
protected static color_scheme _default_scheme
          This is sub_arctic's default color scheme.
 
Constructor Summary
style_manager()
           
 
Method Summary
static style current_style()
          Get the currently active style manager.
static color_scheme default_color_scheme()
          This gets the default color scheme for sub_arctic, predominately grey with a white text bg.
static java.awt.Font default_font()
          Retrieve the default font.
static void set_current_style(style s)
          Change the current style.
static void set_default_font(java.awt.Font f)
          Set the default font.
static void set_default_scheme(color_scheme cs)
          Set the default color scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_current_style

protected static style _current_style
Store the current style.

_default_scheme

protected static color_scheme _default_scheme
This is sub_arctic's default color scheme.

_default_font

protected static java.awt.Font _default_font
The default font for the system.
Constructor Detail

style_manager

public style_manager()
Method Detail

current_style

public static style current_style()
Get the currently active style manager.
Returns:
style an instance of a style which will handle this interfaces look and feel needs.

set_current_style

public static void set_current_style(style s)
Change the current style.
Parameters:
style - s the new style handler.

default_color_scheme

public static color_scheme default_color_scheme()
This gets the default color scheme for sub_arctic, predominately grey with a white text bg.
Returns:
color_scheme the system default scheme

set_default_scheme

public static void set_default_scheme(color_scheme cs)
Set the default color scheme. XXX This should force some kind a global redraw of all interactors that use the style_manager.
Parameters:
color_scheme - cs the new color scheme for the system.

default_font

public static java.awt.Font default_font()
Retrieve the default font.
Returns:
Font the system's default font.

set_default_font

public static void set_default_font(java.awt.Font f)
Set the default font. XXX Should trigger a refresh of all objects using the style system. XXX
Parameters:
Font - f the new system default font.