public interface ISettings
AbstractSettings
is extended
and methods needed to be changed from their defaults are overridden and changed. It would be quite a hassle to implement a full ISettings interface from scratch.
In order to preserve binary compatibility, after the MinuteView implementation, this interface has been extended by ISettings2
Please refer both to ISettings
and ISettings2
for any setting change.
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.GanttChart(org.eclipse.swt.widgets.Composite, int, ISettings)
Modifier and Type | Field and Description |
---|---|
static int |
CONNECTION_ARROW_RIGHT_TO_LEFT
A connecting line that starts at the right of an event and goes to the left of the connecting event
|
static int |
CONNECTION_ARROW_RIGHT_TO_TOP
A connecting line that starts at the right of an event and goes to the top of the connecting event
|
static int |
CONNECTION_BIRDS_FLIGHT_PATH
Birds flight path is an arrow-head-less line from the one event to another in the straightest line, also known as "how the crow flies".
|
static int |
CONNECTION_MS_PROJECT_STYLE
A MS Project style connection uses rounded corners and quite a bit of logic to make the line as nice as possible,
and also supports reverse connection coloring.
|
static int |
DEFAULT_CONNECTION_ARROW
The default connection which is
CONNECTION_ARROW_RIGHT_TO_LEFT |
static int |
MAX_ZOOM_LEVEL |
static int |
MIN_ZOOM_LEVEL |
static int |
VIEW_D_DAY |
static int |
VIEW_DAY |
static int |
VIEW_MINUTE |
static int |
VIEW_MONTH |
static int |
VIEW_WEEK |
static int |
VIEW_YEAR |
static int |
ZOOM_DAY_MAX |
static int |
ZOOM_DAY_MEDIUM |
static int |
ZOOM_DAY_NORMAL |
static int |
ZOOM_HOURS_MAX |
static int |
ZOOM_HOURS_MEDIUM |
static int |
ZOOM_HOURS_NORMAL |
static int |
ZOOM_MINUTES_MAX |
static int |
ZOOM_MINUTES_MEDIUM |
static int |
ZOOM_MINUTES_NORMAL |
static int |
ZOOM_MONTH_MAX |
static int |
ZOOM_MONTH_MEDIUM |
static int |
ZOOM_MONTH_NORMAL |
static int |
ZOOM_SECONDS_MAX |
static int |
ZOOM_SECONDS_MEDIUM |
static int |
ZOOM_SECONDS_NORMAL |
static int |
ZOOM_YEAR_MAX |
static int |
ZOOM_YEAR_MEDIUM |
static int |
ZOOM_YEAR_NORMAL |
static int |
ZOOM_YEAR_SMALL |
static int |
ZOOM_YEAR_VERY_SMALL |
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
allowBlankAreaDragAndDropToMoveDates() being true. |
boolean |
allowCheckpointResizing()
Whether checkpoints can be resized (assuming resizing is on
enableResizing() ). |
boolean |
allowHeaderSelection()
Whether selecting dates in the header is allowed by clicking the date.
|
boolean |
allowInfiniteHorizontalScrollBar()
Whether to mimic Microsoft © Project's infinite scrollbar which lets users scroll into the future or past indefinitely.
|
boolean |
allowPhaseOverlap()
When phases are resized or moved, whether an overlap resize/move should be accepted or not.
|
boolean |
allowScopeMenu()
Whether scopes can show a right click menu or not.
|
boolean |
alwaysDragAllEvents()
The default behaviour in GanttChart on moving an event is that only the current dragged
event is moved unless you press the SHIFT key.
|
boolean |
drawEventsDownToTheHourAndMinute()
If this returns true, events are never rounded up to their nearest hour/minute when shown in the chart, but will
always show down to the minute even in any mid-zoomed and fully-zoomed out view (this does not do anything to the
normal minute view).
|
boolean |
drawEventString()
Global configuration to specify if the text of GanttEvents should be rendered or not.
|
boolean |
drawFillsToBottomWhenUsingGanttSections()
Whether to draw fills and vertical lines etc to the bottom when GanttSections are used.
|
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 |
drawGanttSectionBarToBottom()
Whether the GanttSection bar should draw all the way down or not.
|
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 |
drawSectionBar()
Configure whether the section bar should be rendered.
|
boolean |
drawSectionDetails()
Configure whether there should be an additional area to the section bar
that shows additional section detail information.
|
boolean |
drawSelectionMarkerAroundSelectedEvent()
If true, draws a dotted selection marker around the currently selected event to visualize the selection.
|
boolean |
drawVerticalLines()
The vertical lines are the lines that divide days and weeks etc.
|
boolean |
enableAddEvent() |
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 |
enableLastDraw()
See IGanttEventListener's lastDraw(GC gc) method method info.
|
boolean |
enableResizing()
Whether event-resizing is turned on or off.
|
boolean |
enableZooming()
If zooming in/out should be enabled or disabled.
|
boolean |
fireEmptyEventSelection()
whether
IGanttEventListener.eventSelected(GanttEvent, java.util.List, org.eclipse.swt.events.MouseEvent) should also
be called on empty selection |
boolean |
flipBlankAreaDragDirection()
If for some reason the drag left vs.
|
boolean |
forceMouseWheelVerticalScroll()
Deprecated.
By default mousewheel now scrolls chart vertically on all platforms. To turn off, flag scrollChartVerticallyOnMouseWheel()
|
int |
getAdvancedTooltipXOffset()
Advanced tooltips are shells and by default they pop up where the mouse pointer is.
|
int |
getArrowConnectionType()
What type of arrow connection to draw.
|
int |
getArrowHeadEventSpacer()
Returns the space between the head of the dependency arrowhead and the event.
|
int |
getArrowHeadVerticalAdjuster()
If you for some reason wish to move the arrow head up or down vertically, setting a number here will modify the
vertical "extra".
|
int |
getCalendarStartupDateOffset()
Date offset of the startup date that the calendar should start at.
|
java.lang.String |
getDateFormat()
The date format to use when displaying dates in string format.
|
java.lang.String |
getDayHeaderTextDisplayFormatBottom()
The SimpleDateFormat of the text shown in the bottom header for the day view.
|
java.lang.String |
getDayHeaderTextDisplayFormatTop()
The SimpleDateFormat of the text shown in the top header for the day view.
|
int |
getDayHorizontalSpacing()
Returns the spacing from the top where the day letter is printed.
|
int |
getDayVerticalSpacing()
Returns the space from the left of the border where the day letter is printed.
|
int |
getDayWidth()
Returns the width for each day that is drawn.
|
java.util.Calendar |
getDDayRootCalendar()
It's highly suggested you use the default implementation of this method.
|
int |
getDDaySplitCount()
The value where D-days have their "weeks" so to speak, this is used to calculate the numbers shown in both
headers, where the top header is displaying each "set" whereas the bottom one shows numbers from 0 to the number
returned by this method.
|
java.lang.String |
getDefaultAdvancedTooltipHelpText()
The default help text shown in the advanced tooltip.
|
java.lang.String |
getDefaultAdvancedTooltipText()
The default tooltip shown in the advanced tooltip.
|
java.lang.String |
getDefaultAdvancedTooltipTextExtended()
The default extended tooltip shown in the advanced tooltip.
|
java.lang.String |
getDefaultAdvancedTooltipTitle()
The default title text shown in the advanced tooltip.
|
org.eclipse.swt.graphics.Image |
getDefaultAdvandedTooltipHelpImage()
The default help image used in the advanced tooltip.
|
org.eclipse.swt.graphics.Image |
getDefaultAdvandedTooltipImage()
The default image used in the advanced tooltip.
|
org.eclipse.swt.graphics.Color |
getDefaultEventColor()
The default color for an event when there is none set on the event itself.
|
org.eclipse.swt.graphics.Color |
getDefaultGradientEventColor()
The default gradient color for an event (if gradients are turned on).
|
java.util.Locale |
getDefaultLocale()
Locale used for calendars and wherever needed.
|
int |
getDragAllModifierKey()
The keyboard modifier key (also known as a hint) used to determine when it's a drag-all-linked-events
moveLinkedEventsWhenEventsAreMoved() event or just a normal drag. |
int |
getEventHeight()
Returns the height for each event, including checkpoints.
|
int |
getEventPercentageBarHeight()
Returns the height of the bar that is drawn inside the events that represents the percentage done.
|
int |
getEventsBottomSpacer()
Bottom spacer between the bottom event and the section divider when using GanttSections.
|
int |
getEventSpacer()
Returns the vertical space between each event.
|
int |
getEventsTopSpacer()
Top spacer between the top pixel and the beginning of the first event.
|
int |
getHeaderDayHeight()
Returns the height of the header section that displays the days.
|
int |
getHeaderMonthHeight()
Returns the height of the header section that displays the month names.
|
java.lang.String |
getHourDateFormat()
The date format to use when displaying dates in string format in the hours view.
|
int |
getInitialView()
What view is used when the chart is initially drawn.
|
int |
getInitialZoomLevel()
What initial zoom level is used when the chart is initially drawn.
|
org.eclipse.swt.graphics.Image |
getLockImage()
Returns the image used for displaying something as locked in the GANTT chart.
|
int |
getMinimumSectionHeight()
Minimum height of sections.
|
int |
getMinZoomLevel()
Returns the minimum zoom level.
|
int |
getMonthDayWidth()
Returns the width for each day that is drawn in the monthly view.
|
java.lang.String |
getMonthHeaderTextDisplayFormatBottom()
The SimpleDateFormat of the text shown in the bottom header for the month view.
|
java.lang.String |
getMonthHeaderTextDisplayFormatTop()
The SimpleDateFormat of the text shown in the top header for the month view.
|
int |
getMoveAreaNegativeSensitivity()
Returns the number of pixels off each side of an event towards the center of it that is ignored when trying to
move an event.
|
int |
getNumberOfDaysToAppendForEndOfDay()
Normally a day is calculated as day_starts->day_ends, which means that to make an event that starts and ends on the same day count as "anything", +1 is
added by default to make the event actually show up on the chart.
|
int |
getPercentageBarAlpha()
The Alpha level of the percentage complete bar.
|
java.util.Calendar |
getPeriodEnd()
Specify a period end.
|
java.util.Calendar |
getPeriodStart()
Specify a period start.
|
int |
getPhasesHeaderHeight()
When drawing
GanttPhase s this is the header height used for displaying the names of these phases. |
int |
getRemainderPercentageBarAlpha()
The Alpha level of the remaining percentage complete bar.
|
int |
getResizeBorderSensitivity()
Returns the number of pixels off each side of an event that is the area for which the resize cursor is shown.
|
int |
getReverseDependencyLineHorizontalSpacer()
If you plan on using reverse dependencies, this value will be interesting.
|
int |
getRevisedLineSpacer()
The distance from the event top (and event bottom) that is used to draw the line portraying revised start and end
dates.
|
int |
getSectionBarDividerHeight()
The height of the bar drawn between sections.
|
int |
getSectionBarWidth()
Width of the section bar.
|
ISectionDetailContentReplacer |
getSectionDetailContentReplacer()
Returns the custom section detail generator which generates the section detail
out of custom data for a GanttSection.
|
java.lang.String |
getSectionDetailText()
The detail information that should be rendered in the section detail area.
|
java.lang.String |
getSectionDetailTitle()
The section detail area title that should be rendered in the section detail area.
|
int |
getSectionDetailWidth() |
int |
getSectionSide()
Which side the section bar should be drawn on.
|
int |
getSectionTextSpacer()
If the name of any section is so large that it basically defines the size of the section, this value is used to
space out the text slightly so that the section borders don't hug the text.
|
java.util.Calendar |
getStartupCalendarDate()
Returns the position that the calendar should start on when first created.
|
java.lang.String |
getTextDisplayFormat()
Decides how the string behind the event is displayed.
|
int |
getTextSpacerConnected()
Returns the space between the actual event and the text that is written after the event when the event has a
connecting line extending from it.
|
int |
getTextSpacerNonConnected()
Returns the space between the actual event and the text that is written after the event when the event has no
connecting line extending from it.
|
int |
getTodayLineStyle()
The default line style of the line showing where today's date is.
|
int |
getTodayLineVerticalOffset()
The vertical offset from the top for the today line calculated from the bottom part of the header.
|
int |
getTodayLineWidth()
The width of the line showing where today's date is.
|
IToolTipContentReplacer |
getToolTipContentReplacer()
Returns the custom tool tip generator which generates the tooltip
out of custom data for a GanttEvent.
|
boolean |
getUseAdvancedTooltips()
Whether to use Advanced Tooltips by default.
|
int |
getVerticalDragResistance()
For events that can be dragged vertically, this is the "resistance" in pixels before the event "lets go"
of it's horizontal location.
|
int |
getVerticalEventDragging()
What style of vertical event dragging that is enabled.
|
int |
getVerticalTickMarkOffset()
The vertical offset from top for the tick marks in the top header.
|
java.lang.String |
getWeekHeaderTextDisplayFormatBottom()
The SimpleDateFormat of the text shown in the bottom header for the week view.
|
java.lang.String |
getWeekHeaderTextDisplayFormatTop()
The SimpleDateFormat of the text shown in the top header for the week view.
|
java.lang.String |
getYearHeaderTextDisplayFormatBottom()
The SimpleDateFormat of the text shown in the bottom header for the year view.
|
java.lang.String |
getYearHeaderTextDisplayFormatTop()
The SimpleDateFormat of the text shown in the top header for the year view.
|
int |
getYearMonthDayWidth()
Returns the width for each day that is drawn in the yearly view.
|
int |
getZoomWheelModifierKey()
The keyboard modifier key combined with the scroll wheel to make the chart zoom.
|
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 |
onVerticalDragDropShowInsertMarker()
Whether an insert marker should be shown for where the dragged event will end up when a vertical drag/drop
is in progress.
|
boolean |
printFooter()
Configure whether a footer should be added to the print pages or not.
|
boolean |
printSelectedVerticallyComplete()
On printing a GanttChart it is possible to select to print only the selected area.
|
boolean |
roundHourlyEventsOffToNearestHour()
Whether to round off minutes on events to nearest hour.
|
boolean |
scaleImageToDayWidth()
Whether to allow an image to exceed the width of one day when zooming in / out.
|
boolean |
scrollChartVerticallyOnMouseWheel()
Whether the chart should scroll vertically when the mouse wheel is used.
|
boolean |
shiftHorizontalCenteredEventString()
If you want to show the event String within the event rectangle by setting the horizontalTextLocation of
the GanttEvent to SWT.CENTER, there are cases that break the visualization.
|
boolean |
showArrows()
If to draw arrows on connecting lines or not.
|
boolean |
showBarsIn3D()
Whether to show events in 3D (meaning, a drop shadow is drawn below and to the right of the event)
|
boolean |
showBoldScopeText()
Whether the name of the scope is drawn in bold or plain.
|
boolean |
showDateTips()
Whether to show date tooltips when events are moved or resized.
|
boolean |
showDateTipsOnScrolling()
Whether to show a date tooltip when scrolling horizontally (changing dates) and vertically.
|
boolean |
showDefaultMenuItemsOnEventRightClick()
Whether to show the default set of menu items on the right click menus of events.
|
boolean |
showDeleteMenuOption()
Whether to show the delete menu option in the right click menu.
|
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 |
showMenuItemsOnRightClick()
Whether to show any menu items at all when right clicking an event or a chart.
|
boolean |
showNumberOfDaysOnBars()
Whether to show a "plaque" on the event bars that displays a number of how many days the event spans over.
|
boolean |
showOnlyDependenciesForSelectedItems()
Whether to only show the dependency connections only when an event is selected, as opposed to always showing the
lines.
|
boolean |
showPlannedDates()
Whether to draw lines that show where the revised dates would have been on the chart (assuming revised dates are
set).
|
boolean |
showPropertiesMenuOption()
Whether to show the properties menu option in the right click menu.
|
boolean |
showResizeDateTipOnBorders()
Whether the date tooltip box (if turned on) when resizing should hug the border of the event on the left or right
side or if it should be simply stick somewhat to the event resize location.
|
boolean |
showSectionDetailMore() |
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
getStartupCalendarDate()
Please note, if the
getCalendarStartupDateOffset() is set to other than zero, these two methods will most likely
clash. |
boolean |
useSplitArrowConnections()
If you plan on using reverse dependencies, you may want to flag this to true.
|
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.
|
static final int CONNECTION_ARROW_RIGHT_TO_TOP
static final int CONNECTION_ARROW_RIGHT_TO_LEFT
static final int CONNECTION_MS_PROJECT_STYLE
static final int CONNECTION_BIRDS_FLIGHT_PATH
static final int DEFAULT_CONNECTION_ARROW
CONNECTION_ARROW_RIGHT_TO_LEFT
static final int VIEW_MINUTE
static final int VIEW_DAY
static final int VIEW_WEEK
static final int VIEW_MONTH
static final int VIEW_YEAR
static final int VIEW_D_DAY
static final int MIN_ZOOM_LEVEL
static final int ZOOM_SECONDS_MAX
static final int ZOOM_SECONDS_MEDIUM
static final int ZOOM_SECONDS_NORMAL
static final int ZOOM_MINUTES_MAX
static final int ZOOM_MINUTES_MEDIUM
static final int ZOOM_MINUTES_NORMAL
static final int ZOOM_HOURS_MAX
static final int ZOOM_HOURS_MEDIUM
static final int ZOOM_HOURS_NORMAL
static final int ZOOM_DAY_MAX
static final int ZOOM_DAY_MEDIUM
static final int ZOOM_DAY_NORMAL
static final int ZOOM_MONTH_MAX
static final int ZOOM_MONTH_MEDIUM
static final int ZOOM_MONTH_NORMAL
static final int ZOOM_YEAR_MAX
static final int ZOOM_YEAR_MEDIUM
static final int ZOOM_YEAR_NORMAL
static final int ZOOM_YEAR_SMALL
static final int ZOOM_YEAR_VERY_SMALL
static final int MAX_ZOOM_LEVEL
java.lang.String getDateFormat()
DateFormat
,
DateFormatSymbols
java.lang.String getHourDateFormat()
DateFormat
,
DateFormatSymbols
org.eclipse.swt.graphics.Color getDefaultEventColor()
org.eclipse.swt.graphics.Color getDefaultGradientEventColor()
boolean showPropertiesMenuOption()
IGanttEventListener#eventPropertiesSelected(GanttEvent)
boolean showDeleteMenuOption()
IGanttEventListener.eventsDeleteRequest(java.util.List, org.eclipse.swt.events.MouseEvent)
int getArrowConnectionType()
CONNECTION_ARROW_RIGHT_TO_TOP
- Arrow line (and arrow head if turned on) will be drawn into the
events top and bottom corners.
CONNECTION_ARROW_RIGHT_TO_LEFT
- Arrow line (and arrow head if turned on) will be drawn into the
events middle left or right side.
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.
CONNECTION_BIRDS_FLIGHT_PATH
- Straight "as the bird flies" line between events without any bends.
CONNECTION_MS_PROJECT_STYLE
.CONNECTION_MS_PROJECT_STYLE
int getInitialView()
int getInitialZoomLevel()
ZOOM_SECONDS_MAX
ZOOM_SECONDS_MEDIUM
ZOOM_SECONDS_NORMAL
ZOOM_MINUTES_MAX
ZOOM_MINUTES_MEDIUM
ZOOM_MINUTES_NORMAL
ZOOM_HOURS_MAX
ZOOM_HOURS_MEDIUM
ZOOM_HOURS_NORMAL
ZOOM_DAY_MAX
ZOOM_DAY_MEDIUM
ZOOM_DAY_NORMAL
ZOOM_MONTH_MAX
ZOOM_MONTH_MEDIUM
ZOOM_MONTH_NORMAL
ZOOM_YEAR_MAX
ZOOM_YEAR_MEDIUM
ZOOM_YEAR_NORMAL
ZOOM_YEAR_SMALL
ZOOM_YEAR_VERY_SMALL
ZOOM_DAY_NORMAL
ZOOM_DAY_MAX
boolean showArrows()
boolean enableAutoScroll()
boolean showToolTips()
IToolTipContentReplacer getToolTipContentReplacer()
boolean showDateTips()
boolean showBarsIn3D()
boolean showGradientEventBars()
GanttEvent.setGradientStatusColor(Color)
and GanttEvent.setStatusColor(Color)
.GanttEvent.setGradientStatusColor(Color)
,
GanttEvent.setStatusColor(Color)
boolean showOnlyDependenciesForSelectedItems()
boolean showNumberOfDaysOnBars()
boolean showPlannedDates()
int getHeaderMonthHeight()
int getHeaderDayHeight()
int getDayWidth()
int getMonthDayWidth()
int getYearMonthDayWidth()
WARNING: Setting this value below 3 will cause an infinite loop and probable application crash. This happens as internal size calculations end up on 0 width (rounded) values.
int getEventHeight()
int getEventPercentageBarHeight()
Note: If the event height is an even number, this number does best being odd, and vice versa.
boolean drawFullPercentageBar()
int getPercentageBarAlpha()
int getRemainderPercentageBarAlpha()
int getResizeBorderSensitivity()
int getMoveAreaNegativeSensitivity()
int getTextSpacerConnected()
int getTextSpacerNonConnected()
int getDayVerticalSpacing()
int getDayHorizontalSpacing()
int getEventSpacer()
boolean showBoldScopeText()
boolean adjustForLetters()
boolean enableResizing()
boolean moveLinkedEventsWhenEventsAreMoved()
SHIFT
(or whatever the settings say) to move an event, and all dependent
events will move with the selected event.getDragAllModifierKey()
boolean enableDragAndDrop()
boolean showZoomLevelBox()
CTRL
(or whatever the settings say) +
Scroll Wheel
) to display a box in the bottom left corner that shows the zoom level.getZoomWheelModifierKey()
boolean allowInfiniteHorizontalScrollBar()
boolean showResizeDateTipOnBorders()
boolean allowBlankAreaDragAndDropToMoveDates()
boolean allowBlankAreaVerticalDragAndDropToMoveChart()
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 dragboolean flipBlankAreaDragDirection()
allowBlankAreaDragAndDropToMoveDates()
is active.allowBlankAreaDragAndDropToMoveDates()
boolean drawSelectionMarkerAroundSelectedEvent()
boolean allowCheckpointResizing()
enableResizing()
).enableResizing()
boolean showMenuItemsOnRightClick()
int getArrowHeadEventSpacer()
int getArrowHeadVerticalAdjuster()
java.util.Calendar getStartupCalendarDate()
getDefaultLocale()
.int getCalendarStartupDateOffset()
boolean startCalendarOnFirstDayOfWeek()
getStartupCalendarDate()
Please note, if the
getCalendarStartupDateOffset()
is set to other than zero, these two methods will most likely
clash.
This setting has no effect on D-Day charts.getCalendarStartupDateOffset()
,
getStartupCalendarDate()
boolean enableZooming()
org.eclipse.swt.graphics.Image getLockImage()
lock_tiny.gif
image in the package.java.lang.String getTextDisplayFormat()
GanttEvent.setTextDisplayFormat(String)
int getRevisedLineSpacer()
boolean roundHourlyEventsOffToNearestHour()
org.eclipse.swt.graphics.Image getDefaultAdvandedTooltipHelpImage()
org.eclipse.swt.graphics.Image getDefaultAdvandedTooltipImage()
java.lang.String getDefaultAdvancedTooltipHelpText()
java.lang.String getDefaultAdvancedTooltipTitle()
java.lang.String getDefaultAdvancedTooltipTextExtended()
java.lang.String getDefaultAdvancedTooltipText()
int getTodayLineWidth()
int getTodayLineStyle()
int getTodayLineVerticalOffset()
int getVerticalTickMarkOffset()
java.lang.String getDayHeaderTextDisplayFormatTop()
SimpleDateFormat
string. May not be null.java.lang.String getWeekHeaderTextDisplayFormatTop()
java.lang.String getMonthHeaderTextDisplayFormatTop()
java.lang.String getYearHeaderTextDisplayFormatTop()
java.lang.String getDayHeaderTextDisplayFormatBottom()
java.lang.String getWeekHeaderTextDisplayFormatBottom()
java.lang.String getMonthHeaderTextDisplayFormatBottom()
java.lang.String getYearHeaderTextDisplayFormatBottom()
boolean drawHeader()
int getEventsTopSpacer()
int getEventsBottomSpacer()
int getSectionBarDividerHeight()
int getSectionBarWidth()
int getMinimumSectionHeight()
1. Space the section name takes up vertically
2. Space all contained events take up including various event spacers.
If the two calculations above are smaller than the value returned by this method, the height returned from this method will be used.
int getAdvancedTooltipXOffset()
boolean getUseAdvancedTooltips()
int getDragAllModifierKey()
moveLinkedEventsWhenEventsAreMoved()
event or just a normal drag.SWT.SHIFT
(the shift key)moveLinkedEventsWhenEventsAreMoved()
int getZoomWheelModifierKey()
SWT.MOD1
(usually the CTRL
key)java.util.Locale getDefaultLocale()
boolean enableLastDraw()
IGanttEventListener.lastDraw(org.eclipse.swt.graphics.GC)
boolean useSplitArrowConnections()
int getReverseDependencyLineHorizontalSpacer()
boolean drawVerticalLines()
GanttComposite#setDrawVerticalLinesOverride(Boolean)
boolean drawHorizontalLines()
GanttComposite#setDrawHorizontalLinesOverride(Boolean)
int getSectionSide()
SWT.LEFT
or SWT.RIGHT
.SWT.LEFT
.boolean drawLockedDateMarks()
boolean showDateTipsOnScrolling()
showDateTips()
boolean drawGanttSectionBarToBottom()
boolean drawFillsToBottomWhenUsingGanttSections()
boolean lockHeaderOnVerticalScroll()
boolean showDefaultMenuItemsOnEventRightClick()
showMenuItemsOnRightClick()
,
showPropertiesMenuOption()
,
showDeleteMenuOption()
,
GanttEvent.getMenu()
boolean allowScopeMenu()
GanttEvent.getMenu()
,
GanttEvent.showAllChildren()
,
GanttEvent.hideAllChildren()
boolean allowHeaderSelection()
boolean zoomToMousePointerDateOnWheelZooming()
java.util.Calendar getDDayRootCalendar()
int getDDaySplitCount()
boolean drawEventsDownToTheHourAndMinute()
boolean moveAndResizeOnlyDependentEventsThatAreLaterThanLinkedMoveEvent()
@Deprecated boolean forceMouseWheelVerticalScroll()
scrollChartVerticallyOnMouseWheel()
int getSectionTextSpacer()
int getPhasesHeaderHeight()
GanttPhase
s this is the header height used for displaying the names of these phases.boolean allowPhaseOverlap()
int getVerticalEventDragging()
getVerticalDragResistance()
.VerticalDragModes
. Default is VerticalDragModes.NO_VERTICAL_DRAG
int getVerticalDragResistance()
boolean onVerticalDragDropShowInsertMarker()
boolean scaleImageToDayWidth()
boolean allowArrowKeysToScrollChart()
int getNumberOfDaysToAppendForEndOfDay()
boolean scrollChartVerticallyOnMouseWheel()
int getMinZoomLevel()
MIN_ZOOM_LEVEL
java.util.Calendar getPeriodStart()
null
will result in rendering
an additional line to the chart indicating a period start in the gantt itself.java.util.Calendar getPeriodEnd()
null
will result in rendering
an additional line to the chart indicating a period end in the gantt itself.boolean shiftHorizontalCenteredEventString()
If this method returns true
, the AbstractPaintManager will shift the rendering of the event
String to the right if the String length is greater than the event rectangle.
true
if the event String should be shifted, false
if notboolean enableAddEvent()
true
to enable the menu action for adding an event to the GanttChart,
false
if this action should not be available to the user.boolean drawEventString()
true
if the event text should be rendered, false
if not.boolean alwaysDragAllEvents()
true
if all selected events should be moved by dragging on of them
false
if only the current dragged event should be moved.boolean printSelectedVerticallyComplete()
true
if the printed chart should contain the whole chart
vertically but only the horizontal visible part of the chart,
false
if only the visible part of the chart should be printed,
horizontally AND verticallyboolean printFooter()
true
if a footer should be added to the print pages,
false
if notboolean drawSectionBar()
true
if the section bar should
be rendered, false
if notboolean drawSectionDetails()
true
if additional section detail information should
be rendered, false
if notint getSectionDetailWidth()
java.lang.String getSectionDetailTitle()
java.lang.String getSectionDetailText()
ISectionDetailContentReplacer getSectionDetailContentReplacer()
boolean showSectionDetailMore()
true
if there should be a "more [+]" shown in the section
detail area which allows to register a listener against to show more
informations by e.g. opening a dialog.boolean showHolidayToolTips()
true
to show a "holiday" popup with the configured name of the holiday,
false
if not (default)boolean fireEmptyEventSelection()
IGanttEventListener.eventSelected(GanttEvent, java.util.List, org.eclipse.swt.events.MouseEvent)
should also
be called on empty selection