Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8091182

Provide a way to disable Axis layout optimitation

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 7u40, 8
    • Fix Version/s: tbd
    • Component/s: javafx
    • Environment:

      All

      Description

      In order to develop new Axis like a DataAxis that dynamically change the label format of a value is necessary to provide a way to disable this part of code in the Axis class, method layoutChildren():

      // find added
                      for(T newValue: newTickValues) {
                          boolean found = false;
                          for (TickMark<T> tick: tickMarks) {
                              if(tick.getValue().equals(newValue)) {
                                  found = true;
                                  break;
                              }
                          }
                          if(!found) added.add(newValue);
                      }

      So if there is a value that it was already shown but other format it would be recalled and the format will be actualized.

      For example.-
      There is a range set to 1.Jan.2010 to 1.Jan.2012 and then is changed to 1.Jan.2010 to 1.Feb.2010 because of this lines if 1.Jan.2010 was shown but because of this range just years are needed we would like to have 2010 2011 and 2012 BUT in the other range we would have also the days 1-Jan-2010 15-Jan-2010 1-Feb-2010. The code won´t call getTickMarkLabel() and refresh the label.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jgiles Jonathan Giles
              Reporter:
              dcirujanojfx Diego Cirujano (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: