|
||||||||||
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
)VIEWS
string belowMapView
).
View
instance in the GUI
constructor.GUIProp
class GUIProp.SHOWMAP
)Text
class (e.g. Text.MAP
an
Text.H_MAP
).
c_showmap
and c_showmaptt
)
GUICommands
class
(e.g. GUICommands.C_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 int |
ALT
Alt key. |
static java.awt.Font |
bfont
Bold Font. |
static java.awt.Color |
BLUE
Color for highlighting quotes. |
static java.awt.Color |
color1
Second bright GUI color. |
static java.awt.Color |
color1A
Alpha color. |
static java.awt.Color |
color2
Middle color. |
static java.awt.Color |
color2A
Transparent background color. |
static java.awt.Color |
color3
Middle color. |
static java.awt.Color |
color3A
Transparent frame color. |
static java.awt.Color |
color4
Dark color. |
static java.awt.Color |
colormark1
Mark color. |
static java.awt.Color |
colormark1A
Mark color, custom alpha value. |
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 int |
CTRL
Control key. |
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.Color |
DGRAY
Background color. |
static java.awt.Font |
dmfont
Default monospace font. |
static java.lang.String |
EDITORVIEW
Internal name of the Editor View. |
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 int |
fontSize
Current font size. |
static java.awt.Color |
GRAY
Button color. |
static java.awt.Color |
GREEN
Color for highlighting full-text hits. |
static java.lang.String |
INFOVIEW
Internal name of the Info View. |
static java.awt.Font |
lfont
Large font. |
static java.awt.Color |
LGRAY
Cell color. |
static java.awt.Color |
LRED
Color for highlighting errors. |
static java.lang.String |
MAPVIEW
Internal name of the Map View. |
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 GUICommands[] |
POPUP
Context menu entries. |
static java.awt.Color |
RED
Color for control characters. |
static int |
SC
Shortcut key (CTRL/META). |
static int |
SHF
Shift key. |
static java.lang.String |
TABLEVIEW
Internal name of the Table View. |
static java.lang.String |
TEXTVIEW
Internal name of the Text View. |
static java.awt.Font |
TFONT
Font of text area. |
static java.lang.String |
TREEVIEW
Internal name of the Tree View. |
static java.lang.String |
VIEWS
Default GUI Layout. |
static java.awt.Color |
WHITE
Bright GUI color. |
Method Summary | |
---|---|
static java.awt.Color |
color(int i)
Returns the specified color from the color gradient. |
static int[] |
fontWidths(java.awt.Font f)
Returns the character widths for the current font. |
static void |
init(GUIProp prop)
Initializes colors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, 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 PLOTVIEW
public static final java.lang.String TREEVIEW
public static final java.lang.String EDITORVIEW
public static final java.lang.String VIEWS
public static final GUICommands[] 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.awt.Color LGRAY
public static final java.awt.Color GRAY
public static final java.awt.Color DGRAY
public static final java.awt.Color WHITE
public static final java.awt.Color RED
public static final java.awt.Color LRED
public static final java.awt.Color GREEN
public static final java.awt.Color BLUE
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 colormark1
public static java.awt.Color colormark2
public static java.awt.Color colormark3
public static java.awt.Color colormark4
public static java.awt.Color color1A
public static java.awt.Color color2A
public static java.awt.Color color3A
public static java.awt.Color colormark1A
public static java.awt.Color colormark2A
public static final java.awt.Font TFONT
public static java.awt.Font lfont
public static java.awt.Font font
public static java.awt.Font bfont
public static java.awt.Font mfont
public static java.awt.Font dmfont
public static int fontSize
public static int[] mfwidth
public static final int SHF
public static final int ALT
public static final int CTRL
public static final int SC
Method Detail |
---|
public static void init(GUIProp prop)
prop
- gui propertiespublic static java.awt.Color color(int i)
i
- color index
public static int[] fontWidths(java.awt.Font f)
f
- font reference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |