Skip to content
Snippets Groups Projects
Unverified Commit 7edc767c authored by Tobias Pietzsch's avatar Tobias Pietzsch Committed by GitHub
Browse files

Merge pull request #50 from bogovicj/setupAssignmentRange

make SetupAssignments fullRange very flexible by default
parents 7de74547 0db44d44
No related branches found
No related tags found
No related merge requests found
......@@ -86,9 +86,9 @@ public class SetupAssignments
private UpdateListener updateListener;
public SetupAssignments( final ArrayList< ConverterSetup > converterSetups, final double fullRangeMin, final double fullRangeMax )
public SetupAssignments( final ArrayList< ConverterSetup > converterSetups, final double defaultRangeMin, final double defaultRangeMax )
{
this( converterSetups, fullRangeMin, fullRangeMax, fullRangeMin, fullRangeMax );
this( converterSetups, Integer.MIN_VALUE, Integer.MAX_VALUE, defaultRangeMin, defaultRangeMax );
}
/**
......@@ -211,7 +211,7 @@ public class SetupAssignments
*/
public void addSetup( final ConverterSetup setup )
{
final MinMaxGroup group = new MinMaxGroup( fullRangeMin, fullRangeMax, fullRangeMin, fullRangeMax, setup.getDisplayRangeMin(), setup.getDisplayRangeMax(), minIntervalSize );
final MinMaxGroup group = new MinMaxGroup( fullRangeMin, fullRangeMax, defaultRangeMin, defaultRangeMax, setup.getDisplayRangeMin(), setup.getDisplayRangeMax(), minIntervalSize );
minMaxGroups.add( group );
setupToGroup.put( setup, group );
group.addSetup( setup );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment