|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.PersonalizeAttributes
public class PersonalizeAttributes
Provides access to the PersonalizeAttributes object, which allows access to the personalization features of ChartFX.
Many users require and demand information on an individual basis. Using personalized Chart
allows users to change visual attributes and have those settings saved locally. When the user accesses the chart in the future, the saved settings can be automatically loaded setAutoLoad(boolean)
so the users can view a chart configured to their personal preferences.
When using the personalized features for Chart FX, the users attribute changes must be saved locally on their computer. The setName(java.lang.String)
property allows you to create unique or uniform names for your charts so the personalized settings can be loaded or saved.
Constructor Summary | |
---|---|
PersonalizeAttributes()
|
Method Summary | |
---|---|
void |
dispose()
Releases the unmanaged resources used by the object. |
String |
getName()
Gets the Name. |
boolean |
isAutoLoad()
Gets the AutoLoad. |
boolean |
isAutoSave()
Gets the AutoSave. |
boolean |
isCanRestore()
Returns True if the original chart can be restored. |
boolean |
isEnabled()
Gets the Enabled. |
boolean |
isEnableRestore()
Gets the EnableRestore. |
boolean |
load()
Apply any previously saved personalizations to the chart. |
void |
restoreDefault()
Clears all the transformations made by the end-user and resets the chart to the default personalization settings. |
boolean |
save()
Saves the personalization settings configured for the chart. |
void |
setAsDefault()
Sets the current personalization to the default personalization. |
void |
setAutoLoad(boolean value)
Allows you to enable or disable the automatic loading of the chart personalization. |
void |
setAutoSave(boolean value)
Sets a value indicating to enable or disable the automatic saving of the chart attributes. |
void |
setEnabled(boolean value)
Allow you to enable the Personalize Attributes. |
void |
setEnableRestore(boolean value)
Allow you to enable the restoration of the chart. |
void |
setName(String value)
Allows you to set the personalization name of the chart. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersonalizeAttributes()
Method Detail |
---|
public void dispose()
Releases the unmanaged resources used by the object. If the object is disposed, the attributes will no longer be stored in memory.
This method is used to perform application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Please see your Java API documentation regarding use of the Dispose method.
public String getName()
Gets the Name. For more detail see setName(java.lang.String)
.
public boolean isAutoLoad()
Gets the AutoLoad. For more detail see setAutoLoad(boolean)
.
public boolean isAutoSave()
Gets the AutoSave. For more detail see setAutoSave(boolean)
.
public boolean isCanRestore()
Returns True if the original chart can be restored. By default, thid property returns False but it will return True as soon as the end-user modifies any attribute of the chart or a saved chart is loaded.
The setEnableRestore(boolean)
property allows you to enable restoration of the chart. When the user makes the first visual change to the chart through the UI, the original chart is saved in memory if EnableRestore is set to True.
The restoreDefault()
property clears all the transformations made by the end-user and resets the chart to the default personalization settings
The Chart.getPersonalize()
property returns the PersonalizeAttributes object of a chart, which the CanRestore member is available.
setEnableRestore(boolean)
,
isCanRestore()
,
Chart.getPersonalize()
,
restoreDefault()
,
Chart
public boolean isEnableRestore()
Gets the EnableRestore. For more detail see setEnableRestore(boolean)
.
public boolean isEnabled()
Gets the Enabled. For more detail see setEnabled(boolean)
.
public boolean load()
Apply any previously saved personalizations to the chart.
The load()
method returns False if there are no personalization settings saved.
The personalization can be saved using the Chart.exportChart(java.io.OutputStream)
method of the Chart
Class
. Chart.setFileContents(java.util.EnumSet
should be set to Template or BinaryTemplate to save only the personalization.
setAutoLoad(boolean)
,
Chart.setFileContents(java.util.EnumSet)
,
save()
,
Chart.exportChart(java.io.OutputStream)
public void restoreDefault()
Clears all the transformations made by the end-user and resets the chart to the default personalization settings.
The Chart.getPersonalize()
property returns the PersonalizeAttributes object of a chart, when the RestoreDefaults member is available.
The isCanRestore()
property returns True if the original chart can be restored. By default, this property returns False but it will return True as soon as the end-user modifies any attribute of the chart or a saved chart is loaded.
The setEnableRestore(boolean)
property allows you to enable restoration of the chart. When the user makes the first visual change to the chart through the UI, the original chart is saved in memory if EnableRestore is set to True.
isCanRestore()
,
setEnableRestore(boolean)
,
Chart.getPersonalize()
,
setAsDefault()
,
Chart
public boolean save()
Saves the personalization settings configured for the chart.
The personalization can be saved using the Chart.importChart(java.io.InputStream)
Chart.exportChart(java.io.OutputStream)
method of the Chart
Class
. Chart.setFileContents(java.util.EnumSet
should be set to Template or BinaryTemplate to only save the personalization.
setAutoSave(boolean)
,
load()
,
Chart.importChart(java.io.InputStream)
public void setAsDefault()
Sets the current personalization to the default personalization.
The supported members of the PersonalizeAttributes object allow you to customize the personalization features for the chart. setAutoLoad(boolean)
, setAutoSave(boolean)
, isCanRestore()
, setEnableRestore(boolean)
are all supported attributes. Using the setAsDefault()
property, developers can configure the current settings as the default settings for that chart.
The Chart.getPersonalize()
property returns the PersonalizeAttributes object of a chart.
Chart.getPersonalize()
,
setAutoLoad(boolean)
,
setAutoSave(boolean)
,
isCanRestore()
,
setEnableRestore(boolean)
,
restoreDefault()
,
Chart
public void setAutoLoad(boolean value)
Allows you to enable or disable the automatic loading of the chart personalization. When AutoLoad is set to True, the personalized features are automatically loaded when the chart is created.
When AutoLoad is set to True, Chart FX will look for a saved transformation file in the user's local Isolated Storage before the chart is rendered. If found, the settings will be applied to the chart. This functions as if the user selected the "Load My Chart" option in the Personalization toolbar options. By default this option is disabled.
The setAutoSave(boolean)
property gets or sets a value indicating to enable or disable the automatic saving of the chart attributes. When setAutoSave(boolean)
is set to True, the personalized features are automatically saved when the chart is destroyed.
The setEnableRestore(boolean)
property allows you to enable restoration of the chart. When the user makes the first visual change to the chart through the UI, the original chart is saved in memory if EnableRestore is set to True.
The isCanRestore()
property returns True if the original chart can be restored. By default, returns False but it will return True as soon as the end-user modifies any attribute of the chart or a saved chart is loaded.
The Chart.getPersonalize()
property returns the PersonalizeAttributes object of a chart.
setAutoSave(boolean)
,
setEnableRestore(boolean)
,
isCanRestore()
,
Chart.getPersonalize()
,
load()
,
Chart
public void setAutoSave(boolean value)
Sets a value indicating to enable or disable the automatic saving of the chart attributes. When AutoSave is set to True, the personalized features are automatically saved when the chart is destroyed.
Any transformations made to the chart will be automatically saved to the Isolated Storage when the chart is destroyed (the browser is refreshed or closed, or another page is invoked). By default this option is disabled.
The setAutoLoad(boolean)
property gets or sets a value indicating to enable or disable the automatic loading of the chart personalization. When setAutoLoad(boolean)
is set to True, the personalized features are automatically loaded when the chart is created.
The setEnableRestore(boolean)
property allows you to enable restoration of the chart. When the user makes the first visual change to the chart through the UI, the original chart is saved in memory if EnableRestore is set to True.
The isCanRestore()
property returns True if the original chart can be restored. By default, returns False but it will return True as soon as the end-user modifies any attribute of the chart or a saved chart is loaded.
The Chart.getPersonalize()
property returns the PersonalizeAttributes object of a chart.
setAutoLoad(boolean)
,
setEnableRestore(boolean)
,
isCanRestore()
,
Chart.getPersonalize()
,
save()
,
Chart
public void setEnableRestore(boolean value)
Allow you to enable the restoration of the chart. When the user makes the first visual change to the chart through the UI, the original chart is saved in memory when this property is set to True.
The isCanRestore()
property returns True if the original chart can be restored. By default, this property returns False but it will return True as soon as the end-user modifies any attribute of the chart or a saved chart is loaded.
The restoreDefault()
property clears all the transformations made by the end-user and resets the chart to the default personalization settings.
The Chart.getPersonalize()
property returns the PersonalizeAttributes object of a chart, which the CanRestore member is available.
isCanRestore()
,
Chart.getPersonalize()
,
restoreDefault()
,
Chart
public void setEnabled(boolean value)
Allow you to enable the Personalize Attributes.
The setAutoLoad(boolean)
property gets or sets a value indicating to enable or disable the automatic loading of the chart personalization. When setAutoLoad(boolean)
is set to True, the personalized features are automatically loaded when the chart is created.
The setAutoSave(boolean)
property gets or sets a value indicating to enable or disable the automatic saving of the chart attributes. When setAutoSave(boolean)
is set to True, the personalized features are automatically saved when the chart is destroyed.
The isCanRestore()
property returns True if the original chart can be restored. By default, returns False but it will return True as soon as the end-user modifies any attribute of the chart or a saved chart is loaded.
The setEnableRestore(boolean)
property allows you to enable restoration of the chart. When the user makes the first visual change to the chart through the UI, the original chart is saved in memory if EnableRestore is set to True.Chart.getPersonalize()
The Chart.getPersonalize()
property returns the PersonalizeAttributes object of a chart.
public void setName(String value)
Allows you to set the personalization name of the chart.
When using the personalized features for Chart FX, the users attribute changes must be saved locally on their computer. The Name property allows you to create unique or uniform names for your charts so the personalized settings can be load()
or save()
.
load()
,
save()
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |