|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxdat.UserPreferences
public class UserPreferences
This class stores all user preference settings. When the user makes changes to settings such as default background color of charts or delimiting characters for data imports these settings are stored using the java Preferences API.
Field Summary | |
---|---|
static int |
IMPORT_FROM_HOMEDIR
Open file import browse dialog in the user's home directory by default. |
static int |
IMPORT_FROM_LASTDIR
Open file import browse dialog in the last opened directory by default. |
static int |
IMPORT_FROM_USERDIR
Open file import browse dialog in a userspecified directory by default. |
static int |
LOCALE_DE
German Locale for number formatting. |
static int |
LOCALE_US
US Locale for number formatting. |
Constructor Summary | |
---|---|
UserPreferences(java.lang.String versionString)
Instantiates a new user preferences object. |
Method Summary | |
---|---|
java.lang.String |
getCurrentDir()
Gets the directory for the file browsing dialog. |
java.lang.String |
getDelimiter()
Gets the delimiter for importing data. |
int |
getDirToImportFrom()
Gets the dir to import from. |
java.lang.String |
getHomeDir()
Gets the user home directory. |
java.lang.String |
getLastFile()
Gets the last file. |
java.util.Locale |
getLocale()
Returns the number format locale to be used for parsing data. |
java.lang.String |
getOtherDelimiter()
Gets the character that is used as delimiter when importing data. |
java.awt.Color |
getParallelCoordinatesActiveDesignDefaultColor()
Gets the active design default color for parallel coordinate charts. |
java.awt.Color |
getParallelCoordinatesAxisColor()
Gets the axis color for parallel coordinate charts |
double |
getParallelCoordinatesAxisDefaultMax()
Gets the axis default maximum value for parallel coordinate charts. |
double |
getParallelCoordinatesAxisDefaultMin()
Gets the axis default minimum value for parallel coordinate charts . |
java.awt.Color |
getParallelCoordinatesAxisLabelFontColor()
Gets the axis label font color for parallel coordinate charts. |
int |
getParallelCoordinatesAxisLabelFontSize()
Gets the axis label font size for parallel coordinate charts. |
int |
getParallelCoordinatesAxisTicCount()
Gets the axis tick count for parallel coordinate charts. |
java.awt.Color |
getParallelCoordinatesAxisTicLabelFontColor()
Gets the axis tick label font color for parallel coordinate charts. |
int |
getParallelCoordinatesAxisTicLabelFontSize()
Gets the axis tick label font size for parallel coordinate charts. |
java.lang.String |
getParallelCoordinatesAxisTicLabelFormat()
Gets the axis tick label format for parallel coordinate charts. |
int |
getParallelCoordinatesAxisTicLength()
Gets the axis tick length for parallel coordinate charts. |
int |
getParallelCoordinatesAxisWidth()
Gets the width in pixels that is used by one axis on parallel coordinate charts. |
java.awt.Color |
getParallelCoordinatesDefaultBackgroundColor()
Gets the default background color for parallel coordinate charts. |
int |
getParallelCoordinatesDesignIDFontSize()
Gets the design id font size for parallel coordinate charts . |
int |
getParallelCoordinatesDesignLabelFontSize()
Gets the design label font size for parallel coordinate charts. |
java.awt.Color |
getParallelCoordinatesFilterDefaultColor()
Gets the filter default color for parallel coordinate charts. |
java.awt.Color |
getParallelCoordinatesFilteredDesignDefaultColor()
Gets the filtered design default color for parallel coordinate charts. |
int |
getParallelCoordinatesFilterHeight()
Gets the filter height for parallel coordinate charts. |
int |
getParallelCoordinatesFilterWidth()
Gets the width of one half triangle that represents a filter in pixels. |
int |
getParallelCoordinatesLineThickness()
Gets the line thickness for parallel coordinate charts. |
java.awt.Color |
getScatterChart2DActiveDesignColor()
Gets the active design color for 2D scatter charts. |
int |
getScatterChart2DAxisTitleFontsizeX()
Gets the x axis title font size for 2D Scatter Charts. |
int |
getScatterChart2DAxisTitleFontsizeY()
Gets the y axis title font size for 2D Scatter Charts. |
java.awt.Color |
getScatterChart2DBackgroundColor()
Gets the background color for 2D scatter charts. |
int |
getScatterChart2DDataPointSize()
Gets the data point size for 2D Scatter Charts. |
int |
getScatterChart2DDisplayMode()
Gets the display mode for 2D Scatter Charts. |
java.awt.Color |
getScatterChart2DForegroundColor()
Gets the foreground color for 2D scatter charts. |
java.awt.Color |
getScatterChart2DSelectedDesignColor()
Gets the selected design color for 2D scatter charts. |
int |
getScatterChart2DTicCountX()
Gets the tic count for the x axis of 2D Scatter Charts. |
int |
getScatterChart2DTicCountY()
Gets the tic count for the y axis of 2D Scatter Charts. |
int |
getScatterChart2DTicLabelFontsizeX()
Gets the tic label font size for the x axis of 2D Scatter Charts. |
int |
getScatterChart2DTicLabelFontsizeY()
Gets the tic label font size for the y axis of 2D Scatter Charts. |
java.lang.String |
getUserDir()
Gets the user directory. |
boolean |
isFilterInverted()
True, when filters are inverted. |
boolean |
isLastFileInitialised()
Checks if the last file field has been initialised. |
boolean |
isLicenseAccepted()
Returns true, when the user has accepted the license |
boolean |
isParallelCoordinatesAutoFitAxis()
Checks if axes are autofitted on parallel coordinate charts . |
boolean |
isParallelCoordinatesAxisInverted()
Checks whether axes are inverted on parallel coordinate charts . |
boolean |
isParallelCoordinatesShowDesignIDs()
Checks if design id numbers are shown left to the left-most axis on parallel coordinate charts . |
boolean |
isParallelCoordinatesShowFilteredDesigns()
Checks if filtered designs should be shown on parallel coordinate charts . |
boolean |
isParallelCoordinatesVerticallyOffsetAxisLabels()
Checks if axis labels on parallel coordinate charts should be vertically offset. |
boolean |
isScatterChart2DAutofitX()
Checks if the x-axis should be autofitted on 2D Scatter Charts. |
boolean |
isScatterChart2DAutofitY()
Checks if the y-axis should be autofitted on 2D Scatter Charts. |
boolean |
isTreatConsecutiveAsOne()
Checks if consecutive delimiters should be treated as one. |
void |
resetToDefault()
Restores all default settings. |
void |
setDelimiter(java.lang.String delimiter)
Sets the delimiter for importing data. |
void |
setDirToImportFrom(int dirToImportFrom)
Sets the dir to import from. |
void |
setFilterInverted(boolean filterInverted)
Specifies whether filters inverted on parallel coordinate charts . |
void |
setHomeDir(java.lang.String homeDir)
Sets the home directory. |
void |
setLastFile(java.lang.String lastFileBrowsingDirectory)
Sets the last file. |
void |
setLicenseAccepted(boolean licenseAccepted)
Specifies whether the user has accepted the license. |
void |
setLocale(int locale)
Sets the number format string to be used for both parsing data. |
void |
setOtherDelimiter(java.lang.String otherDelimiter)
Sets the user-defined delimiter. |
void |
setParallelCoordinatesActiveDesignDefaultColor(java.awt.Color activeDesignDefaultColor)
Sets the active design default color for parallel coordinate charts. |
void |
setParallelCoordinatesAutoFitAxis(boolean autoFitAxis)
Specifies whether axes should be autofitted on parallel coordinate charts. |
void |
setParallelCoordinatesAxisColor(java.awt.Color axisColor)
Sets the axis color for parallel coordinate charts. |
void |
setParallelCoordinatesAxisDefaultMax(double axisDefaultMax)
Sets the axis default max for parallel coordinate charts. |
void |
setParallelCoordinatesAxisDefaultMin(double axisDefaultMin)
Sets the axis default minimum value for parallel coordinate charts. |
void |
setParallelCoordinatesAxisInverted(boolean axisInverted)
Specifies whether axes are inverted on parallel coordinate charts . |
void |
setParallelCoordinatesAxisLabelFontColor(java.awt.Color axisLabelFontColor)
Sets the axis label font color for parallel coordinate charts. |
void |
setParallelCoordinatesAxisLabelFontSize(int axisLabelFontSize)
Sets the axis label font size for parallel coordinate charts. |
void |
setParallelCoordinatesAxisTicCount(int axisTicCount)
Sets the axis tick count for parallel coordinate charts. |
void |
setParallelCoordinatesAxisTicLabelFontColor(java.awt.Color axisTicLabelFontColor)
Sets the axis tick label font color for parallel coordinate charts. |
void |
setParallelCoordinatesAxisTicLabelFontSize(int ticLabelFontSize)
Sets the axis tick label font size for parallel coordinate charts. |
void |
setParallelCoordinatesAxisTicLabelFormat(java.lang.String axisTicLabelFormat)
Sets the axis tick label format for parallel coordinate charts. |
void |
setParallelCoordinatesAxisTicLength(int axisTicLength)
Sets the axis tick length for parallel coordinate charts. |
void |
setParallelCoordinatesAxisWidth(int axisWidth)
Sets the axis width for parallel coordinate charts. |
void |
setParallelCoordinatesDefaultBackgroundColor(java.awt.Color backgroundColor)
Sets the default background color for parallel coordinate charts. |
void |
setParallelCoordinatesDesignIDFontSize(int designIDFontSize)
Sets the design id font size for parallel coordinate charts. |
void |
setParallelCoordinatesDesignLabelFontSize(int designLabelFontSize)
Sets the design label font size for parallel coordinate charts. |
void |
setParallelCoordinatesFilterColor(java.awt.Color filterColor)
Sets the filter color for parallel coordinate charts. |
void |
setParallelCoordinatesFilterHeight(int filterHeight)
Sets the filter height for parallel coordinate charts. |
void |
setParallelCoordinatesFilterWidth(int filterWidth)
Sets the filter width for parallel coordinate charts. |
void |
setParallelCoordinatesInactiveDesignDefaultColor(java.awt.Color inActiveDesignDefaultColor)
Sets the in active design default color for parallel coordinate charts. |
void |
setParallelCoordinatesLineThickness(int lineThickness)
Sets the line thickness for parallel coordinate charts. |
void |
setParallelCoordinatesShowDesignIDs(boolean showDesignIDs)
Specifies whether design id numbers are shown left to the left-most axis on parallel coordinate charts . |
void |
setParallelCoordinatesShowFilteredDesigns(boolean showFilteredDesigns)
Sets whether filtered designs should be shown on parallel coordinate charts . |
void |
setParallelCoordinatesVerticallyOffsetAxisLabels(boolean verticallyOffsetAxisLabels)
Sets whether axis labels on parallel coordinate charts should be vertically offset. |
void |
setScatterChart2DActiveDesignColor(java.awt.Color scatterChart2DActiveDesignColor)
Sets the active design color for 2D scatter charts. |
void |
setScatterChart2DAutofitX(boolean scatterChart2DAutofitX)
Sets whether the x-axis should be autofitted on 2D Scatter Charts |
void |
setScatterChart2DAutofitY(boolean scatterChart2DAutofitY)
Sets whether the y-axis should be autofitted on 2D Scatter Charts |
void |
setScatterChart2DAxisTitleFontsizeX(int scatterChart2DAxisTitleFontsizeX)
Sets the x axis title font size for 2D Scatter Charts. |
void |
setScatterChart2DAxisTitleFontsizeY(int scatterChart2DAxisTitleFontsizeY)
Sets the y axis title font size for 2D Scatter Charts. |
void |
setScatterChart2DBackgroundColor(java.awt.Color scatterChart2DBackgroundColor)
Sets the background color for 2D scatter charts. |
void |
setScatterChart2DDataPointSize(int scatterChart2DDataPointSize)
Sets the data point size for 2D Scatter Charts. |
void |
setScatterChart2DDisplayMode(int ScatterChart2DDisplayMode)
Sets the display mode for 2D Scatter Charts. |
void |
setScatterChart2DForegroundColor(java.awt.Color scatterChart2DForegroundColor)
Sets the foreground color for 2D scatter charts. |
void |
setScatterChart2DSelectedDesignColor(java.awt.Color scatterChart2DSelectedDesignColor)
Sets the selected design color for 2D scatter charts. |
void |
setScatterChart2DTicCountX(int scatterChart2DTicCountX)
Sets the tic count for the x axis of 2D Scatter Charts. |
void |
setScatterChart2DTicCountY(int scatterChart2DTicCountY)
Sets the tic count for the y axis of 2D Scatter Charts. |
void |
setScatterChart2DTicLabelFontsizeX(int scatterChart2DTicLabelFontsizeX)
Sets the tic label font size for the x axis of 2D Scatter Charts. |
void |
setScatterChart2DTicLabelFontsizeY(int scatterChart2DTicLabelFontsizeY)
Sets the tic label font size for the y axis of 2D Scatter Charts. |
void |
setTreatConsecutiveAsOne(boolean treatConsecutiveAsOne)
Sets whether consecutive delimiters should be treated as one. |
void |
setUserDir(java.lang.String userDir)
Sets the user directory. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int IMPORT_FROM_HOMEDIR
public static final int IMPORT_FROM_LASTDIR
public static final int IMPORT_FROM_USERDIR
public static final int LOCALE_US
public static final int LOCALE_DE
Constructor Detail |
---|
public UserPreferences(java.lang.String versionString)
Method Detail |
---|
public boolean isLicenseAccepted()
public void setLicenseAccepted(boolean licenseAccepted)
licenseAccepted
- the flag that specifies whether the user has accepted the licensepublic int getScatterChart2DDisplayMode()
public void setScatterChart2DDisplayMode(int ScatterChart2DDisplayMode)
ScatterChart2DDisplayMode
- the new display modepublic boolean isScatterChart2DAutofitX()
public void setScatterChart2DAutofitX(boolean scatterChart2DAutofitX)
scatterChart2DAutofitX
- flag whether the x-axis should be autofitted on 2D Scatter Charts.public boolean isScatterChart2DAutofitY()
public void setScatterChart2DAutofitY(boolean scatterChart2DAutofitY)
scatterChart2DAutofitY
- flag whether the y-axis should be autofitted on 2D Scatter Charts.public int getScatterChart2DAxisTitleFontsizeX()
public void setScatterChart2DAxisTitleFontsizeX(int scatterChart2DAxisTitleFontsizeX)
scatterChart2DAxisTitleFontsizeX
- the new x axis title font size for 2D Scatter Charts.public int getScatterChart2DAxisTitleFontsizeY()
public void setScatterChart2DAxisTitleFontsizeY(int scatterChart2DAxisTitleFontsizeY)
scatterChart2DAxisTitleFontsizeY
- the new y axis title font size for 2D Scatter Charts.public int getScatterChart2DTicCountX()
public void setScatterChart2DTicCountX(int scatterChart2DTicCountX)
scatterChart2DTicCountX
- the new tic count for the x axis of 2D Scatter Charts.public int getScatterChart2DTicCountY()
public void setScatterChart2DTicCountY(int scatterChart2DTicCountY)
scatterChart2DTicCountY
- the new tic count for the y axis of 2D Scatter Charts.public int getScatterChart2DTicLabelFontsizeX()
public void setScatterChart2DTicLabelFontsizeX(int scatterChart2DTicLabelFontsizeX)
scatterChart2DTicLabelFontsizeX
- the new tic label font size for the x axis of 2D Scatter Charts.public int getScatterChart2DTicLabelFontsizeY()
public void setScatterChart2DTicLabelFontsizeY(int scatterChart2DTicLabelFontsizeY)
scatterChart2DTicLabelFontsizeY
- the new tic label font size for the y axis of 2D Scatter Charts.public int getScatterChart2DDataPointSize()
public void setScatterChart2DDataPointSize(int scatterChart2DDataPointSize)
scatterChart2DDataPointSize
- the new data point size for 2D Scatter Charts.public java.awt.Color getScatterChart2DForegroundColor()
public void setScatterChart2DForegroundColor(java.awt.Color scatterChart2DForegroundColor)
scatterChart2DForegroundColor
- the new foreground color for 2D scatter charts.public java.awt.Color getScatterChart2DBackgroundColor()
public void setScatterChart2DBackgroundColor(java.awt.Color scatterChart2DBackgroundColor)
scatterChart2DBackgroundColor
- the new background color for 2D scatter charts.public java.awt.Color getScatterChart2DActiveDesignColor()
public void setScatterChart2DActiveDesignColor(java.awt.Color scatterChart2DActiveDesignColor)
scatterChart2DActiveDesignColor
- the new active design color for 2D scatter charts.public java.awt.Color getScatterChart2DSelectedDesignColor()
public void setScatterChart2DSelectedDesignColor(java.awt.Color scatterChart2DSelectedDesignColor)
scatterChart2DSelectedDesignColor
- the new selected design color for 2D scatter charts.public java.awt.Color getParallelCoordinatesAxisColor()
public void setParallelCoordinatesAxisColor(java.awt.Color axisColor)
axisColor
- the new axis colorpublic boolean isParallelCoordinatesVerticallyOffsetAxisLabels()
public void setParallelCoordinatesVerticallyOffsetAxisLabels(boolean verticallyOffsetAxisLabels)
verticallyOffsetAxisLabels
- flag whether axis labels should be vertically offsetpublic java.awt.Color getParallelCoordinatesAxisLabelFontColor()
public void setParallelCoordinatesAxisLabelFontColor(java.awt.Color axisLabelFontColor)
axisLabelFontColor
- the new axis label font colorpublic int getParallelCoordinatesAxisLabelFontSize()
public void setParallelCoordinatesAxisLabelFontSize(int axisLabelFontSize)
axisLabelFontSize
- the new axis label font sizepublic int getParallelCoordinatesAxisTicCount()
public void setParallelCoordinatesAxisTicCount(int axisTicCount)
axisTicCount
- the new axis tick countpublic java.awt.Color getParallelCoordinatesAxisTicLabelFontColor()
public void setParallelCoordinatesAxisTicLabelFontColor(java.awt.Color axisTicLabelFontColor)
axisTicLabelFontColor
- the new axis tick label font colorpublic java.lang.String getParallelCoordinatesAxisTicLabelFormat()
public void setParallelCoordinatesAxisTicLabelFormat(java.lang.String axisTicLabelFormat)
axisTicLabelFormat
- the new axis tick label formatpublic int getParallelCoordinatesAxisTicLength()
public void setParallelCoordinatesAxisTicLength(int axisTicLength)
axisTicLength
- the new axis tick lengthpublic int getParallelCoordinatesAxisWidth()
public void setParallelCoordinatesAxisWidth(int axisWidth)
axisWidth
- the new axis widthpublic java.awt.Color getParallelCoordinatesFilterDefaultColor()
public void setParallelCoordinatesFilterColor(java.awt.Color filterColor)
filterColor
- the new filter colorpublic int getParallelCoordinatesFilterHeight()
public void setParallelCoordinatesFilterHeight(int filterHeight)
filterHeight
- the new filter heightpublic int getParallelCoordinatesFilterWidth()
public void setParallelCoordinatesFilterWidth(int filterWidth)
filterWidth
- the new filter widthpublic int getParallelCoordinatesAxisTicLabelFontSize()
public void setParallelCoordinatesAxisTicLabelFontSize(int ticLabelFontSize)
ticLabelFontSize
- the new axis tick label font sizepublic int getParallelCoordinatesDesignLabelFontSize()
public void setParallelCoordinatesDesignLabelFontSize(int designLabelFontSize)
designLabelFontSize
- the new design label font sizepublic int getParallelCoordinatesLineThickness()
public void setParallelCoordinatesLineThickness(int lineThickness)
lineThickness
- the new line thicknesspublic boolean isParallelCoordinatesShowFilteredDesigns()
public void setParallelCoordinatesShowFilteredDesigns(boolean showFilteredDesigns)
showFilteredDesigns
- flag to set whether filtered designs should be shown.public java.awt.Color getParallelCoordinatesActiveDesignDefaultColor()
public void setParallelCoordinatesActiveDesignDefaultColor(java.awt.Color activeDesignDefaultColor)
activeDesignDefaultColor
- the new active design default colorpublic java.awt.Color getParallelCoordinatesFilteredDesignDefaultColor()
public void setParallelCoordinatesInactiveDesignDefaultColor(java.awt.Color inActiveDesignDefaultColor)
inActiveDesignDefaultColor
- the new in active design default colorpublic boolean isParallelCoordinatesShowDesignIDs()
public void setParallelCoordinatesShowDesignIDs(boolean showDesignIDs)
showDesignIDs
- specifies whether design id numbers are shown left to the left-most axis.public int getParallelCoordinatesDesignIDFontSize()
public void setParallelCoordinatesDesignIDFontSize(int designIDFontSize)
designIDFontSize
- the new design id font sizepublic java.awt.Color getParallelCoordinatesDefaultBackgroundColor()
public void setParallelCoordinatesDefaultBackgroundColor(java.awt.Color backgroundColor)
backgroundColor
- the new default background colorpublic boolean isFilterInverted()
public void setFilterInverted(boolean filterInverted)
filterInverted
- Specifies whether filters inverted.public boolean isParallelCoordinatesAxisInverted()
public void setParallelCoordinatesAxisInverted(boolean axisInverted)
axisInverted
- Specifies whether axes are inverted.public boolean isParallelCoordinatesAutoFitAxis()
public void setParallelCoordinatesAutoFitAxis(boolean autoFitAxis)
autoFitAxis
- Specifies whether axes should be autofitted.public double getParallelCoordinatesAxisDefaultMin()
public void setParallelCoordinatesAxisDefaultMin(double axisDefaultMin)
axisDefaultMin
- the new axis default minimum valuepublic double getParallelCoordinatesAxisDefaultMax()
public void setParallelCoordinatesAxisDefaultMax(double axisDefaultMax)
axisDefaultMax
- the new axis default maxpublic int getDirToImportFrom()
public void setDirToImportFrom(int dirToImportFrom)
dirToImportFrom
- the new dir to import frompublic java.lang.String getLastFile()
public void setLastFile(java.lang.String lastFileBrowsingDirectory)
lastFileBrowsingDirectory
- the new last filepublic boolean isLastFileInitialised()
public java.lang.String getHomeDir()
public void setHomeDir(java.lang.String homeDir)
homeDir
- the new home directorypublic java.lang.String getUserDir()
public void setUserDir(java.lang.String userDir)
userDir
- the new user directorypublic java.lang.String getCurrentDir()
public java.lang.String getDelimiter()
public void setDelimiter(java.lang.String delimiter)
delimiter
- the new delimiterpublic boolean isTreatConsecutiveAsOne()
public void setTreatConsecutiveAsOne(boolean treatConsecutiveAsOne)
treatConsecutiveAsOne
- flag for treating consecutive delimiters as onepublic java.lang.String getOtherDelimiter()
public void setOtherDelimiter(java.lang.String otherDelimiter)
otherDelimiter
- the user-defined delimiterpublic java.util.Locale getLocale()
public void setLocale(int locale)
locale
- the Number Format localepublic void resetToDefault()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |