es.prodevelop.gvsig.mobile.common
Class GvsigMobileGUIConstants

java.lang.Object
  extended byes.prodevelop.gvsig.mobile.common.GvsigMobileGUIConstants

public class GvsigMobileGUIConstants
extends java.lang.Object

Class that defines global constants to all the project

Author:
mmontesinos

Field Summary
static int ARROW_WIDTH
          The default width of the arrow button in a tool bar combo button - The value is 8
static int DEFAULT_BUTTON_HEIGHT
          The default height of the buttons in a toolbar - The value is 24
static int DEFAULT_BUTTON_WIDTH
          The default width of the buttons in a toolbar The value is 24
static int DEFAULT_TB_GROUP_BUTTON_WIDTH
          The default width of a group button
static java.awt.Image DROP_DOWN_ICON
          Image of a drop-down combo button in the tool bar - The value is image menu_combo_down_black.png
static java.awt.Image DROP_UP_ICON
          Selected image of a drop-down combo button in the tool bar - The value is image menu_combo_down_orange.png
static int ERROR_INDEX_OVERFLOW
          gvSIGMobile error constant because an access to an array has been tried with an indez that is over the array's length
static int ERROR_INDEX_UNDER_0
          gvSIGMobile error constant because the index is < 0 - The value is 2
static int ERROR_TB_BUTTON_CAPACITY
          gvSIGMobile error constant because the maximum button capacity in a toolbar has been reached and no more buttons can be added - The value is 3
static int ERROR_TB_BUTTON_GAPS
          gvSIGMobile error constant because a button can't be added to a toolbar leaving gaps among it and the existing buttons - The value is 4
static int ERROR_UNSPECIFIED
          gvSIGMobile error constant.
static int HELP_ICON_WIDTH
          The default width of the help button in a toolbar
static int ICON_SIZE_SMALL
          gvSIGMobile size of small icons or buttons .
static java.awt.Color MENU_BORDER_COLOR
          Default border color of drop-down menus - The value is Color(32, 32, 32)
static java.awt.Color MENU_BORDER_SHADOW_COLOR
          Default border shadow color of drop-down menus - The value is RGB (192, 192, 192)
static java.awt.Font MENU_FONT
          Default font used in texts of drop-down menus - The value is Font("Verdana", Font.BOLD, 10)
static int MENU_HEIGHT
          Default height of drop-down menus (1 element) - The value is 28
static int MENU_WIDTH
          Default width of drop-down menus - The value is 160
static int TB_COMBO_BUTTON_WIDTH
          The default width of the combo button in a tool bar including active button + drop down - The value is 32
static java.lang.String TB_GPS_ACTIVITY
          gvSIGMobile toolbar button help text
static java.lang.String TB_GPS_CONNECT
          gvSIGMobile toolbar button help text
static java.lang.String TB_GPS_DISPLAY_COORDINATES
          gvSIGMobile toolbar button help text
static java.lang.String TB_GPS_DISPLAY_POSITION
          gvSIGMobile toolbar button help text
static java.lang.String TB_GPS_SETUP
          gvSIGMobile toolbar button help text
static java.lang.String TB_GPS_START_TRACKLOG
          gvSIGMobile toolbar button help text
static java.lang.String TB_GPS_WAYPOINT
          gvSIGMobile toolbar button help text
static java.lang.String TB_INFO_IDENTIFY
          gvSIGMobile toolbar button help text
static java.lang.String TB_INFO_MEASURE_AREA
          gvSIGMobile toolbar button help text
static java.lang.String TB_INFO_MEASURE_COORDINATES
          gvSIGMobile toolbar button help text
static java.lang.String TB_INFO_MEASURE_DISTANCE
          gvSIGMobile toolbar button help text
static java.lang.String TB_INFO_SEARCH_ATRRIBUTES
          gvSIGMobile toolbar button help text
static java.lang.String TB_INFO_SELECT_POINT
          gvSIGMobile toolbar button help text
static java.lang.String TB_INFO_SELECT_RECTANGLE
          gvSIGMobile toolbar button help text
static java.lang.String TB_LAYERS_ADD_ECW
          gvSIGMobile toolbar button help text
static java.lang.String TB_LAYERS_ADD_IMAGE
          gvSIGMobile toolbar button help text
static java.lang.String TB_LAYERS_ADD_LAYER
          gvSIGMobile toolbar button help text
static java.lang.String TB_LAYERS_ADD_SHP
          gvSIGMobile toolbar button help text
static java.lang.String TB_LAYERS_ADD_WMS
          gvSIGMobile toolbar button help text
static java.lang.String TB_LAYERS_EXPORT_SCREEN
          gvSIGMobile toolbar button help text
static java.lang.String TB_LAYERS_PROPERTIES
          gvSIGMobile toolbar button help text
static java.lang.String TB_LAYERS_TOC
          gvSIGMobile toolbar button help text
static java.lang.String TB_NAV_CLEAR_SELECTION
          gvSIGMobile toolbar button help text
static java.lang.String TB_NAV_PAN
          gvSIGMobile toolbar button help text
static java.lang.String TB_NAV_RECENTER
          gvSIGMobile toolbar button help text
static java.lang.String TB_NAV_ZOOM_EXTENSION
          gvSIGMobile toolbar button help text
static java.lang.String TB_NAV_ZOOM_IN
          gvSIGMobile toolbar button help text
static java.lang.String TB_NAV_ZOOM_NEXT
          gvSIGMobile toolbar button help text
static java.lang.String TB_NAV_ZOOM_OUT
          gvSIGMobile toolbar button help text
static java.lang.String TB_NAV_ZOOM_PREVIOUS
          gvSIGMobile toolbar button help text
static java.lang.String TB_NAV_ZOOM_RECT
          gvSIGMobile toolbar button help text
static java.lang.String TB_NAV_ZOOM_SELECTION
          gvSIGMobile toolbar button help text
static java.lang.String TB_PROJECT_EXIT
          gvSIGMobile toolbar button help text
static java.lang.String TB_PROJECT_NEW
          gvSIGMobile toolbar button help text
static java.lang.String TB_PROJECT_OPEN
          gvSIGMobile toolbar button help text
static java.lang.String TB_PROJECT_PROPERTIES
          gvSIGMobile toolbar button help text
static java.lang.String TB_PROJECT_SAVE
          gvSIGMobile toolbar button help text
static java.lang.String TB_PROJECT_SAVE_AS
          gvSIGMobile toolbar button help text
static java.lang.String TB_PROJECT_SETUP
          gvSIGMobile toolbar button help text
static int TOOLBAR_HEIGHT
          The height of a toolbar - The value is 24 (= DEFAULT_BUTTON_HEIGHT)
 
Constructor Summary
GvsigMobileGUIConstants()
           
 
Method Summary
static java.lang.String getErrorText(int errorCode)
          Gets the text description for a given error code.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICON_SIZE_SMALL

public static final int ICON_SIZE_SMALL
gvSIGMobile size of small icons or buttons . The value is 16

See Also:
Constant Field Values

DEFAULT_BUTTON_WIDTH

public static final int DEFAULT_BUTTON_WIDTH
The default width of the buttons in a toolbar The value is 24

See Also:
Constant Field Values

DEFAULT_BUTTON_HEIGHT

public static final int DEFAULT_BUTTON_HEIGHT
The default height of the buttons in a toolbar - The value is 24

See Also:
Constant Field Values

TOOLBAR_HEIGHT

public static final int TOOLBAR_HEIGHT
The height of a toolbar - The value is 24 (= DEFAULT_BUTTON_HEIGHT)

See Also:
Constant Field Values

DEFAULT_TB_GROUP_BUTTON_WIDTH

public static final int DEFAULT_TB_GROUP_BUTTON_WIDTH
The default width of a group button

See Also:
Constant Field Values

HELP_ICON_WIDTH

public static final int HELP_ICON_WIDTH
The default width of the help button in a toolbar

See Also:
Constant Field Values

ARROW_WIDTH

public static final int ARROW_WIDTH
The default width of the arrow button in a tool bar combo button - The value is 8

See Also:
Constant Field Values

TB_COMBO_BUTTON_WIDTH

public static final int TB_COMBO_BUTTON_WIDTH
The default width of the combo button in a tool bar including active button + drop down - The value is 32

See Also:
Constant Field Values

DROP_DOWN_ICON

public static final java.awt.Image DROP_DOWN_ICON
Image of a drop-down combo button in the tool bar - The value is image menu_combo_down_black.png


DROP_UP_ICON

public static final java.awt.Image DROP_UP_ICON
Selected image of a drop-down combo button in the tool bar - The value is image menu_combo_down_orange.png


MENU_WIDTH

public static final int MENU_WIDTH
Default width of drop-down menus - The value is 160

See Also:
Constant Field Values

MENU_HEIGHT

public static final int MENU_HEIGHT
Default height of drop-down menus (1 element) - The value is 28

See Also:
Constant Field Values

MENU_BORDER_COLOR

public static final java.awt.Color MENU_BORDER_COLOR
Default border color of drop-down menus - The value is Color(32, 32, 32)


MENU_BORDER_SHADOW_COLOR

public static final java.awt.Color MENU_BORDER_SHADOW_COLOR
Default border shadow color of drop-down menus - The value is RGB (192, 192, 192)


MENU_FONT

public static final java.awt.Font MENU_FONT
Default font used in texts of drop-down menus - The value is Font("Verdana", Font.BOLD, 10)


TB_NAV_ZOOM_RECT

public static final java.lang.String TB_NAV_ZOOM_RECT
gvSIGMobile toolbar button help text. - The value is "Zoom Rectangle"


TB_NAV_ZOOM_IN

public static final java.lang.String TB_NAV_ZOOM_IN
gvSIGMobile toolbar button help text. - The value is "Zoom In"


TB_NAV_ZOOM_OUT

public static final java.lang.String TB_NAV_ZOOM_OUT
gvSIGMobile toolbar button help text. - The value is "Zoom Out"


TB_NAV_ZOOM_PREVIOUS

public static final java.lang.String TB_NAV_ZOOM_PREVIOUS
gvSIGMobile toolbar button help text. - The value is "Zoom Previous"


TB_NAV_ZOOM_NEXT

public static final java.lang.String TB_NAV_ZOOM_NEXT
gvSIGMobile toolbar button help text. - The value is "Zoom Next"


TB_NAV_ZOOM_EXTENSION

public static final java.lang.String TB_NAV_ZOOM_EXTENSION
gvSIGMobile toolbar button help text. - The value is "Zoom Extension"


TB_NAV_ZOOM_SELECTION

public static final java.lang.String TB_NAV_ZOOM_SELECTION
gvSIGMobile toolbar button help text. - The value is "Zoom to Selection"


TB_NAV_CLEAR_SELECTION

public static final java.lang.String TB_NAV_CLEAR_SELECTION
gvSIGMobile toolbar button help text. - The value is "Clear Selection"


TB_NAV_PAN

public static final java.lang.String TB_NAV_PAN
gvSIGMobile toolbar button help text. - The value is "Manual Pan"


TB_NAV_RECENTER

public static final java.lang.String TB_NAV_RECENTER
gvSIGMobile toolbar button help text. - The value is "Recenter"


TB_INFO_IDENTIFY

public static final java.lang.String TB_INFO_IDENTIFY
gvSIGMobile toolbar button help text. - The value is "Get Information"


TB_INFO_MEASURE_COORDINATES

public static final java.lang.String TB_INFO_MEASURE_COORDINATES
gvSIGMobile toolbar button help text. - The value is "View Coordinates"


TB_INFO_MEASURE_DISTANCE

public static final java.lang.String TB_INFO_MEASURE_DISTANCE
gvSIGMobile toolbar button help text. - The value is "Measure Distance"


TB_INFO_MEASURE_AREA

public static final java.lang.String TB_INFO_MEASURE_AREA
gvSIGMobile toolbar button help text. - The value is "Measure Ares"


TB_INFO_SEARCH_ATRRIBUTES

public static final java.lang.String TB_INFO_SEARCH_ATRRIBUTES
gvSIGMobile toolbar button help text. - The value is "Search by Attributes..."


TB_INFO_SELECT_POINT

public static final java.lang.String TB_INFO_SELECT_POINT
gvSIGMobile toolbar button help text. - The value is "Select by Point"


TB_INFO_SELECT_RECTANGLE

public static final java.lang.String TB_INFO_SELECT_RECTANGLE
gvSIGMobile toolbar button help text. - The value is "Select by Rectangle"


TB_LAYERS_ADD_SHP

public static final java.lang.String TB_LAYERS_ADD_SHP
gvSIGMobile toolbar button help text. - The value is "Add Shapefile..."


TB_LAYERS_ADD_ECW

public static final java.lang.String TB_LAYERS_ADD_ECW
gvSIGMobile toolbar button help text. - The value is "Add ECW..."


TB_LAYERS_ADD_IMAGE

public static final java.lang.String TB_LAYERS_ADD_IMAGE
gvSIGMobile toolbar button help text. - The value is "Add Image..."


TB_LAYERS_ADD_WMS

public static final java.lang.String TB_LAYERS_ADD_WMS
gvSIGMobile toolbar button help text. - The value is "Add WMS..."


TB_LAYERS_ADD_LAYER

public static final java.lang.String TB_LAYERS_ADD_LAYER
gvSIGMobile toolbar button help text. - The value is "Add Layer..."


TB_LAYERS_TOC

public static final java.lang.String TB_LAYERS_TOC
gvSIGMobile toolbar button help text. - The value is "Table of Contents..."


TB_LAYERS_EXPORT_SCREEN

public static final java.lang.String TB_LAYERS_EXPORT_SCREEN
gvSIGMobile toolbar button help text. - The value is "Export Screen..."


TB_LAYERS_PROPERTIES

public static final java.lang.String TB_LAYERS_PROPERTIES
gvSIGMobile toolbar button help text. - The value is "Layer Properties..."


TB_PROJECT_SAVE

public static final java.lang.String TB_PROJECT_SAVE
gvSIGMobile toolbar button help text. - The value is "Save Project"


TB_PROJECT_SAVE_AS

public static final java.lang.String TB_PROJECT_SAVE_AS
gvSIGMobile toolbar button help text. - The value is "Save Project As..."


TB_PROJECT_SETUP

public static final java.lang.String TB_PROJECT_SETUP
gvSIGMobile toolbar button help text. - The value is "Application Setup..."


TB_PROJECT_EXIT

public static final java.lang.String TB_PROJECT_EXIT
gvSIGMobile toolbar button help text. - The value is "Exit"


TB_PROJECT_NEW

public static final java.lang.String TB_PROJECT_NEW
gvSIGMobile toolbar button help text. - The value is "New Project..."


TB_PROJECT_OPEN

public static final java.lang.String TB_PROJECT_OPEN
gvSIGMobile toolbar button help text. - The value is "Open Project..."


TB_PROJECT_PROPERTIES

public static final java.lang.String TB_PROJECT_PROPERTIES
gvSIGMobile toolbar button help text. - The value is "Project Properties..."


TB_GPS_SETUP

public static final java.lang.String TB_GPS_SETUP
gvSIGMobile toolbar button help text. - The value is "GPS Setup..."


TB_GPS_CONNECT

public static final java.lang.String TB_GPS_CONNECT
gvSIGMobile toolbar button help text. - The value is "Connect/Disconnect"


TB_GPS_DISPLAY_COORDINATES

public static final java.lang.String TB_GPS_DISPLAY_COORDINATES
gvSIGMobile toolbar button help text. - The value is "Display Coordinates"


TB_GPS_DISPLAY_POSITION

public static final java.lang.String TB_GPS_DISPLAY_POSITION
gvSIGMobile toolbar button help text. - The value is "Display Position"


TB_GPS_START_TRACKLOG

public static final java.lang.String TB_GPS_START_TRACKLOG
gvSIGMobile toolbar button help text. - The value is "Start/Stop Tracklog"


TB_GPS_ACTIVITY

public static final java.lang.String TB_GPS_ACTIVITY
gvSIGMobile toolbar button help text. - The value is "View GPS Activity..."


TB_GPS_WAYPOINT

public static final java.lang.String TB_GPS_WAYPOINT
gvSIGMobile toolbar button help text. - The value is "New Waypoint..."


ERROR_UNSPECIFIED

public static final int ERROR_UNSPECIFIED
gvSIGMobile error constant. Unspecified (general) Error - The value is 1

See Also:
Constant Field Values

ERROR_INDEX_UNDER_0

public static final int ERROR_INDEX_UNDER_0
gvSIGMobile error constant because the index is < 0 - The value is 2

See Also:
Constant Field Values

ERROR_TB_BUTTON_CAPACITY

public static final int ERROR_TB_BUTTON_CAPACITY
gvSIGMobile error constant because the maximum button capacity in a toolbar has been reached and no more buttons can be added - The value is 3

See Also:
Constant Field Values

ERROR_TB_BUTTON_GAPS

public static final int ERROR_TB_BUTTON_GAPS
gvSIGMobile error constant because a button can't be added to a toolbar leaving gaps among it and the existing buttons - The value is 4

See Also:
Constant Field Values

ERROR_INDEX_OVERFLOW

public static final int ERROR_INDEX_OVERFLOW
gvSIGMobile error constant because an access to an array has been tried with an indez that is over the array's length

See Also:
Constant Field Values
Constructor Detail

GvsigMobileGUIConstants

public GvsigMobileGUIConstants()
Method Detail

getErrorText

public static java.lang.String getErrorText(int errorCode)
Gets the text description for a given error code. The constant error code must be declared and defined above in this class

Parameters:
errorCode - the error code of gvSIG Mobile.
Returns:
the text description of the error code.