public class GanttEvent extends AbstractGanttEvent implements IGanttChartItem, java.lang.Cloneable
This object can take many shapes, here is a list of a few:
Events may be modified on the fly to become a different object type from the above list. Please do ensure that the ALL parameters are set for it to become the new object before you do so.
Once an event has been created, add it onto the GanttChart widget via the addScopeEvent(...) methods available.
Sample Code:
// make a 10 day long event
Calendar cStartDate = Calendar.getInstance(Locale.getDefault());
Calendar cEndDate = Calendar.getInstance(Locale.getDefault());
cEndDate.add(Calendar.DATE, 10);
// we're setting the percentage complete to 50%
GanttEvent ganttEvent = new GanttEvent(ganttChart, "Event Name", cStartDate, cEndDate, 50);
This class should not be subclassed, do so at your own risk.
Modifier and Type | Field and Description |
---|---|
static int |
FIXED_ROW_HEIGHT_AUTOMATIC |
Constructor and Description |
---|
GanttEvent(GanttChart parent,
int dDayStart,
int dDayEnd)
D-day event creation.
|
GanttEvent(GanttChart parent,
java.lang.Object data,
java.lang.String name)
Creates a GanttEvent intended to be a scope.
|
GanttEvent(GanttChart parent,
java.lang.Object data,
java.lang.String name,
java.util.Calendar date)
Creates a GanttEvent intended to be a checkpoint.
|
GanttEvent(GanttChart parent,
java.lang.Object data,
java.lang.String name,
java.util.Calendar startDate,
java.util.Calendar endDate,
java.util.Calendar revisedStart,
java.util.Calendar revisedEnd,
int percentComplete)
Creates a new GanttEvent object with revised start and end dates.
|
GanttEvent(GanttChart parent,
java.lang.Object data,
java.lang.String name,
java.util.Calendar startDate,
java.util.Calendar endDate,
int percentComplete)
Creates a new GanttEvent object.
|
GanttEvent(GanttChart parent,
java.lang.Object data,
java.lang.String name,
java.util.Calendar date,
org.eclipse.swt.graphics.Image picture)
Creates a GanttEvent intended to be an image.
|
GanttEvent(GanttChart parent,
java.lang.String name)
Creates a GanttEvent intended to be a scope.
|
GanttEvent(GanttChart parent,
java.lang.String name,
java.util.Calendar date)
Creates a GanttEvent intended to be a checkpoint.
|
GanttEvent(GanttChart parent,
java.lang.String name,
java.util.Calendar startDate,
java.util.Calendar endDate,
java.util.Calendar revisedStart,
java.util.Calendar revisedEnd,
int percentComplete)
Creates a new GanttEvent.
|
GanttEvent(GanttChart parent,
java.lang.String name,
java.util.Calendar startDate,
java.util.Calendar endDate,
int percentComplete)
Creates a new GanttEvent.
|
GanttEvent(GanttChart parent,
java.lang.String name,
java.util.Calendar date,
org.eclipse.swt.graphics.Image picture)
Creates a GanttEvent intended to be an image.
|
Modifier and Type | Method and Description |
---|---|
void |
addScopeEvent(GanttEvent event)
Adds an event that this event should cover if it has been set to be a scope.
|
(package private) void |
calculateScope() |
java.lang.Object |
clone()
Clones the GanttEvent and all objects of it (assuming they are cloneable).
|
void |
dispose()
Removes this item from the chart.
|
(package private) void |
flagDragging() |
org.eclipse.swt.graphics.Rectangle |
getActualBounds()
This takes any text drawing widths into account and returns the bounds as such
|
int |
getActualDDayEnd() |
int |
getActualDDayStart() |
java.util.Calendar |
getActualEndDate()
Returns the revised end date if set, or the end date if not.
|
java.util.Calendar |
getActualStartDate()
Returns the revised start date if set, or the start date if not.
|
(package private) int |
getActualWidth() |
AdvancedTooltip |
getAdvancedTooltip()
Returns the currently set Advanced tooltip, or null if none is set.
|
int |
getBottomY()
Returns the bottom y of this event.
|
org.eclipse.swt.graphics.Rectangle |
getBounds()
Returns the bounds of this event (do note that events may have no bounds if they are invisible or hidden and will
not get actual bounds set until they are shown).
|
java.lang.Object |
getData()
Returns the currently set data object.
|
(package private) int |
getDaysBetweenStartAndEnd() |
int |
getDDateRange() |
int |
getDDayEnd() |
int |
getDDayRevisedEnd() |
int |
getDDayRevisedStart() |
int |
getDDayStart()
Returns the D-day start value.
|
GanttEvent |
getEarliestScopeEvent()
Returns the event that has the earliest date of all events in a scope.
|
java.util.Calendar |
getEarliestStartDate()
Returns whatever is the earliest calendar of the start date and the actual start date.
|
(package private) int |
getEarliestStartX() |
java.util.Calendar |
getEndDate()
Returns the end date of this event.
|
int |
getFixedRowHeight()
Returns the fixed row height in pixels.
|
GanttGroup |
getGanttGroup()
Returns what GanttGroup this event belongs to.
|
GanttSection |
getGanttSection()
Returns the
GanttSection that this event belongs to, or null if none. |
org.eclipse.swt.graphics.Color |
getGradientStatusColor()
Returns the status color used as part of the gradient colors used to draw the event.
|
int |
getHeight()
Returns the height of this event.
|
(package private) int |
getHorizontalLineBottomY() |
(package private) int |
getHorizontalLineTopY() |
int |
getHorizontalTextLocation()
Returns the location where the event text will be displayed.
|
java.util.Calendar |
getLatestEndDate()
Returns whatever is the latest calendar of the end date and the actual end date.
|
(package private) int |
getLatestEndX() |
GanttEvent |
getLatestScopeEvent()
Returns the event that has the latest date of all events in a scope.
|
org.eclipse.swt.widgets.Menu |
getMenu()
Returns the individual Menu for this event for which custom events can be created.
|
java.lang.String |
getName()
Returns the display name of this event.
|
(package private) org.eclipse.swt.graphics.Point |
getNameExtent() |
java.util.Calendar |
getNoMoveAfterDate()
Returns the date after which no moves or resizes are allowed.
|
java.util.Calendar |
getNoMoveBeforeDate()
Returns the date prior to which no moves or resizes are allowed.
|
GanttChart |
getParentChart()
Returns the parent
GanttChart |
GanttComposite |
getParentComposite()
Returns the parent
GanttComposite |
(package private) java.lang.String |
getParsedString() |
int |
getPercentComplete()
Returns the percentage complete of this event.
|
org.eclipse.swt.graphics.Image |
getPicture()
Returns the picture image for this event.
|
(package private) IUndoRedoCommand |
getPostMoveOrResizeUndoCommand()
Call after a move/resize is done to get the command to undo/redo the latest move/resize
|
(package private) org.eclipse.swt.graphics.Rectangle |
getPreVerticalDragBounds() |
int |
getRevisedDDateRange() |
java.util.Calendar |
getRevisedEnd()
Returns the revised end date of this event.
|
java.util.Calendar |
getRevisedStart()
Returns the revised start date of this event.
|
java.util.List |
getScopeEvents()
Returns the list of GanttEvents that the scope encompasses.
|
GanttEvent |
getScopeParent()
Returns the scope parent of this event if it has one.
|
java.util.Calendar |
getStartDate()
Returns the start date of this event.
|
org.eclipse.swt.graphics.Color |
getStatusColor()
Returns the status color of this event.
|
java.lang.String |
getTextDisplayFormat()
Returns the text display format of this event.
|
org.eclipse.swt.graphics.Font |
getTextFont()
Returns the text font to use when drawing the event text.
|
int |
getVerticalEventAlignment()
Returns the vertical alignment set.
|
int |
getVerticalTextLocation()
Returns the lcoation where the event text will be displayed vertically.
|
(package private) int |
getVisibility() |
int |
getWidth()
Returns the width of this event.
|
int |
getWidthWithText()
Returns the full right most x value if event has text or images drawn after it.
|
int |
getX()
Returns the x location of this event.
|
int |
getXEnd()
Returns the ending x location for this event.
|
int |
getY()
Returns the y location of this event.
|
(package private) boolean |
hasMovedVertically() |
(package private) boolean |
hasMovementConstraints() |
void |
hideAllChildren()
Hides all children from view.
|
boolean |
isAutomaticRowHeight()
Whether the row height is calculated automatically or if it's fixed
|
(package private) boolean |
isBoundsSet() |
boolean |
isCheckpoint()
Whether this is a checkpoint or not.
|
boolean |
isChildrenHidden()
Returns whether all children are hidden or not.
|
boolean |
isHidden()
Returns whether this event is hidden or not.
|
boolean |
isImage()
Returns whether this event is an image representation or not.
|
boolean |
isLocked()
Whether this event is locked or not.
|
boolean |
isMoveable()
Whether this event is moveable.
|
(package private) boolean |
isNameChanged() |
boolean |
isResizable()
Whether this event is resizable.
|
boolean |
isScope()
Returns whether this is a scope or not.
|
boolean |
isShowText() |
(package private) void |
moveCancelled() |
(package private) void |
moveFinished() |
(package private) void |
moveStarted(int moveType) |
void |
removeScopeEvent(GanttEvent event)
Removes event that this event encompasses as a scope.
|
void |
reparentToNewGanttSection(int index,
GanttSection newSection)
Reparents this event from the current
GanttSection to a new GanttSection |
void |
setAdvancedTooltip(AdvancedTooltip advancedTooltip)
Sets the advanced tooltip.
|
void |
setAutomaticRowHeight()
Resets the row height to be calculated automatically should the row height have been set to a specific value.
|
(package private) void |
setBounds(int x,
int y,
int width,
int height)
Sets the bounds of the event.
|
(package private) void |
setBounds(org.eclipse.swt.graphics.Rectangle bounds)
Sets the bounds of the event.
|
(package private) void |
setBoundsSet(boolean set) |
void |
setCheckpoint(boolean checkpoint)
Sets the event to be a checkpoint.
|
void |
setData(java.lang.Object data)
Sets the current data object.
|
void |
setDDayEnd(int day) |
void |
setDDayStart(int day)
Sets the D-day start value.
|
(package private) void |
setEarliestStartX(int x) |
void |
setEndDate(java.util.Calendar endDate)
Sets the end date of this event.
|
void |
setFixedRowHeight(int fixedRowHeight)
Sets the fixed row height in pixels.
|
void |
setGanttGroup(GanttGroup group)
Sets what group this event belongs to.
|
(package private) void |
setGanttSection(GanttSection ganttSection)
Sets the GanttSection that this event belongs to
|
void |
setGradientStatusColor(org.eclipse.swt.graphics.Color gradientStatusColor)
Sets the status color used as part of the gradient colors used to draw the event.
|
void |
setHidden(boolean hidden)
Sets if this event should be hidden or not.
|
(package private) void |
setHorizontalLineBottomY(int y) |
(package private) void |
setHorizontalLineTopY(int y) |
void |
setHorizontalTextLocation(int textLocation)
Sets the location of where the event text will be displayed.
|
void |
setImage(boolean image)
Sets this event to be represented by an image.
|
(package private) void |
setLatestEndX(int x) |
void |
setLocked(boolean locked)
Sets whether this event is locked or not.
|
void |
setMoveable(boolean moveable)
Sets this event to be moveable or not.
|
void |
setName(java.lang.String name)
Sets the display name of this event.
|
(package private) void |
setNameChanged(boolean changed) |
(package private) void |
setNameExtent(org.eclipse.swt.graphics.Point extent) |
void |
setNoMoveAfterDate(java.util.Calendar noMoveAfterDate)
Sets the date after which no moves or resizes are allowed.
|
void |
setNoMoveBeforeDate(java.util.Calendar noMoveBeforeDate)
Sets the date prior to which no moves or resizes are allowed.
|
void |
setNoUpdatePlannedDates(java.util.Calendar start,
java.util.Calendar end)
Will update planned dates without question or internal checks.
|
void |
setNoUpdateRevisedDates(java.util.Calendar start,
java.util.Calendar end)
Will update revised dates without question or internal checks.
|
(package private) void |
setParsedString(java.lang.String parsed) |
void |
setPercentComplete(int percentComplete)
Sets the percentage complete of this event.
|
void |
setPicture(org.eclipse.swt.graphics.Image picture)
Sets the picture image for this event.
|
void |
setResizable(boolean resizable)
Sets this event to be resizable or not.
|
void |
setRevisedDates(java.util.Calendar revisedStart,
java.util.Calendar revisedEnd,
int order)
Another utility method for setting new dates but this method enforces the usual validation.
|
void |
setRevisedEnd(java.util.Calendar revisedEnd)
Sets the revised end date of this event.
|
void |
setRevisedEnd(java.util.Calendar revisedEnd,
boolean validate)
When you need to move events manually you may run into issues as one date always has to be set before the other.
|
void |
setRevisedEnd(int dDayEnd)
Sets the revised D-day end.
|
void |
setRevisedStart(java.util.Calendar revisedStart)
Sets the revised start date of this event.
|
void |
setRevisedStart(java.util.Calendar revisedStart,
boolean validate)
When you need to move events manually you may run into issues as one date always has to be set before the other.
|
void |
setRevisedStart(int dDayStart)
Sets the revised D-day start.
|
void |
setScope(boolean scope)
Sets this event to be a scope.
|
(package private) void |
setScopeParent(GanttEvent parent) |
void |
setShowBoldText(boolean showBoldText)
Sets whether to show the display name in bold text or not.
|
void |
setShowText(boolean _showText) |
void |
setStartDate(java.util.Calendar startDate)
Sets the end date of this event.
|
void |
setStatusColor(org.eclipse.swt.graphics.Color statusColor)
Sets the status color of this event.
|
void |
setTextDisplayFormat(java.lang.String format)
Sets the text display format of this event.
|
void |
setTextFont(org.eclipse.swt.graphics.Font textFont)
Sets the text font to use when drawing the event text.
|
void |
setVerticalEventAlignment(int verticalEventAlignment)
Sets the vertical alignment for this event.
|
void |
setVerticalTextLocation(int verticalTextLocation)
Sets the vertical location where the event text will be displayed.
|
(package private) void |
setVisibility(int visibility) |
void |
setWidthWithText(int width)
Sets the full width of the event width and the text and images that come after it.
|
void |
showAllChildren()
Un-hides all children from view.
|
boolean |
showBoldText()
Whether to show the display name in bold text or not.
|
java.lang.String |
toString() |
(package private) void |
undoVerticalDragging() |
void |
update(boolean redraw)
Forces the chart to recognize that something within this event has changed and that it needs an update.
|
(package private) void |
updateActualWidth() |
(package private) void |
updateHeight(int height) |
(package private) void |
updateWidth(int width) |
(package private) void |
updateX(int x) |
(package private) void |
updateY(int y) |
(package private) boolean |
wasVerticallyMovedUp() |
getLayer, getLayerInt, setLayer
public static final int FIXED_ROW_HEIGHT_AUTOMATIC
public GanttEvent(GanttChart parent, java.lang.String name, java.util.Calendar startDate, java.util.Calendar endDate, int percentComplete)
parent
- Parent chartname
- Name of eventstartDate
- Start dateendDate
- End datepercentComplete
- Percent completepublic GanttEvent(GanttChart parent, java.lang.Object data, java.lang.String name, java.util.Calendar startDate, java.util.Calendar endDate, int percentComplete)
parent
- Parent chartdata
- Data objectname
- Name of eventstartDate
- Start dateendDate
- End datepercentComplete
- Percent completepublic GanttEvent(GanttChart parent, java.lang.String name, java.util.Calendar startDate, java.util.Calendar endDate, java.util.Calendar revisedStart, java.util.Calendar revisedEnd, int percentComplete)
parent
- Parent chartname
- Name of eventstartDate
- Start dateendDate
- End daterevisedStart
- Revised startrevisedEnd
- Revised endpercentComplete
- Percent completepublic GanttEvent(GanttChart parent, java.lang.Object data, java.lang.String name, java.util.Calendar startDate, java.util.Calendar endDate, java.util.Calendar revisedStart, java.util.Calendar revisedEnd, int percentComplete)
parent
- Parent GanttChartdata
- Data objectname
- Display namestartDate
- Start dateendDate
- End daterevisedStart
- Revised start daterevisedEnd
- Revised end datepercentComplete
- Percentage completepublic GanttEvent(GanttChart parent, int dDayStart, int dDayEnd)
parent
- Parent chartdDayStart
- D day start value (zero based)dDayEnd
- D day end value (zero based)public GanttEvent(GanttChart parent, java.lang.String name)
parent
- Chart parentname
- Name of scopepublic GanttEvent(GanttChart parent, java.lang.Object data, java.lang.String name)
parent
- Chart parentdata
- Data objectname
- Name of scopepublic GanttEvent(GanttChart parent, java.lang.String name, java.util.Calendar date)
parent
- Chart parentname
- Name of checkpointdate
- Checkpoint start (and end) datepublic GanttEvent(GanttChart parent, java.lang.Object data, java.lang.String name, java.util.Calendar date)
parent
- Chart parentdata
- Data objectname
- Name of checkpointdate
- Start (and end) datepublic GanttEvent(GanttChart parent, java.lang.String name, java.util.Calendar date, org.eclipse.swt.graphics.Image picture)
parent
- Chart parentname
- Name of imagedate
- Start (and end) datepicture
- Image to showpublic GanttEvent(GanttChart parent, java.lang.Object data, java.lang.String name, java.util.Calendar date, org.eclipse.swt.graphics.Image picture)
parent
- Chart parentdata
- Data objectname
- Name of imagedate
- Start (and end) datepicture
- Image to showpublic java.lang.Object getData()
public void setData(java.lang.Object data)
data
- Data objectpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- Display namepublic java.util.Calendar getStartDate()
public java.util.Calendar getActualStartDate()
public java.util.Calendar getActualEndDate()
public java.util.Calendar getEarliestStartDate()
public java.util.Calendar getLatestEndDate()
public void setStartDate(java.util.Calendar startDate)
startDate
- Start datepublic void update(boolean redraw)
redraw
- if to redraw the chart after notifying of changes.public java.util.Calendar getEndDate()
public void setEndDate(java.util.Calendar endDate)
endDate
- End datepublic int getPercentComplete()
public void setPercentComplete(int percentComplete)
percentComplete
- Percentage completepublic org.eclipse.swt.widgets.Menu getMenu()
void setBounds(int x, int y, int width, int height)
x
- x locationy
- y locationwidth
- width of eventheight
- height of eventvoid setBounds(org.eclipse.swt.graphics.Rectangle bounds)
bounds
- New boundsvoid updateX(int x)
void updateY(int y)
void updateHeight(int height)
void updateWidth(int width)
public boolean isCheckpoint()
public void setCheckpoint(boolean checkpoint)
checkpoint
- true if the event should be a checkpointpublic int getX()
public int getXEnd()
public int getY()
public int getBottomY()
public int getWidth()
public int getHeight()
public java.util.Calendar getRevisedStart()
public void setRevisedStart(java.util.Calendar revisedStart)
revisedStart
- public java.util.Calendar getRevisedEnd()
public void setRevisedEnd(java.util.Calendar revisedEnd)
revisedEnd
- Revised end datepublic void setRevisedStart(int dDayStart)
dDayStart
- d-day start.public void setRevisedEnd(int dDayEnd)
dDayEnd
- d-day endpublic void setRevisedStart(java.util.Calendar revisedStart, boolean validate)
revisedStart
- New revised start datevalidate
- true if to validate the date as normal, false to just set the date as is.public void setRevisedEnd(java.util.Calendar revisedEnd, boolean validate)
revisedStart
- New revised start datevalidate
- true if to validate the date as normal, false to just set the date as is.public void setRevisedDates(java.util.Calendar revisedStart, java.util.Calendar revisedEnd, int order)
revisedStart
- Revised start daterevisedEnd
- Revised end dateorder
- SWT.LEFT_TO_RIHT
or SWT.RIGHT_TO_LEFT
public boolean isLocked()
public void setLocked(boolean locked)
locked
- true if lockedpublic org.eclipse.swt.graphics.Color getGradientStatusColor()
public void setGradientStatusColor(org.eclipse.swt.graphics.Color gradientStatusColor)
gradientStatusColor
- Gradient colorpublic org.eclipse.swt.graphics.Color getStatusColor()
public void setStatusColor(org.eclipse.swt.graphics.Color statusColor)
statusColor
- Status colorpublic boolean showBoldText()
public void setShowBoldText(boolean showBoldText)
showBoldText
- Set to true if to show bold textpublic org.eclipse.swt.graphics.Rectangle getBounds()
public java.lang.String getTextDisplayFormat()
ISettings.getTextDisplayFormat()
public void setTextDisplayFormat(java.lang.String format)
ISettings.getTextDisplayFormat()
public void setScope(boolean scope)
addScopeEvent(GanttEvent)
.scope
- addScopeEvent(GanttEvent)
public boolean isScope()
public void addScopeEvent(GanttEvent event)
event
- GanttEvent to encompasspublic void removeScopeEvent(GanttEvent event)
event
- GanttEventpublic java.util.List getScopeEvents()
public GanttEvent getEarliestScopeEvent()
public GanttEvent getLatestScopeEvent()
public org.eclipse.swt.graphics.Image getPicture()
public void setPicture(org.eclipse.swt.graphics.Image picture)
picture
- Image picturepublic void setImage(boolean image)
image
- true if it's an imagepublic boolean isImage()
public GanttGroup getGanttGroup()
public void setGanttGroup(GanttGroup group)
group
- GanttGroup or null if nonepublic GanttSection getGanttSection()
GanttSection
that this event belongs to, or null if none.GanttSection
void setGanttSection(GanttSection ganttSection)
ganttSection
- public void setHidden(boolean hidden)
hidden
- true to hide event.public boolean isHidden()
public void hideAllChildren()
isHidden()
public void showAllChildren()
isHidden()
public boolean isChildrenHidden()
public int getWidthWithText()
public void setWidthWithText(int width)
width
- x widthpublic AdvancedTooltip getAdvancedTooltip()
public void setAdvancedTooltip(AdvancedTooltip advancedTooltip)
advancedTooltip
- public int getFixedRowHeight()
getFixedRowHeight
in interface IGanttChartItem
public void setFixedRowHeight(int fixedRowHeight)
setFixedRowHeight
in interface IGanttChartItem
fixedRowHeight
- Fixed row heightpublic boolean isAutomaticRowHeight()
isAutomaticRowHeight
in interface IGanttChartItem
public void setAutomaticRowHeight()
setAutomaticRowHeight
in interface IGanttChartItem
public int getVerticalEventAlignment()
SWT.TOP
, SWT.CENTER
, SWT.BOTTOM
. Default is
SWT.TOP
.public void setVerticalEventAlignment(int verticalEventAlignment)
verticalEventAlignment
- one of SWT.TOP
, SWT.CENTER
, SWT.BOTTOM
public boolean isResizable()
public void setResizable(boolean resizable)
resizable
- true to make event resizable.public boolean isMoveable()
public void setMoveable(boolean moveable)
resizable
- true to make event moveable.public java.util.Calendar getNoMoveBeforeDate()
public void setNoMoveBeforeDate(java.util.Calendar noMoveBeforeDate)
noMoveBeforeDate
- Calendar or null.public java.util.Calendar getNoMoveAfterDate()
public void setNoMoveAfterDate(java.util.Calendar noMoveAfterDate)
noMoveAfterDate
- Calendar or null.public int getHorizontalTextLocation()
public void setHorizontalTextLocation(int textLocation)
SWT.LEFT
,
SWT.CENTER
, SWT.RIGHT
. Center means the text will be drawn inside the event. Default is
SWT.RIGHT
.textLocation
- Text location, one of SWT.LEFT
, SWT.CENTER
, SWT.RIGHT
.public int getVerticalTextLocation()
SWT.CENTER
which
is right behind the event itself.public void setVerticalTextLocation(int verticalTextLocation)
SWT.TOP
,
SWT.CENTER
, SWT.BOTTOM
. Default is SWT.CENTER
.verticalTextLocation
- Vertical text locationpublic org.eclipse.swt.graphics.Font getTextFont()
public void setTextFont(org.eclipse.swt.graphics.Font textFont)
textFont
- Font or null.public void dispose()
public int getActualDDayStart()
public int getActualDDayEnd()
public int getDDayStart()
public int getDDayRevisedStart()
public int getDDayRevisedEnd()
public void setDDayStart(int day)
day
- public int getDDayEnd()
public void setDDayEnd(int day)
public int getDDateRange()
public int getRevisedDDateRange()
public org.eclipse.swt.graphics.Rectangle getActualBounds()
void calculateScope()
boolean hasMovementConstraints()
int getVisibility()
void setVisibility(int visibility)
boolean isBoundsSet()
void setBoundsSet(boolean set)
void setHorizontalLineTopY(int y)
int getHorizontalLineTopY()
int getHorizontalLineBottomY()
void setHorizontalLineBottomY(int y)
void setNameChanged(boolean changed)
boolean isNameChanged()
org.eclipse.swt.graphics.Point getNameExtent()
void setNameExtent(org.eclipse.swt.graphics.Point extent)
java.lang.String getParsedString()
void setParsedString(java.lang.String parsed)
int getDaysBetweenStartAndEnd()
void moveStarted(int moveType)
IUndoRedoCommand getPostMoveOrResizeUndoCommand()
void moveCancelled()
void moveFinished()
public GanttEvent getScopeParent()
void setScopeParent(GanttEvent parent)
void setEarliestStartX(int x)
void setLatestEndX(int x)
int getEarliestStartX()
int getLatestEndX()
int getActualWidth()
void updateActualWidth()
void flagDragging()
org.eclipse.swt.graphics.Rectangle getPreVerticalDragBounds()
void undoVerticalDragging()
boolean wasVerticallyMovedUp()
boolean hasMovedVertically()
public void reparentToNewGanttSection(int index, GanttSection newSection)
GanttSection
to a new GanttSection
index
- index to put event at in new sectionnewSection
- new section to put event inpublic java.lang.String toString()
toString
in class java.lang.Object
public GanttChart getParentChart()
GanttChart
GanttChart
public GanttComposite getParentComposite()
GanttComposite
GanttComposite
public void setNoUpdatePlannedDates(java.util.Calendar start, java.util.Calendar end)
start
- Date or nullend
- Date or nullpublic void setNoUpdateRevisedDates(java.util.Calendar start, java.util.Calendar end)
start
- Date or nullend
- Date or nullpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean isShowText()
public void setShowText(boolean _showText)
_showText
- the _showText to set