edu.ucsb.nceas.morpho.util
Class UISettings

java.lang.Object
  |
  +--edu.ucsb.nceas.morpho.util.UISettings

public class UISettings
extends java.lang.Object

This is a class containing static methods and attributes that define global display settings in Morpho, which can't be represented directly by string values from config.xml (such as Fonts, colors etc) N O T E : currently, this class also contains values that *could* be represented by strings in a config file - this is an interim step - one step better than hard-coding them in the UI classes, but should still be replaced by calls to a config file, ultimately. Similarly, colors and fonts could be represented in String form in a config file (eg colors as red/green/blue values etc). When that has been established, this class will serve as a resource for pulling the RGB values and creating the java.awt.Color objects, instead of needing to do that in the various UI classes.


Field Summary
static java.awt.Color ALERT_TEXT_COLOR
          General alert text (eg shown in data view if data file not readable)
static java.awt.Color BACKBUTTON_COLOR
           
static java.awt.Color BACKBUTTON_TEXT_COLOR
          Settings for MetaData Viewer panels
static java.awt.Color BACKGROUND_COLOR
           
static java.awt.Color BOTTOMLINE_COLOR
           
static java.awt.Color BUTTON_DISABLED_TEXT_COLOR
          Settings for MetaData Viewer panels
static java.awt.Font BUTTON_FONT
           
static java.lang.String CHANGE_PROFILE_LABEL_TEXT
           
static int CLIENT_SCREEN_HEIGHT
          overall screen height (in pixels)
static int CLIENT_SCREEN_WIDTH
          overall screen width (in pixels)
static java.awt.Color CLOSEBUTTON_COLOR
           
static java.awt.Color CLOSEBUTTON_TEXT_COLOR
          Settings for MetaData Viewer panels
static java.awt.Color CUSTOM_GRAY
           
static double DEFAULT_WINDOW_HEIGHT
          overall height (pixels) of MorphoFrame (after making allowance for client screen height, taskbar etc)
static double DEFAULT_WINDOW_WIDTH
          overall width (pixels) of MorphoFrame (after making allowance for client screen width etc)
static java.awt.Color EDITBUTTON_COLOR
           
static java.awt.Color EDITBUTTON_TEXT_COLOR
          Settings for MetaData Viewer panels
static int FOCUS_BORDER_WIDTH
           
static java.awt.Color FOCUSED_BORDER_COLOR
           
static java.awt.Image FRAME_AND_TASKBAR_ICON
           
static java.awt.Dimension HEADER_BOTTOMLINE_DIMS
           
static java.lang.String HYPERLINK_FONT_HTML_CLOSETAGS
          html closing tags for font on hyperlink urls
static java.lang.String HYPERLINK_FONT_HTML_OPENTAGS
          html opening tags for font on hyperlink urls
static java.lang.String HYPERLINK_FONT_OVER_HTML_CLOSETAGS
          html closing tags for font on hyperlink urls during mouseover
static java.lang.String HYPERLINK_FONT_OVER_HTML_OPENTAGS
          html opening tags for font on hyperlink urls during mouseover
static java.awt.Image INIT_SCR_BACKGROUND
           
static java.awt.Dimension INIT_SCR_LINKBUTTON_DIMS
          size of the hyperlink buttons on the left side of the initial screen
static java.lang.String INIT_SCR_LOGGED_IN_MESSAGE
           
static java.lang.String INIT_SCR_LOGGED_IN_STATUS
           
static java.lang.String INIT_SCR_LOGGEDOUT_STATUS
           
static java.lang.String INIT_SCR_LOGIN_BUTTON_TEXT
           
static java.lang.String INIT_SCR_LOGIN_HEADER
           
static java.lang.String INIT_SCR_LOGIN_MESSAGE
           
static java.lang.String INIT_SCR_PANEL_LITE_FONT_CLOSE
          closing html tags for light-value text in panels to the left of the initial screen
static java.lang.String INIT_SCR_PANEL_LITE_FONT_OPEN
          opening html tags for light-value text in panels to the left of the initial screen
static java.lang.String INIT_SCR_PANEL_TITLE_HILITE_FONT_CLOSE
          opening html tags for highlighted text in title bars on panel to the left of the initial screen
static java.lang.String INIT_SCR_PANEL_TITLE_HILITE_FONT_OPEN
          opening html tags for highlighted text in title bars on panel to the left of the initial screen
static int INIT_SCRN_DATA_PANEL_HEIGHT
           
static java.awt.Color INIT_SCRN_LEFT_PANELS_BG_COLOR
          background color of the 3 panels on the left side of the initial screen
static java.awt.Dimension INIT_SCRN_LEFT_PANELS_LABELDIMS
          size of the "Change Profile" and "Password" labels on the left side of the initial screen
static int INIT_SCRN_LEFT_PANELS_PADDING
          # pixels padding around & between the 3 panels on the left side of the initial screen
static java.awt.Dimension INIT_SCRN_LEFT_PANELS_PICKLISTDIMS
          size of the "Change Profile" and "Password" picklists (JComboBoxes) on the left side of the initial screen
static java.awt.Color INIT_SCRN_LEFT_PANELS_TITLE_BG_COLOR
          background color of the title bars on the 3 panels to the left of the initial screen
static java.awt.Dimension INIT_SCRN_LEFT_PANELS_TITLE_DIMS
          Dims in pixels for each of 3 panels on the left side of initial screen
static int INIT_SCRN_LEFT_PANELS_WIDTH
          Width in pixels for each of 3 panels on the left side of initial screen
static int INIT_SCRN_LOGIN_PANEL_HEIGHT
           
static java.awt.Color INIT_SCRN_MAIN_BG_COLOR
          background color of the main part of the initial screen
static java.lang.String INIT_SCRN_PANELS_DATA_TITLE_TEXT_OPEN
          html tags and text for title bar on the "Data" panel to the left of the initial screen
static java.lang.String INIT_SCRN_PANELS_LOGIN_TITLE_TEXT_OPEN
          html tags and text for title bar on the "Login" panel to the left of the initial screen
static java.lang.String INIT_SCRN_PANELS_PROFILE_TITLE_TEXT_OPEN
          html tags and text for title bar on the "Profile" panel to the left of the initial screen
static java.lang.String INIT_SCRN_PANELS_TITLE_CLOSE
          common to the above 3: closing html tags and text for title bar on the panel to the left of the initial screen
static int INIT_SCRN_PROFILE_PANEL_HEIGHT
           
static javax.swing.Icon LOGOUT_ICON
           
static javax.swing.Icon LOGOUT_ICON_ROLLOVER
           
static java.lang.String LOGOUT_LINK_TEXT
           
static int MAX_WINDOW_HEIGHT
           
static int MAX_WINDOW_WIDTH
           
static java.awt.Insets METAVIEW_BUTTON_INSETS
          insets for nuttons in metaviewer - order is (TOP, LEFT, BOTTOM, RIGHT)
static javax.swing.Icon NEW_DATAPACKAGE_ICON
           
static javax.swing.Icon NEW_DATAPACKAGE_ICON_ROLLOVER
           
static java.lang.String NEW_DATAPACKAGE_LINK_TEXT
           
static javax.swing.Icon NEW_PROFILE_ICON
           
static javax.swing.Icon NEW_PROFILE_ICON_ROLLOVER
           
static java.lang.String NEW_PROFILE_LINK_TEXT
           
static java.awt.Color NONEDITABLE_BACKGROUND_COLOR
           
static javax.swing.Icon OPEN_DATAPACKAGE_ICON
           
static javax.swing.Icon OPEN_DATAPACKAGE_ICON_ROLLOVER
           
static java.lang.String OPEN_DATAPACKAGE_LINK_TEXT
           
static java.lang.String PASSWORD_LABEL_TEXT
           
static int PATHBAR_BOTTOM_PADDING
           
static int PATHBAR_SIDES_PADDING
           
static int PATHBAR_TOP_PADDING
           
static javax.swing.Icon REFRESH_ICON
           
static javax.swing.Icon SAVE_ICON
           
static javax.swing.Icon SEARCH_ICON
           
static javax.swing.Icon SEARCH_ICON_ROLLOVER
           
static java.lang.String SEARCH_LINK_TEXT
           
static java.awt.Font SUBPANEL_TITLE_FONT
           
static int TASKBAR_HEIGHT
          a guess at how high most taskbars will be (in pixels)
static java.awt.Dimension TITLE_CITATION_DIMS
           
static java.awt.Font TITLE_CITATION_FONT
           
static java.awt.Font TITLE_CITATION_FONT_BOLD
           
static int TITLE_CITATION_HEIGHT
           
static java.awt.Dimension TITLE_LOCATION_DIMS
           
static java.awt.Font TITLE_LOCATION_FONT
           
static int TITLE_LOCATION_HEIGHT
           
static int TITLE_LOCATION_WIDTH
           
static java.awt.Color TITLE_TEXT_COLOR
          Color for text on title bars of sub-windows in datapackage view (i.e.
static int TITLEBAR_BOTTOM_PADDING
           
static java.awt.Color TITLEBAR_COLOR
           
static int TITLEBAR_COMPONENT_HEIGHT
           
static java.awt.Dimension TITLEBAR_DIMS
           
static int TITLEBAR_SIDES_PADDING
           
static int TITLEBAR_TOP_PADDING
           
static java.awt.Color UNFOCUSED_BORDER_COLOR
           
static int VERT_SPLIT_INIT_LOCATION
           
static int WINDOW_CASCADE_X_OFFSET
          How many pixels to leave at each edge of initial, centered screen?
static int WINDOW_CASCADE_Y_OFFSET
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_SCREEN_WIDTH

public static final int CLIENT_SCREEN_WIDTH
overall screen width (in pixels)

CLIENT_SCREEN_HEIGHT

public static final int CLIENT_SCREEN_HEIGHT
overall screen height (in pixels)

TASKBAR_HEIGHT

public static final int TASKBAR_HEIGHT
a guess at how high most taskbars will be (in pixels)

DEFAULT_WINDOW_WIDTH

public static final double DEFAULT_WINDOW_WIDTH
overall width (pixels) of MorphoFrame (after making allowance for client screen width etc)

DEFAULT_WINDOW_HEIGHT

public static final double DEFAULT_WINDOW_HEIGHT
overall height (pixels) of MorphoFrame (after making allowance for client screen height, taskbar etc)

FOCUS_BORDER_WIDTH

public static final int FOCUS_BORDER_WIDTH

TITLEBAR_TOP_PADDING

public static final int TITLEBAR_TOP_PADDING

TITLEBAR_SIDES_PADDING

public static final int TITLEBAR_SIDES_PADDING

TITLEBAR_BOTTOM_PADDING

public static final int TITLEBAR_BOTTOM_PADDING

PATHBAR_TOP_PADDING

public static final int PATHBAR_TOP_PADDING

PATHBAR_SIDES_PADDING

public static final int PATHBAR_SIDES_PADDING

PATHBAR_BOTTOM_PADDING

public static final int PATHBAR_BOTTOM_PADDING

METAVIEW_BUTTON_INSETS

public static final java.awt.Insets METAVIEW_BUTTON_INSETS
insets for nuttons in metaviewer - order is (TOP, LEFT, BOTTOM, RIGHT)

TITLEBAR_DIMS

public static final java.awt.Dimension TITLEBAR_DIMS

HEADER_BOTTOMLINE_DIMS

public static final java.awt.Dimension HEADER_BOTTOMLINE_DIMS

TITLEBAR_COMPONENT_HEIGHT

public static final int TITLEBAR_COMPONENT_HEIGHT

TITLE_CITATION_HEIGHT

public static final int TITLE_CITATION_HEIGHT

TITLE_CITATION_DIMS

public static final java.awt.Dimension TITLE_CITATION_DIMS

TITLE_LOCATION_HEIGHT

public static final int TITLE_LOCATION_HEIGHT

TITLE_LOCATION_WIDTH

public static final int TITLE_LOCATION_WIDTH

TITLE_LOCATION_DIMS

public static final java.awt.Dimension TITLE_LOCATION_DIMS

VERT_SPLIT_INIT_LOCATION

public static final int VERT_SPLIT_INIT_LOCATION

MAX_WINDOW_WIDTH

public static final int MAX_WINDOW_WIDTH

MAX_WINDOW_HEIGHT

public static final int MAX_WINDOW_HEIGHT

WINDOW_CASCADE_X_OFFSET

public static final int WINDOW_CASCADE_X_OFFSET
How many pixels to leave at each edge of initial, centered screen?

WINDOW_CASCADE_Y_OFFSET

public static final int WINDOW_CASCADE_Y_OFFSET

INIT_SCRN_LEFT_PANELS_PADDING

public static final int INIT_SCRN_LEFT_PANELS_PADDING
# pixels padding around & between the 3 panels on the left side of the initial screen

INIT_SCRN_LEFT_PANELS_LABELDIMS

public static final java.awt.Dimension INIT_SCRN_LEFT_PANELS_LABELDIMS
size of the "Change Profile" and "Password" labels on the left side of the initial screen

INIT_SCRN_LEFT_PANELS_PICKLISTDIMS

public static final java.awt.Dimension INIT_SCRN_LEFT_PANELS_PICKLISTDIMS
size of the "Change Profile" and "Password" picklists (JComboBoxes) on the left side of the initial screen

INIT_SCR_LINKBUTTON_DIMS

public static final java.awt.Dimension INIT_SCR_LINKBUTTON_DIMS
size of the hyperlink buttons on the left side of the initial screen

INIT_SCRN_LEFT_PANELS_WIDTH

public static final int INIT_SCRN_LEFT_PANELS_WIDTH
Width in pixels for each of 3 panels on the left side of initial screen

INIT_SCRN_PROFILE_PANEL_HEIGHT

public static final int INIT_SCRN_PROFILE_PANEL_HEIGHT

INIT_SCRN_LOGIN_PANEL_HEIGHT

public static final int INIT_SCRN_LOGIN_PANEL_HEIGHT

INIT_SCRN_DATA_PANEL_HEIGHT

public static final int INIT_SCRN_DATA_PANEL_HEIGHT

INIT_SCRN_LEFT_PANELS_TITLE_DIMS

public static final java.awt.Dimension INIT_SCRN_LEFT_PANELS_TITLE_DIMS
Dims in pixels for each of 3 panels on the left side of initial screen

SUBPANEL_TITLE_FONT

public static final java.awt.Font SUBPANEL_TITLE_FONT

BUTTON_FONT

public static final java.awt.Font BUTTON_FONT

TITLE_CITATION_FONT

public static final java.awt.Font TITLE_CITATION_FONT

TITLE_CITATION_FONT_BOLD

public static final java.awt.Font TITLE_CITATION_FONT_BOLD

TITLE_LOCATION_FONT

public static final java.awt.Font TITLE_LOCATION_FONT

HYPERLINK_FONT_HTML_OPENTAGS

public static final java.lang.String HYPERLINK_FONT_HTML_OPENTAGS
html opening tags for font on hyperlink urls

HYPERLINK_FONT_HTML_CLOSETAGS

public static final java.lang.String HYPERLINK_FONT_HTML_CLOSETAGS
html closing tags for font on hyperlink urls

HYPERLINK_FONT_OVER_HTML_OPENTAGS

public static final java.lang.String HYPERLINK_FONT_OVER_HTML_OPENTAGS
html opening tags for font on hyperlink urls during mouseover

HYPERLINK_FONT_OVER_HTML_CLOSETAGS

public static final java.lang.String HYPERLINK_FONT_OVER_HTML_CLOSETAGS
html closing tags for font on hyperlink urls during mouseover

INIT_SCR_PANEL_TITLE_HILITE_FONT_OPEN

public static final java.lang.String INIT_SCR_PANEL_TITLE_HILITE_FONT_OPEN
opening html tags for highlighted text in title bars on panel to the left of the initial screen

INIT_SCR_PANEL_TITLE_HILITE_FONT_CLOSE

public static final java.lang.String INIT_SCR_PANEL_TITLE_HILITE_FONT_CLOSE
opening html tags for highlighted text in title bars on panel to the left of the initial screen

INIT_SCR_PANEL_LITE_FONT_OPEN

public static final java.lang.String INIT_SCR_PANEL_LITE_FONT_OPEN
opening html tags for light-value text in panels to the left of the initial screen

INIT_SCR_PANEL_LITE_FONT_CLOSE

public static final java.lang.String INIT_SCR_PANEL_LITE_FONT_CLOSE
closing html tags for light-value text in panels to the left of the initial screen

TITLE_TEXT_COLOR

public static final java.awt.Color TITLE_TEXT_COLOR
Color for text on title bars of sub-windows in datapackage view (i.e. the "spreadsheet" panel and the two MetaData Viewer panels)

BACKBUTTON_TEXT_COLOR

public static final java.awt.Color BACKBUTTON_TEXT_COLOR
Settings for MetaData Viewer panels

CLOSEBUTTON_TEXT_COLOR

public static final java.awt.Color CLOSEBUTTON_TEXT_COLOR
Settings for MetaData Viewer panels

EDITBUTTON_TEXT_COLOR

public static final java.awt.Color EDITBUTTON_TEXT_COLOR
Settings for MetaData Viewer panels

BUTTON_DISABLED_TEXT_COLOR

public static final java.awt.Color BUTTON_DISABLED_TEXT_COLOR
Settings for MetaData Viewer panels

ALERT_TEXT_COLOR

public static final java.awt.Color ALERT_TEXT_COLOR
General alert text (eg shown in data view if data file not readable)

TITLEBAR_COLOR

public static final java.awt.Color TITLEBAR_COLOR

BACKGROUND_COLOR

public static final java.awt.Color BACKGROUND_COLOR

BOTTOMLINE_COLOR

public static final java.awt.Color BOTTOMLINE_COLOR

BACKBUTTON_COLOR

public static final java.awt.Color BACKBUTTON_COLOR

CLOSEBUTTON_COLOR

public static final java.awt.Color CLOSEBUTTON_COLOR

EDITBUTTON_COLOR

public static final java.awt.Color EDITBUTTON_COLOR

CUSTOM_GRAY

public static final java.awt.Color CUSTOM_GRAY

FOCUSED_BORDER_COLOR

public static final java.awt.Color FOCUSED_BORDER_COLOR

UNFOCUSED_BORDER_COLOR

public static final java.awt.Color UNFOCUSED_BORDER_COLOR

NONEDITABLE_BACKGROUND_COLOR

public static final java.awt.Color NONEDITABLE_BACKGROUND_COLOR

INIT_SCRN_LEFT_PANELS_BG_COLOR

public static final java.awt.Color INIT_SCRN_LEFT_PANELS_BG_COLOR
background color of the 3 panels on the left side of the initial screen

INIT_SCRN_LEFT_PANELS_TITLE_BG_COLOR

public static final java.awt.Color INIT_SCRN_LEFT_PANELS_TITLE_BG_COLOR
background color of the title bars on the 3 panels to the left of the initial screen

INIT_SCRN_MAIN_BG_COLOR

public static final java.awt.Color INIT_SCRN_MAIN_BG_COLOR
background color of the main part of the initial screen

FRAME_AND_TASKBAR_ICON

public static final java.awt.Image FRAME_AND_TASKBAR_ICON

INIT_SCR_BACKGROUND

public static final java.awt.Image INIT_SCR_BACKGROUND

NEW_DATAPACKAGE_ICON

public static final javax.swing.Icon NEW_DATAPACKAGE_ICON

NEW_DATAPACKAGE_ICON_ROLLOVER

public static final javax.swing.Icon NEW_DATAPACKAGE_ICON_ROLLOVER

OPEN_DATAPACKAGE_ICON

public static final javax.swing.Icon OPEN_DATAPACKAGE_ICON

OPEN_DATAPACKAGE_ICON_ROLLOVER

public static final javax.swing.Icon OPEN_DATAPACKAGE_ICON_ROLLOVER

SEARCH_ICON

public static final javax.swing.Icon SEARCH_ICON

SEARCH_ICON_ROLLOVER

public static final javax.swing.Icon SEARCH_ICON_ROLLOVER

REFRESH_ICON

public static final javax.swing.Icon REFRESH_ICON

SAVE_ICON

public static final javax.swing.Icon SAVE_ICON

NEW_PROFILE_ICON

public static final javax.swing.Icon NEW_PROFILE_ICON

NEW_PROFILE_ICON_ROLLOVER

public static final javax.swing.Icon NEW_PROFILE_ICON_ROLLOVER

LOGOUT_ICON

public static final javax.swing.Icon LOGOUT_ICON

LOGOUT_ICON_ROLLOVER

public static final javax.swing.Icon LOGOUT_ICON_ROLLOVER

INIT_SCRN_PANELS_PROFILE_TITLE_TEXT_OPEN

public static final java.lang.String INIT_SCRN_PANELS_PROFILE_TITLE_TEXT_OPEN
html tags and text for title bar on the "Profile" panel to the left of the initial screen

INIT_SCRN_PANELS_LOGIN_TITLE_TEXT_OPEN

public static final java.lang.String INIT_SCRN_PANELS_LOGIN_TITLE_TEXT_OPEN
html tags and text for title bar on the "Login" panel to the left of the initial screen

INIT_SCRN_PANELS_DATA_TITLE_TEXT_OPEN

public static final java.lang.String INIT_SCRN_PANELS_DATA_TITLE_TEXT_OPEN
html tags and text for title bar on the "Data" panel to the left of the initial screen

INIT_SCRN_PANELS_TITLE_CLOSE

public static final java.lang.String INIT_SCRN_PANELS_TITLE_CLOSE
common to the above 3: closing html tags and text for title bar on the panel to the left of the initial screen

NEW_DATAPACKAGE_LINK_TEXT

public static final java.lang.String NEW_DATAPACKAGE_LINK_TEXT

OPEN_DATAPACKAGE_LINK_TEXT

public static final java.lang.String OPEN_DATAPACKAGE_LINK_TEXT

SEARCH_LINK_TEXT

public static final java.lang.String SEARCH_LINK_TEXT

NEW_PROFILE_LINK_TEXT

public static final java.lang.String NEW_PROFILE_LINK_TEXT

LOGOUT_LINK_TEXT

public static final java.lang.String LOGOUT_LINK_TEXT

CHANGE_PROFILE_LABEL_TEXT

public static final java.lang.String CHANGE_PROFILE_LABEL_TEXT

PASSWORD_LABEL_TEXT

public static final java.lang.String PASSWORD_LABEL_TEXT

INIT_SCR_LOGIN_MESSAGE

public static final java.lang.String INIT_SCR_LOGIN_MESSAGE

INIT_SCR_LOGGED_IN_MESSAGE

public static final java.lang.String INIT_SCR_LOGGED_IN_MESSAGE

INIT_SCR_LOGIN_BUTTON_TEXT

public static final java.lang.String INIT_SCR_LOGIN_BUTTON_TEXT

INIT_SCR_LOGIN_HEADER

public static final java.lang.String INIT_SCR_LOGIN_HEADER

INIT_SCR_LOGGED_IN_STATUS

public static final java.lang.String INIT_SCR_LOGGED_IN_STATUS

INIT_SCR_LOGGEDOUT_STATUS

public static final java.lang.String INIT_SCR_LOGGEDOUT_STATUS


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.