public class GanttSection extends java.lang.Object implements IFillBackgroundColors
Constructor and Description |
---|
GanttSection(GanttChart parent,
java.lang.String name)
Creates a new GanttSection.
|
GanttSection(GanttChart parent,
java.lang.String name,
IFillBackgroundColors fillManager)
Creates a new GanttSection with a fill manager that controls background colors.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addDNDGanttEvent(GanttEvent ge) |
void |
addGanttEvent(IGanttChartItem event)
Adds a Gantt Chart item (GanttSection, GanttGroup) to this section.
|
void |
addGanttEvent(int index,
IGanttChartItem event)
Adds a Gantt Chart item at the given index.
|
(package private) void |
clearDNDGanttEvents() |
void |
dispose()
Removes this section from the chart.
|
org.eclipse.swt.graphics.Image |
getAdditionalImage() |
org.eclipse.swt.graphics.Rectangle |
getBounds()
Returns the bounds of this GanttSection
|
java.lang.Object |
getData()
Returns the currently set data object.
|
(package private) java.util.List |
getDNDGanttEvents() |
java.util.List |
getEvents()
Returns a list of all IGanttChartItems (GanttEvent and GanttGroup) contained in this section.
|
(package private) int |
getEventsHeight(ISettings settings) |
org.eclipse.swt.graphics.Color |
getHolidayBackgroundColorBottom()
The bottom background gradient color used for drawing the holiday column.
|
org.eclipse.swt.graphics.Color |
getHolidayBackgroundColorTop()
The top background gradient color used for drawing the holiday column.
|
java.lang.String |
getName()
Returns the name of this section.
|
(package private) org.eclipse.swt.graphics.Point |
getNameExtent() |
(package private) org.eclipse.swt.graphics.Image |
getNameImage() |
GanttComposite |
getParentComposite()
Returns the parent
GanttComposite |
org.eclipse.swt.graphics.Color |
getSaturdayBackgroundColorBottom()
The bottom background gradient color used for drawing the Saturday column.
|
org.eclipse.swt.graphics.Color |
getSaturdayBackgroundColorTop()
The top background gradient color used for drawing the Saturday column.
|
org.eclipse.swt.graphics.Color |
getSelectedDayColorBottom()
The bottom background gradient color used for drawing selected columns.
|
org.eclipse.swt.graphics.Color |
getSelectedDayColorTop()
The top background gradient color used for drawing selected columns.
|
org.eclipse.swt.graphics.Color |
getSelectedDayHeaderColorBottom()
The bottom background gradient color used for drawing selected columns in the header section.
|
org.eclipse.swt.graphics.Color |
getSelectedDayHeaderColorTop()
The top background gradient color used for drawing selected columns in the header section.
|
org.eclipse.swt.graphics.Color |
getSundayBackgroundColorBottom()
The bottom background gradient color used for drawing the Sunday column.
|
org.eclipse.swt.graphics.Color |
getSundayBackgroundColorTop()
The top background gradient color used for drawing the Sunday column.
|
int |
getTextOrientation()
Returns the text orientation of the section.
|
org.eclipse.swt.graphics.Color |
getWeekdayBackgroundColorBottom()
The bottom background gradient color used for drawing the weekday column.
|
org.eclipse.swt.graphics.Color |
getWeekdayBackgroundColorTop()
The top background gradient color used for drawing the weekday column.
|
(package private) boolean |
isInheritBackgroud()
Deprecated.
IN PROGRESS
|
(package private) boolean |
needsNameUpdate() |
void |
removeGanttEvent(IGanttChartItem event)
Removes a Gantt Chart item (GanttSection, GanttGroup) from this section.
|
void |
setAdditionalImage(org.eclipse.swt.graphics.Image _additionalImage) |
(package private) void |
setBounds(org.eclipse.swt.graphics.Rectangle bounds) |
void |
setData(java.lang.Object data)
Sets the current data object.
|
void |
setHolidayBackgroundColorBottom(org.eclipse.swt.graphics.Color holidayBackgroundColorBottom) |
void |
setHolidayBackgroundColorTop(org.eclipse.swt.graphics.Color holidayBackgroundColorTop) |
(package private) void |
setInheritBackgroud(boolean inheritBackgroud)
Deprecated.
IN PROGRESS
|
void |
setName(java.lang.String name)
Sets the name of this section.
|
(package private) void |
setNameExtent(org.eclipse.swt.graphics.Point extent) |
(package private) void |
setNameImage(org.eclipse.swt.graphics.Image nameImage) |
(package private) void |
setNeedsNameUpdate(boolean need) |
void |
setSaturdayBackgroundColorBottom(org.eclipse.swt.graphics.Color saturdayBackgroundColorBottom) |
void |
setSaturdayBackgroundColorTop(org.eclipse.swt.graphics.Color saturdayBackgroundColorTop) |
void |
setSelectedBackgroundColorBottom(org.eclipse.swt.graphics.Color selectedBackgroundColorBottom) |
void |
setSelectedBackgroundColorTop(org.eclipse.swt.graphics.Color selectedBackgroundColorTop) |
void |
setSelectedBackgroundHeaderColorBottom(org.eclipse.swt.graphics.Color selectedBackgroundHeaderColorBottom) |
void |
setSelectedBackgroundHeaderColorTop(org.eclipse.swt.graphics.Color selectedBackgroundHeaderColorTop) |
void |
setSundayBackgroundColorBottom(org.eclipse.swt.graphics.Color sundayBackgroundColorBottom) |
void |
setSundayBackgroundColorTop(org.eclipse.swt.graphics.Color sundayBackgroundColorTop) |
void |
setTextOrientation(int textOrientation)
Sets the text orientation of the section.
|
void |
setWeekdayBackgroundColorBottom(org.eclipse.swt.graphics.Color weekdayBackgroundColorBottom) |
void |
setWeekdayBackgroundColorTop(org.eclipse.swt.graphics.Color weekdayBackgroundColorTop) |
java.lang.String |
toString() |
public GanttSection(GanttChart parent, java.lang.String name)
parent
- GanttChartname
- GanttSection namepublic GanttSection(GanttChart parent, java.lang.String name, IFillBackgroundColors fillManager)
parent
- GanttChartname
- GanttSection namefillManager
- Fill managerpublic void addGanttEvent(IGanttChartItem event)
event
- Item to addpublic void addGanttEvent(int index, IGanttChartItem event)
index
- Index to add item atevent
- Item to addpublic void removeGanttEvent(IGanttChartItem event)
event
- Item to removepublic org.eclipse.swt.graphics.Image getAdditionalImage()
public void setAdditionalImage(org.eclipse.swt.graphics.Image _additionalImage)
_additionalImage
- the additional image to setpublic java.util.List getEvents()
public java.lang.Object getData()
public void setData(java.lang.Object data)
data
- Data objectpublic void setName(java.lang.String name)
name
- GanttSection namepublic java.lang.String getName()
public org.eclipse.swt.graphics.Rectangle getBounds()
public org.eclipse.swt.graphics.Color getSaturdayBackgroundColorBottom()
IFillBackgroundColors
getSaturdayBackgroundColorBottom
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getSaturdayBackgroundColorTop()
IFillBackgroundColors
getSaturdayBackgroundColorTop
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getSundayBackgroundColorBottom()
IFillBackgroundColors
getSundayBackgroundColorBottom
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getSundayBackgroundColorTop()
IFillBackgroundColors
getSundayBackgroundColorTop
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getHolidayBackgroundColorBottom()
IFillBackgroundColors
getHolidayBackgroundColorBottom
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getHolidayBackgroundColorTop()
IFillBackgroundColors
getHolidayBackgroundColorTop
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getWeekdayBackgroundColorBottom()
IFillBackgroundColors
getWeekdayBackgroundColorBottom
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getWeekdayBackgroundColorTop()
IFillBackgroundColors
getWeekdayBackgroundColorTop
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getSelectedDayColorBottom()
IFillBackgroundColors
getSelectedDayColorBottom
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getSelectedDayColorTop()
IFillBackgroundColors
getSelectedDayColorTop
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getSelectedDayHeaderColorBottom()
IFillBackgroundColors
getSelectedDayHeaderColorBottom
in interface IFillBackgroundColors
public org.eclipse.swt.graphics.Color getSelectedDayHeaderColorTop()
IFillBackgroundColors
getSelectedDayHeaderColorTop
in interface IFillBackgroundColors
public void setSaturdayBackgroundColorTop(org.eclipse.swt.graphics.Color saturdayBackgroundColorTop)
public void setSaturdayBackgroundColorBottom(org.eclipse.swt.graphics.Color saturdayBackgroundColorBottom)
public void setSundayBackgroundColorTop(org.eclipse.swt.graphics.Color sundayBackgroundColorTop)
public void setSundayBackgroundColorBottom(org.eclipse.swt.graphics.Color sundayBackgroundColorBottom)
public void setHolidayBackgroundColorTop(org.eclipse.swt.graphics.Color holidayBackgroundColorTop)
public void setHolidayBackgroundColorBottom(org.eclipse.swt.graphics.Color holidayBackgroundColorBottom)
public void setWeekdayBackgroundColorTop(org.eclipse.swt.graphics.Color weekdayBackgroundColorTop)
public void setWeekdayBackgroundColorBottom(org.eclipse.swt.graphics.Color weekdayBackgroundColorBottom)
public void setSelectedBackgroundColorTop(org.eclipse.swt.graphics.Color selectedBackgroundColorTop)
public void setSelectedBackgroundColorBottom(org.eclipse.swt.graphics.Color selectedBackgroundColorBottom)
public void setSelectedBackgroundHeaderColorTop(org.eclipse.swt.graphics.Color selectedBackgroundHeaderColorTop)
public void setSelectedBackgroundHeaderColorBottom(org.eclipse.swt.graphics.Color selectedBackgroundHeaderColorBottom)
public int getTextOrientation()
public void setTextOrientation(int textOrientation)
textOrientation
- SWT.VERTICAL or SWT.HORIZONTALboolean isInheritBackgroud()
void setInheritBackgroud(boolean inheritBackgroud)
inheritBackgroud
- true to inherit. Default is false.public GanttComposite getParentComposite()
GanttComposite
GanttComposite
public void dispose()
org.eclipse.swt.graphics.Point getNameExtent()
void setNameExtent(org.eclipse.swt.graphics.Point extent)
void setBounds(org.eclipse.swt.graphics.Rectangle bounds)
org.eclipse.swt.graphics.Image getNameImage()
void setNameImage(org.eclipse.swt.graphics.Image nameImage)
boolean needsNameUpdate()
void setNeedsNameUpdate(boolean need)
int getEventsHeight(ISettings settings)
void addDNDGanttEvent(GanttEvent ge)
void clearDNDGanttEvents()
java.util.List getDNDGanttEvents()
public java.lang.String toString()
toString
in class java.lang.Object