|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.gui.GUIConstants
public final class GUIConstants
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):
map
)LAYOUT
string belowMapView
).
View
instance in the GUI
constructor.GUIProp
class GUIProp.SHOWMAP
)Text
class (e.g. Text.GUISHOWMAP
an
Text.GUISHOWMAPTT
).
c_showmap
and c_showmaptt
)
GUICommands
class
(e.g. GUICommands.SHOWMAP
)and add a reference in the
MENUITEMS
menu structure
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 |
---|
public static final String MAPVIEW
public static final String FOLDERVIEW
public static final String TEXTVIEW
public static final String TABLEVIEW
public static final String INFOVIEW
public static final String EXPLOREVIEW
public static final String PLOTVIEW
public static final String TREEVIEW
public static final String XQUERYVIEW
public static final String LAYOUT
public static final GUICommand[] TOOLBAR
public static final String[] MENUBAR
public static final Object[][] MENUITEMS
public static final GUICommand[] POPUP
public static final Cursor CURSORARROW
public static final Cursor CURSORHAND
public static final Cursor CURSORWAIT
public static final Cursor CURSORMOVEH
public static final Cursor CURSORMOVEV
public static final Cursor CURSORTEXT
public static final Cursor CURSORMOVE
public static final Color COLORERROR
public static final Color COLORERRHIGH
public static final Color COLORCELL
public static final Color COLORBUTTON
public static final Color COLORDARK
public static final Color COLORFT
public static Color back
public static Color frame
public static Color color
public static Color color1
public static Color color2
public static Color color3
public static Color color4
public static Color color6
public static Color colormarkA
public static Color colormark2A
public static Color colormark1
public static Color colormark2
public static Color colormark3
public static Color colormark4
public static final Color[] COLORS
public static Font dfont
public static int[] dwidth
public static Font lfont
public static int[] lwidth
public static Font font
public static int[] fwidth
public static Font mfont
public static int[] mfwidth
public static Font bfont
public static int[] bwidth
Method Detail |
---|
public static void init(GUIProp prop)
prop
- gui propertiespublic static void initFonts(GUIProp prop)
prop
- gui propertiespublic static int[] fontWidths(Font f)
f
- font reference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |