Class MinimalDateFormat

java.lang.Object
java.text.Format
java.text.DateFormat
com.jfcbuilder.types.MinimalDateFormat
All Implemented Interfaces:
Serializable, Cloneable

public class MinimalDateFormat extends DateFormat
Specialized DateFormat that generates the first letter(s) of the month for the first axis tick in that month followed by that new month's day number for subsequent ticks. Does not generate time strings.

To determine if a new month is seen when formatting, class instances are stateful in remembering the last date value passed to the format method.

WARNING: No special localization formatting is deliberately done. The first letters of the month obtained for the default locale settings are used. This generally works for the English language but is perhaps not be suitable for other languages.

See Also:
  • Constructor Details

    • MinimalDateFormat

      public MinimalDateFormat()
      Constructor using the default number of month label characters.
    • MinimalDateFormat

      public MinimalDateFormat(int monthChars)
      Constructor for using a specific number of month characters.
      Parameters:
      monthChars - The number of month characters to display starting from the first letter of the month.
      Throws:
      IllegalArgumentException - if monthChars is less than one.
  • Method Details