Control the number of decimal places in the Edit Color window

Issue #413 resolved
Anastasia Baryshnikova created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Adjust the color settings

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

Open the hillenmeyer_giaever_2008.txt matrix (attached), go to View > Colors. Double click on any handle.

CURRENT BEHAVIOR

The Mean value has 4 decimal numbers, Median has 1, Min has 2, Max has 3 and Center has ~20.

Screen Shot 2016-05-23 at 5.28.08 PM.png

EXPECTED BEHAVIOR

All values should be consistently reported, since they are probably calculated in a similar way from the matrix data.

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

e.g. Add a color selection class

FILES AFFECTED (where the changes will be implemented) - developers only

e.g. selectColor.java & settingsPanel.java

LEVEL OF EFFORT - developers only

trivial/minor/medium/major/overhaul (choose one)

COMMENTS

Comments (4)

  1. Christopher Keil repo owner

    Added rounding to 4 decimals for thumb dialog

    Replaced uncontrolled double values with rounded double values (4 places) for the thumb dialog to improve display of relevant numbers.

    Resolves: #413

    See also: -

    → <<cset 7905beed2623>>

  2. Robert Leach

    Added rounding to 4 decimals for thumb dialog

    Replaced uncontrolled double values with rounded double values (4 places) for the thumb dialog to improve display of relevant numbers.

    Resolves: #413

    See also: -

    → <<cset 7905beed2623>>

  3. Log in to comment