Interface ISettings2

All Superinterfaces:
ISettings
All Known Implementing Classes:
AbstractSettings, DefaultSettings, GanttTester.TestSettings

public interface ISettings2
extends ISettings
This interface is an extension of ISettings which lets you define various settings for the GanttChart. Its initial implementation has been defined because of MinuteView, in order to both preserve the binary code compatibility and to do not amend the pre-existent ISettings interface. In turn, the abstract class AbstractSettings is now implementing this interface. You can change some settings by creating your own class and overriding your desired methods, instructions as follows:
 public class MySettings extends AbstractSettings {
        // override your methods here
 }
 

Once you've overridden the settings you wish to change, simply pass an instance of your implementation class to the constructor of GanttChart: GanttChart(org.eclipse.swt.widgets.Composite, int, ISettings)

  • Method Details

    • getMinuteDateFormat

      java.lang.String getMinuteDateFormat()
      The date format to use when displaying dates in string format in the minutes view.
      Returns:
      Date format. Default is month/day/year/ hh:mm:ss.
      See Also:
      DateFormat, DateFormatSymbols
    • getMinuteHeaderTextDisplayFormatTop

      java.lang.String getMinuteHeaderTextDisplayFormatTop()
      The SimpleDateFormat of the text shown in the top header for the minute view.
      Returns:
      SimpleDateFormat string. May not be null.
    • getMinuteHeaderTextDisplayFormatBottom

      java.lang.String getMinuteHeaderTextDisplayFormatBottom()
      The SimpleDateFormat of the text shown in the bottom header for the minute view.
      Returns:
      SimpleDateFormat string. May not be null.
    • enableTodayLineUpdater

      boolean enableTodayLineUpdater()
      Start the updating tread for TodayLine (red line marking current time)
      Returns:
      true Start Thread false Skip Thread