|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object comirva.config.VisuPreferences
public class VisuPreferences
This class represents the global preferences for the visualization pane and the data management area.
Field Summary | |
---|---|
static Color |
VISU_BACKGROUND
background of the visualisation pane. |
static int |
VISU_BORDER_SIZE
size of the area between visualisation and the eadge of the painting area. |
static boolean |
VISU_ENABLE_EPS
eps output is disabled by default |
static int |
VISU_FONT_SIZE
size of the font used for labels etc. |
static int |
VISU_NAME_ALL
constant for index of setting: use all visualisation parameters |
static String[] |
VISU_NAME_NAMES
the titles for the options concerning the visualisation name generation |
static int |
VISU_NAME_NONSTANDARD
constant for index of setting: use only non-standard configuration values |
static int |
VISU_NAME_NOTHING
constant for index of setting: use no configuration values |
static String |
VISU_PATH
path where open/save dialogs start. |
static boolean |
VISU_TOOLBAR_FLOATABLE
the toolbar is fixed (not floatable) by default |
static int |
VISU_TOOLBAR_LAYOUT
the toolbar layout is JTabbedPane.SCROLL_TAB_LAYOUT by default
which means that the tabs in one line and may be scrolled |
static boolean |
VISU_USE_DATA_MATRIX_NAME
the data matrix name is used for generating a visualisation name by default |
Constructor Summary | |
---|---|
VisuPreferences()
Constructs a new instance of a preferences object with the standard values of the fields. |
|
VisuPreferences(Color backgroundColor,
int borderSize,
int labelFontSize,
boolean enableEPS)
Creates a new instance of the preferences object. |
|
VisuPreferences(String lastDir,
boolean toolbarFloatable,
int tabLayout,
int visuName,
boolean useDataMatrixName)
Creates a new instance of the preferences object |
Method Summary | |
---|---|
Color |
getBackgroundColor()
Returns the background color. |
int |
getBorderSize()
Returns the border size. |
int |
getLabelFontSize()
Returns the standard font used for drawing labels. |
String |
getLastDir()
the last directory the user has selected |
int |
getTabLayout()
this property determines whether the tabs are arranged in multiple lines or in one single line with buttons for scrolling. |
int |
getVisuName()
this property determines how much of the visualisation configuration parameters should be used for generating a appropiate name for the new visualistion. |
boolean |
isEnableEPS()
Returns whether the EPS output option is enabled. |
boolean |
isToolbarFloatable()
when a toolbar is floatable it means that it can be moved to another edge inside its container or own window. |
void |
setDataManagementPreferences(boolean toolbarFloatable,
int tabLayout,
int visuName,
boolean useDataMatrixName)
Set data management preferences without changing the last directory setting. |
void |
setDataManagementPreferences(String lastDir,
boolean toolbarFloatable,
int tabLayout,
int visuName,
boolean useDataMatrixName)
Set data management preferences. |
void |
setLastDir(String lastDirectory)
set last directory. |
void |
setVisuPreferences(Color backgroundColor,
int borderSize,
int labelFontSize,
boolean enableEPS)
Set visualisation preferences. |
boolean |
useDataMatrixName()
this property determines if the name of the data matrix should be appended to the name of the visualisation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Color VISU_BACKGROUND
Color(250,250,255)
public static final int VISU_BORDER_SIZE
50
public static final int VISU_FONT_SIZE
public static final boolean VISU_ENABLE_EPS
public static final String VISU_PATH
public static final boolean VISU_TOOLBAR_FLOATABLE
public static final int VISU_TOOLBAR_LAYOUT
JTabbedPane.SCROLL_TAB_LAYOUT
by default
which means that the tabs in one line and may be scrolled
public static final boolean VISU_USE_DATA_MATRIX_NAME
public static final int VISU_NAME_ALL
public static final int VISU_NAME_NONSTANDARD
public static final int VISU_NAME_NOTHING
public static final String[] VISU_NAME_NAMES
Constructor Detail |
---|
public VisuPreferences(Color backgroundColor, int borderSize, int labelFontSize, boolean enableEPS)
backgroundColor
- the Color that defines the background color of the visualization paneborderSize
- the border size of the visualization panelabelFontSize
- the font size of the labels and other text of the visualization paneenableEPS
- enable EPS-Output (slower graphics display!)public VisuPreferences(String lastDir, boolean toolbarFloatable, int tabLayout, int visuName, boolean useDataMatrixName)
lastDir
- the last directory that was selected in a open/save dialogtoolbarFloatable
- the toolbar is floatable or not (floatable means that the user can move the toolbar around)tabLayout
- the layout of the tabulators (see JTabbedPane.SCROLL_TAB_LAYOUT
or JTabbedPane.SCROLL_TAB_LAYOUT
)visuName
- defines how visualisation names are constructed (one of VISU_NAME_ALL
, VISU_NAME_NONSTANDARD
or 2)useDataMatrixName
- append the data matrix name to visualisation namepublic VisuPreferences()
VISU_BACKGROUND
,
VISU_BORDER_SIZE
,
VISU_ENABLE_EPS
,
VISU_FONT_SIZE
,
VISU_PATH
,
VISU_TOOLBAR_FLOATABLE
,
VISU_TOOLBAR_LAYOUT
,
VISU_USE_DATA_MATRIX_NAME
Method Detail |
---|
public void setVisuPreferences(Color backgroundColor, int borderSize, int labelFontSize, boolean enableEPS)
backgroundColor
- the Color that defines the background color of the visualisation paneborderSize
- the border size of the visualisation panelabelFontSize
- the font size of the labels and other text of the visualisation paneenableEPS
- enable EPS-Output (slower graphics display!)public void setDataManagementPreferences(String lastDir, boolean toolbarFloatable, int tabLayout, int visuName, boolean useDataMatrixName)
lastDir
- the last directory that was selected in a open/save dialogtoolbarFloatable
- the toolbar is floatable or not (floatable means that the user can move the toolbar around)tabLayout
- the layout of the tabulators (see JTabbedPane.SCROLL_TAB_LAYOUT
or JTabbedPane.SCROLL_TAB_LAYOUT
)visuName
- defines how visualisation names are constructed (one of VISU_NAME_ALL
, VISU_NAME_NONSTANDARD
or 2)useDataMatrixName
- append the data matrix name to visualisation namepublic void setDataManagementPreferences(boolean toolbarFloatable, int tabLayout, int visuName, boolean useDataMatrixName)
setDataManagementPreferences(String, boolean, int, int, boolean)
with the current directory setting.
toolbarFloatable
- the toolbar is floatable or not (floatable means that the user can move the toolbar around)tabLayout
- the layout of the tabulators (see JTabbedPane.SCROLL_TAB_LAYOUT
or JTabbedPane.SCROLL_TAB_LAYOUT
)visuName
- defines how visualisation names are constructed (one of VISU_NAME_ALL
, VISU_NAME_NONSTANDARD
or 2)useDataMatrixName
- append the data matrix name to visualisation namesetDataManagementPreferences(String, boolean, int, int, boolean)
public Color getBackgroundColor()
public int getBorderSize()
public int getLabelFontSize()
public boolean isEnableEPS()
public String getLastDir()
public void setLastDir(String lastDirectory)
lastDirectory
- the new last directorypublic boolean isToolbarFloatable()
JToolBar
JToolBar#isFloatable()
,
JToolBar#setFloatable(boolean)
public int getTabLayout()
JTabbdedPane
JTabbedPane.getTabLayoutPolicy()
,
JTabbedPane.setTabLayoutPolicy(int)
public int getVisuName()
VISU_NAME_ALL
: use every configuration parameter
(from the appropriate creation box) for generating the name.VISU_NAME_NONSTANDARD
: use only the configuration
parameters (From the appropiate creation box) which are different
from their standard values. If nothing is changed in the dialog by
the user the effect will be the same as VISU_NAME_NOTHING
,
if all values are changed the result will be equal to option
VIUS_NAME_ALL
VISU_NAME_NOTHING
: do not use any configuration
parameter information for the name of the visualisation
public boolean useDataMatrixName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |