Enum ETimeScale

java.lang.Object
java.lang.Enum<ETimeScale>
de.xima.fc.gui.bean.statistics.model.ETimeScale
All Implemented Interfaces:
Serializable, Comparable<ETimeScale>

public enum ETimeScale extends Enum<ETimeScale>
  • Enum Constant Details

  • Method Details

    • values

      public static ETimeScale[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ETimeScale valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getI18nKey

      public String getI18nKey()
      Get the i18n key of the timescale.
      Returns:
      the i18n key
    • getI18nPatternKey

      public String getI18nPatternKey()
      Get the i18n key of the pattern used for the x-axis.
      Returns:
      the i18n key
    • getI18nSheetKey

      public String getI18nSheetKey()
      Get the i18n key of the excel sheet name.
      Returns:
      the i18n key
    • getScaleField

      public int getScaleField()
      Get the corresponding field of the Calendar.
      Returns:
      the field
    • getCalendar

      public Function<Integer, org.apache.commons.lang3.tuple.Pair<Calendar,Calendar>> getCalendar()
      Get the function to create a pair of calendars for the timescale. The Integer parameter is the offset of the timescale. If no offset is used, the current time is the pair.right.
      Returns:
      the function
    • ticks

      public Function<org.apache.commons.lang3.tuple.Pair<Calendar,Calendar>, Integer> ticks()
      Get the function to calculate the ticks of the timescale. The amount of ticks between the start (pair.left) and end (pair.right) in the timescale. TODO: does this make sense for week?
      Returns:
      the function