- java.lang.Object
-
- bdv.tools.brightness.SetupAssignments
-
@Deprecated public class SetupAssignments extends Object
Deprecated.Manage a (fixed) set ofConverterSetups and (changing) set ofMinMaxGroups, such that the following is always true:- Every setup is assigned to exactly one group.
- No group is empty.
- Author:
- Tobias Pietzsch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSetupAssignments.UpdateListenerDeprecated.
-
Constructor Summary
Constructors Constructor Description SetupAssignments(ArrayList<ConverterSetup> converterSetups, double defaultRangeMin, double defaultRangeMax)Deprecated.SetupAssignments(ArrayList<ConverterSetup> converterSetups, double fullRangeMin, double fullRangeMax, double defaultRangeMin, double defaultRangeMax)Deprecated.SetupAssignments(List<ConverterSetup> converterSetups, double defaultRangeMin, double defaultRangeMax)Deprecated.SetupAssignments(List<ConverterSetup> converterSetups, double fullRangeMin, double fullRangeMax, double defaultRangeMin, double defaultRangeMax)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddSetup(ConverterSetup setup)Deprecated.Add the setup in a new group.List<ConverterSetup>getConverterSetups()Deprecated.MinMaxGroupgetMinMaxGroup(ConverterSetup setup)Deprecated.List<MinMaxGroup>getMinMaxGroups()Deprecated.static intgetUnusedSetupId(SetupAssignments setupAssignments)Deprecated.Get asetup idthat is not used in the specifiedsetupAssignments.voidmoveSetupToGroup(ConverterSetup setup, MinMaxGroup group)Deprecated.Add the specified setup to the specified group.voidremoveSetup(ConverterSetup setup)Deprecated.booleanremoveSetupFromGroup(ConverterSetup setup, MinMaxGroup group)Deprecated.Remove the specified setup from the specified group.voidrestoreFromXml(org.jdom2.Element parent)Deprecated.Restore the state of thisSetupAssignmentsfrom XML.voidsetUpdateListener(SetupAssignments.UpdateListener l)Deprecated.org.jdom2.ElementtoXml()Deprecated.Serialize the state of thisSetupAssignmentsto XML.
-
-
-
Constructor Detail
-
SetupAssignments
public SetupAssignments(ArrayList<ConverterSetup> converterSetups, double defaultRangeMin, double defaultRangeMax)
Deprecated.
-
SetupAssignments
public SetupAssignments(ArrayList<ConverterSetup> converterSetups, double fullRangeMin, double fullRangeMax, double defaultRangeMin, double defaultRangeMax)
Deprecated.
-
SetupAssignments
public SetupAssignments(List<ConverterSetup> converterSetups, double defaultRangeMin, double defaultRangeMax)
Deprecated.
-
SetupAssignments
public SetupAssignments(List<ConverterSetup> converterSetups, double fullRangeMin, double fullRangeMax, double defaultRangeMin, double defaultRangeMax)
Deprecated.- Parameters:
converterSetups-fullRangeMin-fullRangeMax-defaultRangeMin-defaultRangeMax-
-
-
Method Detail
-
moveSetupToGroup
public void moveSetupToGroup(ConverterSetup setup, MinMaxGroup group)
Deprecated.Add the specified setup to the specified group. The setup is removed from its previous group. If this previous group is made empty by this, it is removed from the list of groups.
-
removeSetupFromGroup
public boolean removeSetupFromGroup(ConverterSetup setup, MinMaxGroup group)
Deprecated.Remove the specified setup from the specified group. If this group would be made empty by this, it is not removed from the group. Otherwise, after being removed, a new group is created containing only the specified setup, and this new group is added to the list of group. The settings of the new group are initialized with the settings of the old group.- Returns:
- Whether or not removal was successful (so the corresponding checkbox can be re-checked)
-
setUpdateListener
public void setUpdateListener(SetupAssignments.UpdateListener l)
Deprecated.
-
getMinMaxGroups
public List<MinMaxGroup> getMinMaxGroups()
Deprecated.- Returns:
- the list of
MinMaxGroups, such that everysetupis contained in exactly one group.
-
getConverterSetups
public List<ConverterSetup> getConverterSetups()
Deprecated.- Returns:
- a list of all
ConverterSetups.
-
getMinMaxGroup
public MinMaxGroup getMinMaxGroup(ConverterSetup setup)
Deprecated.- Returns:
- the
MinMaxGroupthat containssetup, currently.
-
addSetup
public void addSetup(ConverterSetup setup)
Deprecated.Add the setup in a new group.- Parameters:
setup-
-
removeSetup
public void removeSetup(ConverterSetup setup)
Deprecated.
-
toXml
public org.jdom2.Element toXml()
Deprecated.Serialize the state of thisSetupAssignmentsto XML.
-
restoreFromXml
public void restoreFromXml(org.jdom2.Element parent)
Deprecated.Restore the state of thisSetupAssignmentsfrom XML. Note, that this only restores the assignments of setups to groups and group settings. The list ofConverterSetups is not restored.
-
getUnusedSetupId
public static int getUnusedSetupId(SetupAssignments setupAssignments)
Deprecated.Get asetup idthat is not used in the specifiedsetupAssignments.- Parameters:
setupAssignments- theSetupAssignmentsfor which to find an unused id. May benull, in which case a new id is returned that was not used in any previous call togetUnusedSetupId(null).- Returns:
- a unused setup id
-
-