class GanttTester.TestSettings extends AbstractSettings
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
Constructor and Description |
---|
TestSettings() |
Modifier and Type | Method and Description |
---|---|
boolean |
adjustForLetters()
Letters have different width.
|
boolean |
allowArrowKeysToScrollChart()
Whether arrow keys are enabled to scroll chart left/right/up/down.
|
boolean |
allowBlankAreaDragAndDropToMoveDates()
If true, it lets the move forwards or backwards in time by clicking in a "blank" area and dragging the mouse.
|
boolean |
allowBlankAreaVerticalDragAndDropToMoveChart()
Relies on
ISettings.allowBlankAreaDragAndDropToMoveDates() being true. |
boolean |
allowCheckpointResizing()
Whether checkpoints can be resized (assuming resizing is on
ISettings.enableResizing() ). |
boolean |
drawFullPercentageBar()
The percentage bar always draws as a line in the center of the event but normally it only draws the part that
displays the % complete.
|
boolean |
drawHeader()
Whether to draw the header or not.
|
boolean |
drawHorizontalLines()
Whether to draw horizontal lines between the events.
|
boolean |
drawLockedDateMarks()
When dates are locked down to a certain day, the chart will draw a special marker on the lock start and end dates
to point out that it's locked between certain constraints.
|
boolean |
drawSelectionMarkerAroundSelectedEvent()
If true, draws a dotted selection marker around the currently selected event to visualize the selection.
|
boolean |
enableAutoScroll()
Whether to enable auto scroll which causes the chart to scroll either left or right when events are dragged or
resized beyond the bounds of the chart.
|
boolean |
enableDragAndDrop()
Whether event drag-and-drop is turned on or off.
|
boolean |
enableResizing()
Whether event-resizing is turned on or off.
|
boolean |
enableZooming()
If zooming in/out should be enabled or disabled.
|
boolean |
flipBlankAreaDragDirection()
If for some reason the drag left vs.
|
int |
getArrowConnectionType()
What type of arrow connection to draw.
|
java.util.Locale |
getDefaultLocale()
Locale used for calendars and wherever needed.
|
int |
getInitialView()
What view is used when the chart is initially drawn.
|
int |
getSectionSide()
Which side the section bar should be drawn on.
|
boolean |
getUseAdvancedTooltips()
Whether to use Advanced Tooltips by default.
|
int |
getVerticalEventDragging()
What style of vertical event dragging that is enabled.
|
boolean |
lockHeaderOnVerticalScroll()
Whether the header should always be visible regardless of vertical scroll position.
|
boolean |
moveAndResizeOnlyDependentEventsThatAreLaterThanLinkedMoveEvent()
If this returns true, only linked events that come after the source drag event (time/date-wise) will be
moved/resized (normally all linked events are moved/resized regardless of time/date).
|
boolean |
moveLinkedEventsWhenEventsAreMoved()
Whether users can hold down
SHIFT (or whatever the settings say) to move an event, and all dependent
events will move with the selected event. |
boolean |
scaleImageToDayWidth()
Whether to allow an image to exceed the width of one day when zooming in / out.
|
boolean |
showArrows()
If to draw arrows on connecting lines or not.
|
boolean |
showBoldScopeText()
Whether the name of the scope is drawn in bold or plain.
|
boolean |
showDateTipsOnScrolling()
Whether to show a date tooltip when scrolling horizontally (changing dates) and vertically.
|
boolean |
showGradientEventBars()
Whether to draw the color on the events using gradients.
|
boolean |
showHolidayToolTips()
Configure whether a tooltip pops up when hovering the mouse over a holiday
|
boolean |
showOnlyDependenciesForSelectedItems()
Whether to only show the dependency connections only when an event is selected, as opposed to always showing the
lines.
|
boolean |
showToolTips()
Whether to show tooltips when mouse is lingering over events.
|
boolean |
showZoomLevelBox()
Whether when a user zooms in or out (only via
CTRL (or whatever the settings say) +
Scroll Wheel ) to display a box in the bottom left corner that shows the zoom level. |
boolean |
startCalendarOnFirstDayOfWeek()
Moves the calendar to start on the first day of the week of the either current date or the date set in
ISettings.getStartupCalendarDate()
Please note, if the
ISettings.getCalendarStartupDateOffset() is set to other than zero, these two methods will most likely
clash. |
boolean |
zoomToMousePointerDateOnWheelZooming()
When you zoom in with the mouse, it can either act as a normal zoom (uses leftmost date as start date) or it can
zoom in where the mouse pointer is at the time of the zoom in.
|
allowHeaderSelection, allowInfiniteHorizontalScrollBar, allowPhaseOverlap, allowScopeMenu, alwaysDragAllEvents, drawEventsDownToTheHourAndMinute, drawEventString, drawFillsToBottomWhenUsingGanttSections, drawGanttSectionBarToBottom, drawSectionBar, drawSectionDetails, drawVerticalLines, enableAddEvent, enableLastDraw, enableTodayLineUpdater, fireEmptyEventSelection, forceMouseWheelVerticalScroll, getAdvancedTooltipXOffset, getArrowHeadEventSpacer, getArrowHeadVerticalAdjuster, getCalendarStartupDateOffset, getDateFormat, getDayHeaderTextDisplayFormatBottom, getDayHeaderTextDisplayFormatTop, getDayHorizontalSpacing, getDayVerticalSpacing, getDayWidth, getDDayRootCalendar, getDDaySplitCount, getDefaultAdvancedTooltipHelpText, getDefaultAdvancedTooltipText, getDefaultAdvancedTooltipTextExtended, getDefaultAdvancedTooltipTitle, getDefaultAdvandedTooltipHelpImage, getDefaultAdvandedTooltipImage, getDefaultEventColor, getDefaultGradientEventColor, getDragAllModifierKey, getEventHeight, getEventPercentageBarHeight, getEventsBottomSpacer, getEventSpacer, getEventsTopSpacer, getHeaderDayHeight, getHeaderMonthHeight, getHourDateFormat, getInitialZoomLevel, getLockImage, getMinimumSectionHeight, getMinuteDateFormat, getMinuteHeaderTextDisplayFormatBottom, getMinuteHeaderTextDisplayFormatTop, getMinZoomLevel, getMonthDayWidth, getMonthHeaderTextDisplayFormatBottom, getMonthHeaderTextDisplayFormatTop, getMoveAreaNegativeSensitivity, getNumberOfDaysToAppendForEndOfDay, getPercentageBarAlpha, getPeriodEnd, getPeriodStart, getPhasesHeaderHeight, getRemainderPercentageBarAlpha, getResizeBorderSensitivity, getReverseDependencyLineHorizontalSpacer, getRevisedLineSpacer, getSectionBarDividerHeight, getSectionBarWidth, getSectionDetailContentReplacer, getSectionDetailText, getSectionDetailTitle, getSectionDetailWidth, getSectionTextSpacer, getStartupCalendarDate, getTextDisplayFormat, getTextSpacerConnected, getTextSpacerNonConnected, getTodayLineStyle, getTodayLineVerticalOffset, getTodayLineWidth, getToolTipContentReplacer, getVerticalDragResistance, getVerticalTickMarkOffset, getWeekHeaderTextDisplayFormatBottom, getWeekHeaderTextDisplayFormatTop, getYearHeaderTextDisplayFormatBottom, getYearHeaderTextDisplayFormatTop, getYearMonthDayWidth, getZoomWheelModifierKey, onVerticalDragDropShowInsertMarker, printFooter, printSelectedVerticallyComplete, roundHourlyEventsOffToNearestHour, scrollChartVerticallyOnMouseWheel, shiftHorizontalCenteredEventString, showBarsIn3D, showDateTips, showDefaultMenuItemsOnEventRightClick, showDeleteMenuOption, showMenuItemsOnRightClick, showNumberOfDaysOnBars, showPlannedDates, showPropertiesMenuOption, showResizeDateTipOnBorders, showSectionDetailMore, useSplitArrowConnections
public boolean lockHeaderOnVerticalScroll()
ISettings
lockHeaderOnVerticalScroll
in interface ISettings
lockHeaderOnVerticalScroll
in class AbstractSettings
public boolean drawHeader()
ISettings
drawHeader
in interface ISettings
drawHeader
in class AbstractSettings
public int getSectionSide()
ISettings
SWT.LEFT
or SWT.RIGHT
.getSectionSide
in interface ISettings
getSectionSide
in class AbstractSettings
SWT.LEFT
.public boolean drawHorizontalLines()
ISettings
drawHorizontalLines
in interface ISettings
drawHorizontalLines
in class AbstractSettings
GanttComposite#setDrawHorizontalLinesOverride(Boolean)
public int getVerticalEventDragging()
ISettings
ISettings.getVerticalDragResistance()
.getVerticalEventDragging
in interface ISettings
getVerticalEventDragging
in class AbstractSettings
VerticalDragModes
. Default is VerticalDragModes.NO_VERTICAL_DRAG
public int getInitialView()
ISettings
getInitialView
in interface ISettings
getInitialView
in class AbstractSettings
public boolean moveLinkedEventsWhenEventsAreMoved()
ISettings
SHIFT
(or whatever the settings say) to move an event, and all dependent
events will move with the selected event.moveLinkedEventsWhenEventsAreMoved
in interface ISettings
moveLinkedEventsWhenEventsAreMoved
in class AbstractSettings
ISettings.getDragAllModifierKey()
public boolean moveAndResizeOnlyDependentEventsThatAreLaterThanLinkedMoveEvent()
ISettings
moveAndResizeOnlyDependentEventsThatAreLaterThanLinkedMoveEvent
in interface ISettings
moveAndResizeOnlyDependentEventsThatAreLaterThanLinkedMoveEvent
in class AbstractSettings
public java.util.Locale getDefaultLocale()
ISettings
getDefaultLocale
in interface ISettings
getDefaultLocale
in class AbstractSettings
public boolean enableAutoScroll()
ISettings
enableAutoScroll
in interface ISettings
enableAutoScroll
in class AbstractSettings
public boolean enableResizing()
ISettings
enableResizing
in interface ISettings
enableResizing
in class AbstractSettings
public boolean enableDragAndDrop()
ISettings
enableDragAndDrop
in interface ISettings
enableDragAndDrop
in class AbstractSettings
public boolean adjustForLetters()
ISettings
adjustForLetters
in interface ISettings
adjustForLetters
in class AbstractSettings
public int getArrowConnectionType()
ISettings
ISettings.CONNECTION_ARROW_RIGHT_TO_TOP
- Arrow line (and arrow head if turned on) will be drawn into the
events top and bottom corners.
ISettings.CONNECTION_ARROW_RIGHT_TO_LEFT
- Arrow line (and arrow head if turned on) will be drawn into the
events middle left or right side.
ISettings.CONNECTION_MS_PROJECT_STYLE
- Arrow line (and arrow head if turned on) will be drawn as
logically as possible from above event to below. Lines are rounded in corners and arrows will go to middle to top
of below event or to side depending on where event is situated.
ISettings.CONNECTION_BIRDS_FLIGHT_PATH
- Straight "as the bird flies" line between events without any bends.
getArrowConnectionType
in interface ISettings
getArrowConnectionType
in class AbstractSettings
CONNECTION_MS_PROJECT_STYLE
.ISettings.CONNECTION_MS_PROJECT_STYLE
public boolean showArrows()
ISettings
showArrows
in interface ISettings
showArrows
in class AbstractSettings
public boolean showBoldScopeText()
ISettings
showBoldScopeText
in interface ISettings
showBoldScopeText
in class AbstractSettings
public boolean showToolTips()
ISettings
showToolTips
in interface ISettings
showToolTips
in class AbstractSettings
public boolean showGradientEventBars()
ISettings
GanttEvent.setGradientStatusColor(Color)
and GanttEvent.setStatusColor(Color)
.showGradientEventBars
in interface ISettings
showGradientEventBars
in class AbstractSettings
GanttEvent.setGradientStatusColor(Color)
,
GanttEvent.setStatusColor(Color)
public boolean showOnlyDependenciesForSelectedItems()
ISettings
showOnlyDependenciesForSelectedItems
in interface ISettings
showOnlyDependenciesForSelectedItems
in class AbstractSettings
public boolean showZoomLevelBox()
ISettings
CTRL
(or whatever the settings say) +
Scroll Wheel
) to display a box in the bottom left corner that shows the zoom level.showZoomLevelBox
in interface ISettings
showZoomLevelBox
in class AbstractSettings
ISettings.getZoomWheelModifierKey()
public boolean allowBlankAreaDragAndDropToMoveDates()
ISettings
allowBlankAreaDragAndDropToMoveDates
in interface ISettings
allowBlankAreaDragAndDropToMoveDates
in class AbstractSettings
public boolean flipBlankAreaDragDirection()
ISettings
ISettings.allowBlankAreaDragAndDropToMoveDates()
is active.flipBlankAreaDragDirection
in interface ISettings
flipBlankAreaDragDirection
in class AbstractSettings
ISettings.allowBlankAreaDragAndDropToMoveDates()
public boolean drawSelectionMarkerAroundSelectedEvent()
ISettings
drawSelectionMarkerAroundSelectedEvent
in interface ISettings
drawSelectionMarkerAroundSelectedEvent
in class AbstractSettings
public boolean allowCheckpointResizing()
ISettings
ISettings.enableResizing()
).allowCheckpointResizing
in interface ISettings
allowCheckpointResizing
in class AbstractSettings
ISettings.enableResizing()
public boolean startCalendarOnFirstDayOfWeek()
ISettings
ISettings.getStartupCalendarDate()
Please note, if the
ISettings.getCalendarStartupDateOffset()
is set to other than zero, these two methods will most likely
clash.
This setting has no effect on D-Day charts.startCalendarOnFirstDayOfWeek
in interface ISettings
startCalendarOnFirstDayOfWeek
in class AbstractSettings
ISettings.getCalendarStartupDateOffset()
,
ISettings.getStartupCalendarDate()
public boolean enableZooming()
ISettings
enableZooming
in interface ISettings
enableZooming
in class AbstractSettings
public boolean drawFullPercentageBar()
ISettings
drawFullPercentageBar
in interface ISettings
drawFullPercentageBar
in class AbstractSettings
public boolean getUseAdvancedTooltips()
ISettings
getUseAdvancedTooltips
in interface ISettings
getUseAdvancedTooltips
in class AbstractSettings
public boolean drawLockedDateMarks()
ISettings
drawLockedDateMarks
in interface ISettings
drawLockedDateMarks
in class AbstractSettings
public boolean showDateTipsOnScrolling()
ISettings
showDateTipsOnScrolling
in interface ISettings
showDateTipsOnScrolling
in class AbstractSettings
ISettings.showDateTips()
public boolean zoomToMousePointerDateOnWheelZooming()
ISettings
zoomToMousePointerDateOnWheelZooming
in interface ISettings
zoomToMousePointerDateOnWheelZooming
in class AbstractSettings
public boolean allowBlankAreaVerticalDragAndDropToMoveChart()
ISettings
ISettings.allowBlankAreaDragAndDropToMoveDates()
being true. If so, this will additionally determine if the user
can blank-area drag the chart in a vertical manner to move the chart in that direction as well.
Holding down the shift key will double the speed of the vertical dragallowBlankAreaVerticalDragAndDropToMoveChart
in interface ISettings
allowBlankAreaVerticalDragAndDropToMoveChart
in class AbstractSettings
public boolean scaleImageToDayWidth()
ISettings
scaleImageToDayWidth
in interface ISettings
scaleImageToDayWidth
in class AbstractSettings
public boolean allowArrowKeysToScrollChart()
ISettings
allowArrowKeysToScrollChart
in interface ISettings
allowArrowKeysToScrollChart
in class AbstractSettings
public boolean showHolidayToolTips()
ISettings
showHolidayToolTips
in interface ISettings
showHolidayToolTips
in class AbstractSettings
true
to show a "holiday" popup with the configured name of the holiday,
false
if not (default)