org.basex.gui
Class GUIConstants

java.lang.Object
  extended by org.basex.gui.GUIConstants

public final class GUIConstants
extends Object

GUI Constants used in different views. To add a new view, please proceed as follows:

All views have unique names, which are defined below. The following steps are necessary to add a new view (the implementation of the existing views might help you):

Add some more code to allow switching on/off your view:

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Nested Class Summary
static class GUIConstants.Fill
          Background fill options.
static class GUIConstants.Msg
          Icon type.
 
Field Summary
static Color back
          Transparent background color.
static Font bfont
          Bold Font.
static int[] bwidth
          Bold character widths.
static Color color
          GUI color.
static Color color1
          Bright GUI color.
static Color color2
          Second bright GUI color.
static Color color3
          Middle color.
static Color color4
          Middle color.
static Color color6
          Dark color.
static Color COLORBUTTON
          Button color.
static Color COLORCELL
          Cell color.
static Color COLORDARK
          Background color.
static Color COLORERRHIGH
          Error highlight color.
static Color COLORERROR
          Error color.
static Color COLORFT
          Colors of full-text hits.
static Color colormark1
          Mark color.
static Color colormark2
          Second mark color.
static Color colormark2A
          Second mark color, custom alpha value.
static Color colormark3
          Third mark color.
static Color colormark4
          Fourth mark color.
static Color colormarkA
          Mark color, custom alpha value.
static Color[] COLORS
          Cached treemap colors.
static Cursor CURSORARROW
          Arrow cursor.
static Cursor CURSORHAND
          Hand cursor.
static Cursor CURSORMOVE
          Move cursor.
static Cursor CURSORMOVEH
          Left/Right arrow cursor.
static Cursor CURSORMOVEV
          Move cursor.
static Cursor CURSORTEXT
          Text cursor.
static Cursor CURSORWAIT
          Wait cursor.
static Font dfont
          Default monospace font.
static int[] dwidth
          Default monospace font widths.
static String EXPLOREVIEW
          Internal name of the Explore View.
static String FOLDERVIEW
          Internal name of the Tree View.
static Font font
          Font.
static Color frame
          Transparent frame color.
static int[] fwidth
          Character widths.
static String INFOVIEW
          Internal name of the Info View.
static String LAYOUT
          Default GUI Layout.
static Font lfont
          Large font.
static int[] lwidth
          Character large character widths.
static String MAPVIEW
          Internal name of the Map View.
static String[] MENUBAR
          Top menu entries.
static Object[][] MENUITEMS
          Two-dimensional Menu entries, containing the menu item commands.
static Font mfont
          Monospace font.
static int[] mfwidth
          Monospace character widths.
static String PLOTVIEW
          Internal name of the Plot View.
static GUICommand[] POPUP
          Context menu entries.
static String TABLEVIEW
          Internal name of the Table View.
static String TEXTVIEW
          Internal name of the Text View.
static GUICommand[] TOOLBAR
          Toolbar entries, containing the button commands.
static String TREEVIEW
          Internal name of the Tree View.
static String XQUERYVIEW
          Internal name of the XQuery View.
 
Method Summary
static int[] fontWidths(Font f)
          Returns the character widths for the current font.
static void init(GUIProp prop)
          Initializes colors.
static void initFonts(GUIProp prop)
          Initializes fonts.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAPVIEW

public static final String MAPVIEW
Internal name of the Map View.

See Also:
Constant Field Values

FOLDERVIEW

public static final String FOLDERVIEW
Internal name of the Tree View.

See Also:
Constant Field Values

TEXTVIEW

public static final String TEXTVIEW
Internal name of the Text View.

See Also:
Constant Field Values

TABLEVIEW

public static final String TABLEVIEW
Internal name of the Table View.

See Also:
Constant Field Values

INFOVIEW

public static final String INFOVIEW
Internal name of the Info View.

See Also:
Constant Field Values

EXPLOREVIEW

public static final String EXPLOREVIEW
Internal name of the Explore View.

See Also:
Constant Field Values

PLOTVIEW

public static final String PLOTVIEW
Internal name of the Plot View.

See Also:
Constant Field Values

TREEVIEW

public static final String TREEVIEW
Internal name of the Tree View.

See Also:
Constant Field Values

XQUERYVIEW

public static final String XQUERYVIEW
Internal name of the XQuery View.

See Also:
Constant Field Values

LAYOUT

public static final String LAYOUT
Default GUI Layout. The layout is formatted as follows: The character 'H' or 'V' adds a new horizontal or vertical level, and a level is closed again with the '-' character. All views are separated with spaces, and all views must be specified in this layout. This layout is displayed as soon as a database is opened.

See Also:
Constant Field Values

TOOLBAR

public static final GUICommand[] TOOLBAR
Toolbar entries, containing the button commands.


MENUBAR

public static final String[] MENUBAR
Top menu entries.


MENUITEMS

public static final Object[][] MENUITEMS
Two-dimensional Menu entries, containing the menu item commands.


POPUP

public static final GUICommand[] POPUP
Context menu entries.


CURSORARROW

public static final Cursor CURSORARROW
Arrow cursor.


CURSORHAND

public static final Cursor CURSORHAND
Hand cursor.


CURSORWAIT

public static final Cursor CURSORWAIT
Wait cursor.


CURSORMOVEH

public static final Cursor CURSORMOVEH
Left/Right arrow cursor.


CURSORMOVEV

public static final Cursor CURSORMOVEV
Move cursor.


CURSORTEXT

public static final Cursor CURSORTEXT
Text cursor.


CURSORMOVE

public static final Cursor CURSORMOVE
Move cursor.


COLORERROR

public static final Color COLORERROR
Error color.


COLORERRHIGH

public static final Color COLORERRHIGH
Error highlight color.


COLORCELL

public static final Color COLORCELL
Cell color.


COLORBUTTON

public static final Color COLORBUTTON
Button color.


COLORDARK

public static final Color COLORDARK
Background color.


COLORFT

public static final Color COLORFT
Colors of full-text hits.


back

public static Color back
Transparent background color.


frame

public static Color frame
Transparent frame color.


color

public static Color color
GUI color.


color1

public static Color color1
Bright GUI color.


color2

public static Color color2
Second bright GUI color.


color3

public static Color color3
Middle color.


color4

public static Color color4
Middle color.


color6

public static Color color6
Dark color.


colormarkA

public static Color colormarkA
Mark color, custom alpha value.


colormark2A

public static Color colormark2A
Second mark color, custom alpha value.


colormark1

public static Color colormark1
Mark color.


colormark2

public static Color colormark2
Second mark color.


colormark3

public static Color colormark3
Third mark color.


colormark4

public static Color colormark4
Fourth mark color.


COLORS

public static final Color[] COLORS
Cached treemap colors.


dfont

public static Font dfont
Default monospace font.


dwidth

public static int[] dwidth
Default monospace font widths.


lfont

public static Font lfont
Large font.


lwidth

public static int[] lwidth
Character large character widths.


font

public static Font font
Font.


fwidth

public static int[] fwidth
Character widths.


mfont

public static Font mfont
Monospace font.


mfwidth

public static int[] mfwidth
Monospace character widths.


bfont

public static Font bfont
Bold Font.


bwidth

public static int[] bwidth
Bold character widths.

Method Detail

init

public static void init(GUIProp prop)
Initializes colors.

Parameters:
prop - gui properties

initFonts

public static void initFonts(GUIProp prop)
Initializes fonts.

Parameters:
prop - gui properties

fontWidths

public static int[] fontWidths(Font f)
Returns the character widths for the current font.

Parameters:
f - font reference
Returns:
character widths