@Deprecated public class SetupAssignments extends Object
ConverterSetups and (changing) set of
MinMaxGroups, such that the following is always true:
| Modifier and Type | Class and Description |
|---|---|
static interface |
SetupAssignments.UpdateListener
Deprecated.
|
| Constructor and Description |
|---|
SetupAssignments(ArrayList<ConverterSetup> converterSetups,
double defaultRangeMin,
double defaultRangeMax)
Deprecated.
|
SetupAssignments(ArrayList<ConverterSetup> converterSetups,
double fullRangeMin,
double fullRangeMax,
double defaultRangeMin,
double defaultRangeMax)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSetup(ConverterSetup setup)
Deprecated.
Add the setup in a new group.
|
List<ConverterSetup> |
getConverterSetups()
Deprecated.
|
MinMaxGroup |
getMinMaxGroup(ConverterSetup setup)
Deprecated.
|
List<MinMaxGroup> |
getMinMaxGroups()
Deprecated.
|
static int |
getUnusedSetupId(SetupAssignments setupAssignments)
Deprecated.
Get a
setup id that is not used in
the specified setupAssignments. |
void |
moveSetupToGroup(ConverterSetup setup,
MinMaxGroup group)
Deprecated.
Add the specified setup to the specified group.
|
void |
removeSetup(ConverterSetup setup)
Deprecated.
|
boolean |
removeSetupFromGroup(ConverterSetup setup,
MinMaxGroup group)
Deprecated.
Remove the specified setup from the specified group.
|
void |
restoreFromXml(org.jdom2.Element parent)
Deprecated.
Restore the state of this
SetupAssignments from XML. |
void |
setUpdateListener(SetupAssignments.UpdateListener l)
Deprecated.
|
org.jdom2.Element |
toXml()
Deprecated.
Serialize the state of this
SetupAssignments to XML. |
public SetupAssignments(ArrayList<ConverterSetup> converterSetups, double defaultRangeMin, double defaultRangeMax)
public SetupAssignments(ArrayList<ConverterSetup> converterSetups, double fullRangeMin, double fullRangeMax, double defaultRangeMin, double defaultRangeMax)
converterSetups - fullRangeMin - fullRangeMax - defaultRangeMin - defaultRangeMax - public void moveSetupToGroup(ConverterSetup setup, MinMaxGroup group)
public boolean removeSetupFromGroup(ConverterSetup setup, MinMaxGroup group)
public void setUpdateListener(SetupAssignments.UpdateListener l)
public List<MinMaxGroup> getMinMaxGroups()
MinMaxGroups, such that every setup is contained in exactly one group.public List<ConverterSetup> getConverterSetups()
ConverterSetups.public MinMaxGroup getMinMaxGroup(ConverterSetup setup)
MinMaxGroup that contains setup, currently.public void addSetup(ConverterSetup setup)
setup - public void removeSetup(ConverterSetup setup)
public org.jdom2.Element toXml()
SetupAssignments to XML.public void restoreFromXml(org.jdom2.Element parent)
SetupAssignments from XML. Note, that
this only restores the assignments of setups to groups and group
settings. The list of ConverterSetups is not restored.public static int getUnusedSetupId(SetupAssignments setupAssignments)
setup id that is not used in
the specified setupAssignments.setupAssignments - the SetupAssignments for which to find an unused id.
May be null, in which case a new id is returned that
was not used in any previous call to
getUnusedSetupId(null).Copyright © 2015–2021 Fiji. All rights reserved.