|
||||||||||
| 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)LAYOUTOPEN string belowMapView).
ViewPanel instance for your view 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. |
| Field Summary | |
|---|---|
static java.awt.Color |
back
Transparent background color. |
static java.awt.Font |
bfont
Bold Font. |
static int[] |
bwidth
Bold character widths. |
static java.awt.Color |
color
GUI color. |
static java.awt.Color |
color1
Bright GUI color. |
static java.awt.Color |
color2
Second bright GUI color. |
static java.awt.Color |
color3
Middle color. |
static java.awt.Color |
color4
Middle color. |
static java.awt.Color |
color6
Dark color. |
static java.awt.Color |
COLORBUTTON
Button color. |
static java.awt.Color |
COLORCELL
Cell color. |
static java.awt.Color |
COLORDARK
Background color. |
static java.awt.Color |
COLORERRHIGH
Error highlight color. |
static java.awt.Color |
COLORERROR
Error color. |
static java.awt.Color[] |
COLORFT
Colors of full-text hits. |
static java.awt.Color |
colormark1
Mark color. |
static java.awt.Color |
colormark2
Second mark color. |
static java.awt.Color |
colormark2A
Second mark color, custom alpha value. |
static java.awt.Color |
colormark3
Third mark color. |
static java.awt.Color |
colormark4
Fourth mark color. |
static java.awt.Color |
colormarkA
Mark color, custom alpha value. |
static java.awt.Color[] |
COLORS
Cached treemap colors. |
static java.awt.Cursor |
CURSORARROW
Arrow cursor. |
static java.awt.Cursor |
CURSORHAND
Hand cursor. |
static java.awt.Cursor |
CURSORMOVE
Move cursor. |
static java.awt.Cursor |
CURSORMOVEH
Left/Right arrow cursor. |
static java.awt.Cursor |
CURSORMOVEV
Move cursor. |
static java.awt.Cursor |
CURSORTEXT
Text cursor. |
static java.awt.Cursor |
CURSORWAIT
Wait cursor. |
static java.awt.Font |
dfont
Default monospace font. |
static int[] |
dwidth
Default monospace font widths. |
static java.lang.String |
EXPLOREVIEW
Internal name of the Explore View. |
static java.lang.String |
FOLDERVIEW
Internal name of the Tree View. |
static java.awt.Font |
font
Font. |
static java.lang.String[] |
FONTALIAS
Anti-alias modes. |
static java.awt.Color |
frame
Transparent frame color. |
static int[] |
fwidth
Character widths. |
static java.lang.String |
HELPVIEW
Internal name of the Help View. |
static java.lang.String |
INFOVIEW
Internal name of the Info View. |
static java.lang.String |
LAYOUTCLOSE
This layout is shown when no database is opened. |
static java.lang.String |
LAYOUTOPEN
Default GUI Layout. |
static java.awt.Font |
lfont
Large font. |
static int[] |
lwidth
Character large character widths. |
static java.lang.String |
MAPVIEW
Internal name of the Map View. |
static java.lang.String[] |
MENUBAR
Top menu entries. |
static java.lang.Object[][] |
MENUITEMS
Two-dimensional Menu entries, containing the menu item commands. |
static java.awt.Font |
mfont
Monospace font. |
static int[] |
mfwidth
Monospace character widths. |
static java.lang.String |
PLOTVIEW
Internal name of the Plot View. |
static GUICommand[] |
POPUP
Context menu entries. |
static java.lang.String |
TABLEVIEW
Internal name of the Table View. |
static java.lang.String |
TEXTVIEW
Internal name of the Text View. |
static GUICommand[] |
TOOLBAR
Toolbar entries, containing the button commands. |
static java.lang.String |
TREEVIEW
Internal name of the Tree View. |
static java.lang.String |
XQUERYVIEW
Internal name of the XQuery View. |
| Method Summary | |
|---|---|
static int[] |
fontWidths(java.awt.Font f)
Returns the character widths for the current font. |
static java.awt.Color |
getFTColor(int p)
Returns a full-text color for the specified pointer. |
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 java.lang.String MAPVIEW
public static final java.lang.String FOLDERVIEW
public static final java.lang.String TEXTVIEW
public static final java.lang.String TABLEVIEW
public static final java.lang.String INFOVIEW
public static final java.lang.String EXPLOREVIEW
public static final java.lang.String HELPVIEW
public static final java.lang.String PLOTVIEW
public static final java.lang.String TREEVIEW
public static final java.lang.String XQUERYVIEW
public static final java.lang.String LAYOUTOPEN
public static final java.lang.String LAYOUTCLOSE
public static final GUICommand[] TOOLBAR
public static final java.lang.String[] MENUBAR
public static final java.lang.Object[][] MENUITEMS
public static final GUICommand[] POPUP
public static final java.awt.Cursor CURSORARROW
public static final java.awt.Cursor CURSORHAND
public static final java.awt.Cursor CURSORWAIT
public static final java.awt.Cursor CURSORMOVEH
public static final java.awt.Cursor CURSORMOVEV
public static final java.awt.Cursor CURSORTEXT
public static final java.awt.Cursor CURSORMOVE
public static final java.lang.String[] FONTALIAS
public static final java.awt.Color COLORERROR
public static final java.awt.Color COLORERRHIGH
public static final java.awt.Color COLORCELL
public static final java.awt.Color COLORBUTTON
public static final java.awt.Color COLORDARK
public static final java.awt.Color[] COLORFT
public static java.awt.Color back
public static java.awt.Color frame
public static java.awt.Color color
public static java.awt.Color color1
public static java.awt.Color color2
public static java.awt.Color color3
public static java.awt.Color color4
public static java.awt.Color color6
public static java.awt.Color colormarkA
public static java.awt.Color colormark2A
public static java.awt.Color colormark1
public static java.awt.Color colormark2
public static java.awt.Color colormark3
public static java.awt.Color colormark4
public static final java.awt.Color[] COLORS
public static java.awt.Font dfont
public static int[] dwidth
public static java.awt.Font lfont
public static int[] lwidth
public static java.awt.Font font
public static int[] fwidth
public static java.awt.Font mfont
public static int[] mfwidth
public static java.awt.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(java.awt.Font f)
f - font reference
public static java.awt.Color getFTColor(int p)
p - pointer on token in query.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||