org.basex.gui
Class GUIProp

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

public final class GUIProp
extends java.lang.Object

This class contains properties which are used in the GUI. They are initially read from and finally written to disk, except for the properties following the SKIP flag.

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

Field Summary
static int colorblue
          Blue GUI color factor.
static int colorgreen
          Green GUI color factor.
static int colorred
          Red GUI color factor.
static int[] colorsloc
          Dialog location.
static java.lang.String[] commands
          Last entered BaseX commands.
static java.lang.String createpath
          Path for creating new XML Documents.
static boolean execrt
          Flag for realtime context switch.
static boolean filterrt
          Flag for realtime context switch.
static java.lang.String font
          Default GUI Font.
static java.lang.String fontaa
          Anti-aliasing type.
static boolean fontalias
          Flag for anti-aliasing results in GUI mode.
static int fontsize
          Font size.
static int[] fontsloc
          Dialog location.
static int fonttype
          Font type = plain, bold, italics).
static boolean fsall
          Flag for importing complete file system hierarchy.
static java.lang.String fspath
          Path for importing the file system.
static int[] guiloc
          GUI position.
static int[] guisize
          GUI height.
static java.lang.String importfsname
          Name of the filesystem database.
static boolean javalook
          Flag for Java look and feel.
static java.lang.String layoutclosed
          GUI Layout.
static java.lang.String layoutopened
          GUI Layout.
static boolean mapaggr
          Map alignment by size aggregation.
static int mapalgo
          Map algorithm.
static boolean mapatts
          Show attributes in treemap.
static int maplayout
          Treemap Layout.
static int[] maplayoutloc
          Dialog location.
static int mapprop
          Treemap Proportion.
static boolean mapsimple
          Flag for using a simple map layout.
static boolean maxstate
          Flag for maximized GUI window.
static java.lang.String monofont
          Default GUI Monospace Font.
static boolean mousefocus
          Focus follows mouse.
static int plotdots
          Dot sizes in plot.
static java.lang.String[] search
          Last entered BaseX commands.
static int[] searchloc
          Search GUI position.
static int searchmode
          Current input mode in global text field (Search, XPath, Command).
static int searchwidth
          Search GUI width.
static boolean showbuttons
          Flag for displaying buttons in the GUI window.
static boolean showhelp
          Flag for activated help view.
static boolean showinfo
          Flag for activated info view.
static boolean showinput
          Flag for displaying the text field in the GUI window.
static boolean showmap
          Flag for activated map view.
static boolean showmenu
          Flag for displaying the menu in the GUI window.
static boolean shownames
          Flag for dissolving name attributes.
static boolean showplot
          Flag for activated plot view.
static boolean showquery
          Flag for activated search view.
static boolean showreal
          Flag for activated real tree view.
static boolean showstarthelp
          Flag for activated help view after starting.
static boolean showstarttext
          Flag for activated result view after starting.
static boolean showstatus
          Flag for displaying the status bar in the GUI window.
static boolean showtable
          Flag for activated table view.
static boolean showtext
          Flag for activated result view.
static boolean showtree
          Flag for activated tree view.
static boolean simplefd
          Flag for showing the simple file dialog.
static boolean SKIP
          Following options are not saved/read; don't remove this flag.
static java.lang.String[] xpath
          Last entered XPath queries.
static java.lang.String xqpath
          Path for XQuery files.
 
Method Summary
static void read()
          Reads in the GUI configuration file and initializes the properties.
static void write()
          Writes the configuration file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

font

public static java.lang.String font
Default GUI Font.


monofont

public static java.lang.String monofont
Default GUI Monospace Font.


fonttype

public static int fonttype
Font type = plain, bold, italics).


fontsize

public static int fontsize
Font size.


fontalias

public static boolean fontalias
Flag for anti-aliasing results in GUI mode.


fontaa

public static java.lang.String fontaa
Anti-aliasing type. Supported variants: LCD_HRGB / LCD_HBGR / LCD_VRGB / LCD_VBGR / GASP


colorred

public static int colorred
Red GUI color factor.


colorgreen

public static int colorgreen
Green GUI color factor.


colorblue

public static int colorblue
Blue GUI color factor.


guisize

public static int[] guisize
GUI height.


guiloc

public static int[] guiloc
GUI position.


searchloc

public static int[] searchloc
Search GUI position.


searchwidth

public static int searchwidth
Search GUI width.


maxstate

public static boolean maxstate
Flag for maximized GUI window.


showbuttons

public static boolean showbuttons
Flag for displaying buttons in the GUI window.


showinput

public static boolean showinput
Flag for displaying the text field in the GUI window.


showstatus

public static boolean showstatus
Flag for displaying the status bar in the GUI window.


layoutclosed

public static java.lang.String layoutclosed
GUI Layout.


layoutopened

public static java.lang.String layoutopened
GUI Layout.


showinfo

public static boolean showinfo
Flag for activated info view.


showmap

public static boolean showmap
Flag for activated map view.


showtable

public static boolean showtable
Flag for activated table view.


showtext

public static boolean showtext
Flag for activated result view.


showtree

public static boolean showtree
Flag for activated tree view.


showquery

public static boolean showquery
Flag for activated search view.


showhelp

public static boolean showhelp
Flag for activated help view.


shownames

public static boolean shownames
Flag for dissolving name attributes.


simplefd

public static boolean simplefd
Flag for showing the simple file dialog.


showplot

public static boolean showplot
Flag for activated plot view.


searchmode

public static int searchmode
Current input mode in global text field (Search, XPath, Command).


mousefocus

public static boolean mousefocus
Focus follows mouse.


filterrt

public static boolean filterrt
Flag for realtime context switch.


execrt

public static boolean execrt
Flag for realtime context switch.


javalook

public static boolean javalook
Flag for Java look and feel.


mapsimple

public static boolean mapsimple
Flag for using a simple map layout.


mapatts

public static boolean mapatts
Show attributes in treemap.


maplayout

public static int maplayout
Treemap Layout.


mapprop

public static int mapprop
Treemap Proportion.


plotdots

public static int plotdots
Dot sizes in plot.


maplayoutloc

public static int[] maplayoutloc
Dialog location.


fontsloc

public static int[] fontsloc
Dialog location.


colorsloc

public static int[] colorsloc
Dialog location.


createpath

public static java.lang.String createpath
Path for creating new XML Documents.


xqpath

public static java.lang.String xqpath
Path for XQuery files.


fspath

public static java.lang.String fspath
Path for importing the file system.


importfsname

public static java.lang.String importfsname
Name of the filesystem database.


fsall

public static boolean fsall
Flag for importing complete file system hierarchy.


commands

public static java.lang.String[] commands
Last entered BaseX commands.


search

public static java.lang.String[] search
Last entered BaseX commands.


xpath

public static java.lang.String[] xpath
Last entered XPath queries.


SKIP

public static final boolean SKIP
Following options are not saved/read; don't remove this flag.

See Also:
Constant Field Values

showmenu

public static boolean showmenu
Flag for displaying the menu in the GUI window.


showreal

public static boolean showreal
Flag for activated real tree view.


showstarttext

public static boolean showstarttext
Flag for activated result view after starting.


showstarthelp

public static boolean showstarthelp
Flag for activated help view after starting.


mapalgo

public static int mapalgo
Map algorithm.


mapaggr

public static boolean mapaggr
Map alignment by size aggregation.

Method Detail

read

public static void read()
Reads in the GUI configuration file and initializes the properties. The file is located in the user's home directory.


write

public static void write()
Writes the configuration file.