|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.helsinki.dacopan.settings.GeneralSettings
public class GeneralSettings
Class containing general settings for the animation.
The settings stored in this class are basically related to the performance of the animation. These settings are the only ones that are common to all the layers shown in the different animations.
Apart from these performance setting, this class has a list that stores the settings specific to layer containing values to configure scale, speed, selected variables and fields to show in the animations...
Field Summary | |
---|---|
protected boolean |
antiAliasing
true if the antialiasing option is selected |
static int |
DEFAULT_REFRESH_DELAY
|
protected Layer |
defaultLayer
|
static int |
MAX_REFRESH_DELAY
|
static int |
MAX_REFRESH_RATE
|
static int |
MIN_REFRESH_DELAY
|
static int |
MIN_REFRESH_RATE
|
protected int |
refreshDelay
number of miliseconds between two updates of the animation. |
protected java.util.List |
settingsLayersMSC
List containing the settings specific to layer (SettingsMSC) |
protected SettingsTSC |
settingsTSC
Settings for the Time Sequence Chart |
Constructor Summary | |
---|---|
GeneralSettings()
constructor that assign to the attributes default values |
|
GeneralSettings(GeneralSettings generalSettings)
creates a new copy instance of GeneralSettings |
Method Summary | |
---|---|
boolean |
addSettingsMSC(SettingsMSC newSettings)
Adds or replaces a SettingsMSC object in the settingsLayersMSC list. |
void |
clearSettingsMSC()
Clears the SettingsMSC objects. |
boolean |
getAntiAliasing()
Returns the anti-aliasing setting |
java.lang.Object |
getData()
Returns the data that should be saved in the scenario file. |
Layer |
getDefaultLayer()
Gets the default layer for the MSC animation |
java.util.List |
getListSettingsMSC()
Return the list of settings per layer |
int |
getRefreshDelay()
returns the number of miliseconds between two updates in the animation panels high values imply slower animation |
int |
getRefreshRate()
returns the number of times the animation panel is updated in a second |
SettingsMSC |
getSettingsMSC(Layer layer)
returns the settings for the MSC animation in a provided layer. |
SettingsTSC |
getSettingsTSC()
|
void |
setAntiAliasing(boolean antiAliasing)
Sets the anti-aliasing setting |
void |
setData(java.lang.Object o)
Sets the data loaded from the scenario file. |
void |
setDefaultLayer(Layer layer)
Sets the default layer for the MSC animation |
void |
setRefreshDelay(int refreshDelay)
sets the number of miliseconds between two updates in the animation panels high values imply slower animation |
void |
setSettingsMSC(java.util.List listSettingsMSC)
Sets the list of SettingsMSC objects. |
void |
setSettingsTSC(SettingsTSC settingsTSC)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_REFRESH_DELAY
public static final int MIN_REFRESH_DELAY
public static final int MAX_REFRESH_DELAY
public static final int MIN_REFRESH_RATE
public static final int MAX_REFRESH_RATE
protected int refreshDelay
protected java.util.List settingsLayersMSC
protected Layer defaultLayer
protected SettingsTSC settingsTSC
protected boolean antiAliasing
Constructor Detail |
---|
public GeneralSettings()
public GeneralSettings(GeneralSettings generalSettings)
Method Detail |
---|
public int getRefreshDelay()
public void setRefreshDelay(int refreshDelay)
refreshDelay
- number of miliseconds between two updates in the animationpublic int getRefreshRate()
public void setDefaultLayer(Layer layer)
layer
- Layer to set as defaultpublic Layer getDefaultLayer()
public boolean addSettingsMSC(SettingsMSC newSettings)
If the default layer for this GeneralSettings object is null, it will be set to newSettings.
newSettings
- SettingsMSC instance to add to the list of layer settings
public void setSettingsMSC(java.util.List listSettingsMSC)
listSettingsMSC
- public void clearSettingsMSC()
public SettingsMSC getSettingsMSC(Layer layer)
layer
- Layer to get the settings from
public java.util.List getListSettingsMSC()
public boolean getAntiAliasing()
public void setAntiAliasing(boolean antiAliasing)
antiAliasing
- booleanpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getData()
Saveable
getData
in interface Saveable
public void setData(java.lang.Object o)
Saveable
setData
in interface Saveable
o
- loaded objectpublic SettingsTSC getSettingsTSC()
public void setSettingsTSC(SettingsTSC settingsTSC)
settingsTSC
- The settingsTSC to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |