public final class GUIConstants extends Object
map
)VIEWS
string belowMapView
).
View
instance in the GUI
constructor.GUIOptions
class GUIOptions.SHOWMAP
)c_showmap
and c_showmaptt
)GUIMenuCmd
class
(e.g. GUIMenuCmd.C_SHOWMAP
)and add a reference in the
MENUITEMS
menu structureModifier and Type | Class and Description |
---|---|
static class |
GUIConstants.Msg
Icon type.
|
Modifier and Type | Field and Description |
---|---|
static int |
ALT
Alt key.
|
static double |
ASCALE
Adapted scale factor.
|
static Color |
BACK
Background color.
|
static Font |
bfont
Bold Font.
|
static Color |
BLUE
Color: blue.
|
static Color |
color1
Second bright GUI color.
|
static Color |
color1A
Alpha color.
|
static Color |
color2
Middle color.
|
static Color |
color2A
Transparent background color.
|
static Color |
color3
Middle color.
|
static Color |
color3A
Cursor background color.
|
static Color |
color4
Dark color.
|
static Color |
colormark1
Mark color.
|
static Color |
colormark1A
Mark color, custom alpha value.
|
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 int |
CTRL
Control key.
|
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 Color |
CYAN
Color: cyan.
|
static Color |
dgray
Background color.
|
static Font |
dmfont
Default monospace font.
|
static String |
EDITORVIEW
Internal name of the Editor View.
|
static String |
EXPLOREVIEW
Internal name of the Explore View.
|
static String |
FOLDERVIEW
Internal name of the Tree View.
|
static Font |
font
Font.
|
static int |
fontSize
Current font size.
|
static int |
FONTSIZE
Standard font size (unscaled).
|
static Color |
gray
Button color.
|
static Color |
GREEN
Color: green.
|
static int |
HEIGHT
Standard line height.
|
static String |
INFOVIEW
Internal name of the Info View.
|
static boolean |
INVERT
Dark theme.
|
static JLabel |
LABEL
Dummy label, used for size calculations.
|
static Font |
lfont
Large font.
|
static Color |
lgray
Cell color.
|
static Color |
LRED
Color: light red.
|
static String |
MAPVIEW
Internal name of the Map View.
|
static int |
META
Shortcut key (CTRL/META).
|
static Font |
mfont
Monospace font.
|
static int |
NO_MOD
No modifier.
|
static Color |
PANEL
Panel color.
|
static String |
PLOTVIEW
Internal name of the Plot View.
|
static GUIMenuCmd[] |
POPUP
Context menu entries.
|
static Color |
PURPLE
Color: purple.
|
static Color |
RED
Color: red.
|
static double |
SCALE
Standard scale factor (>= 1).
|
static int |
SHIFT
Shift key.
|
static String |
TABLEVIEW
Internal name of the Table View.
|
static Color |
TEXT
Text color.
|
static JTextField |
TEXTFIELD
Dummy textfield.
|
static String |
TEXTVIEW
Internal name of the Text View.
|
static String |
TREEVIEW
Internal name of the Tree View.
|
static String |
VIEWS
Default GUI Layout.
|
Modifier and Type | Method and Description |
---|---|
static Color |
color(int i)
Returns the specified color from the color gradient.
|
static int[] |
fontWidths(Font f)
Returns the character widths for the current font.
|
static void |
init(GUIOptions opts)
Initializes colors.
|
public static final JTextField TEXTFIELD
public static final JLabel LABEL
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 EDITORVIEW
public static final String VIEWS
public static final GUIMenuCmd[] 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 BACK
public static final Color TEXT
public static final Color PANEL
public static final boolean INVERT
public static final Color RED
public static final Color LRED
public static final Color GREEN
public static final Color BLUE
public static final Color CYAN
public static final Color PURPLE
public static Color lgray
public static Color gray
public static Color dgray
public static Color color1
public static Color color2
public static Color color3
public static Color color4
public static Color colormark1
public static Color colormark2
public static Color colormark3
public static Color colormark4
public static Color color1A
public static Color color2A
public static Color color3A
public static Color colormark1A
public static Color colormark2A
public static final int FONTSIZE
public static final int HEIGHT
public static final double SCALE
public static final double ASCALE
public static Font lfont
public static Font font
public static Font bfont
public static Font mfont
public static Font dmfont
public static int fontSize
public static final int NO_MOD
public static final int SHIFT
public static final int ALT
public static final int CTRL
public static final int META
public static void init(GUIOptions opts)
opts
- gui optionspublic static Color color(int i)
i
- color indexpublic static int[] fontWidths(Font f)
f
- font referenceCopyright © 2005–2015 BaseX Team. All rights reserved.