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)
-
Field Summary
Fields inherited from interface org.eclipse.nebula.widgets.ganttchart.ISettings
CONNECTION_ARROW_RIGHT_TO_LEFT, CONNECTION_ARROW_RIGHT_TO_TOP, CONNECTION_BIRDS_FLIGHT_PATH, CONNECTION_MS_PROJECT_STYLE, DEFAULT_CONNECTION_ARROW, MAX_ZOOM_LEVEL, MIN_ZOOM_LEVEL, VIEW_D_DAY, VIEW_DAY, VIEW_MINUTE, VIEW_MONTH, VIEW_WEEK, VIEW_YEAR, ZOOM_DAY_MAX, ZOOM_DAY_MEDIUM, ZOOM_DAY_NORMAL, ZOOM_HOURS_MAX, ZOOM_HOURS_MEDIUM, ZOOM_HOURS_NORMAL, ZOOM_MINUTES_MAX, ZOOM_MINUTES_MEDIUM, ZOOM_MINUTES_NORMAL, ZOOM_MONTH_MAX, ZOOM_MONTH_MEDIUM, ZOOM_MONTH_NORMAL, ZOOM_SECONDS_MAX, ZOOM_SECONDS_MEDIUM, ZOOM_SECONDS_NORMAL, ZOOM_YEAR_MAX, ZOOM_YEAR_MEDIUM, ZOOM_YEAR_NORMAL, ZOOM_YEAR_SMALL, ZOOM_YEAR_VERY_SMALL
-
Method Summary
Modifier and Type Method Description boolean
enableTodayLineUpdater()
Start the updating tread for TodayLine (red line marking current time)java.lang.String
getMinuteDateFormat()
The date format to use when displaying dates in string format in the minutes view.java.lang.String
getMinuteHeaderTextDisplayFormatBottom()
The SimpleDateFormat of the text shown in the bottom header for the minute view.java.lang.String
getMinuteHeaderTextDisplayFormatTop()
The SimpleDateFormat of the text shown in the top header for the minute view.Methods inherited from interface org.eclipse.nebula.widgets.ganttchart.ISettings
adjustForLetters, allowArrowKeysToScrollChart, allowBlankAreaDragAndDropToMoveDates, allowBlankAreaVerticalDragAndDropToMoveChart, allowCheckpointResizing, allowHeaderSelection, allowInfiniteHorizontalScrollBar, allowPhaseOverlap, allowScopeMenu, alwaysDragAllEvents, drawEventsDownToTheHourAndMinute, drawEventString, drawFillsToBottomWhenUsingGanttSections, drawFullPercentageBar, drawGanttSectionBarToBottom, drawHeader, drawHorizontalLines, drawLockedDateMarks, drawSectionBar, drawSectionDetails, drawSelectionMarkerAroundSelectedEvent, drawVerticalLines, enableAddEvent, enableAutoScroll, enableDragAndDrop, enableLastDraw, enableResizing, enableZooming, fireEmptyEventSelection, flipBlankAreaDragDirection, forceMouseWheelVerticalScroll, getAdvancedTooltipXOffset, getArrowConnectionType, getArrowHeadEventSpacer, getArrowHeadVerticalAdjuster, getCalendarStartupDateOffset, getDateFormat, getDayHeaderTextDisplayFormatBottom, getDayHeaderTextDisplayFormatTop, getDayHorizontalSpacing, getDayVerticalSpacing, getDayWidth, getDDayRootCalendar, getDDaySplitCount, getDefaultAdvancedTooltipHelpText, getDefaultAdvancedTooltipText, getDefaultAdvancedTooltipTextExtended, getDefaultAdvancedTooltipTitle, getDefaultAdvandedTooltipHelpImage, getDefaultAdvandedTooltipImage, getDefaultEventColor, getDefaultGradientEventColor, getDefaultLocale, getDragAllModifierKey, getEventHeight, getEventPercentageBarHeight, getEventsBottomSpacer, getEventSpacer, getEventsTopSpacer, getHeaderDayHeight, getHeaderMonthHeight, getHourDateFormat, getInitialView, getInitialZoomLevel, getLockImage, getMinimumSectionHeight, getMinZoomLevel, getMonthDayWidth, getMonthHeaderTextDisplayFormatBottom, getMonthHeaderTextDisplayFormatTop, getMoveAreaNegativeSensitivity, getNumberOfDaysToAppendForEndOfDay, getPercentageBarAlpha, getPeriodEnd, getPeriodStart, getPhasesHeaderHeight, getRemainderPercentageBarAlpha, getResizeBorderSensitivity, getReverseDependencyLineHorizontalSpacer, getRevisedLineSpacer, getSectionBarDividerHeight, getSectionBarWidth, getSectionDetailContentReplacer, getSectionDetailText, getSectionDetailTitle, getSectionDetailWidth, getSectionSide, getSectionTextSpacer, getStartupCalendarDate, getTextDisplayFormat, getTextSpacerConnected, getTextSpacerNonConnected, getTodayLineStyle, getTodayLineVerticalOffset, getTodayLineWidth, getToolTipContentReplacer, getUseAdvancedTooltips, getVerticalDragResistance, getVerticalEventDragging, getVerticalTickMarkOffset, getWeekHeaderTextDisplayFormatBottom, getWeekHeaderTextDisplayFormatTop, getYearHeaderTextDisplayFormatBottom, getYearHeaderTextDisplayFormatTop, getYearMonthDayWidth, getZoomWheelModifierKey, lockHeaderOnVerticalScroll, moveAndResizeOnlyDependentEventsThatAreLaterThanLinkedMoveEvent, moveLinkedEventsWhenEventsAreMoved, onVerticalDragDropShowInsertMarker, printFooter, printSelectedVerticallyComplete, roundHourlyEventsOffToNearestHour, scaleImageToDayWidth, scrollChartVerticallyOnMouseWheel, shiftHorizontalCenteredEventString, showArrows, showBarsIn3D, showBoldScopeText, showDateTips, showDateTipsOnScrolling, showDefaultMenuItemsOnEventRightClick, showDeleteMenuOption, showGradientEventBars, showHolidayToolTips, showMenuItemsOnRightClick, showNumberOfDaysOnBars, showOnlyDependenciesForSelectedItems, showPlannedDates, showPropertiesMenuOption, showResizeDateTipOnBorders, showSectionDetailMore, showToolTips, showZoomLevelBox, startCalendarOnFirstDayOfWeek, useSplitArrowConnections, zoomToMousePointerDateOnWheelZooming
-
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 Threadfalse
Skip Thread
-