IFillBackgroundColorspublic class GanttSection extends java.lang.Object implements IFillBackgroundColors
| Constructor | 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 | Description |
|---|---|---|
void |
addGanttEvent(int index,
IGanttChartItem event) |
Adds a Gantt Chart item at the given index.
|
void |
addGanttEvent(IGanttChartItem event) |
Adds a Gantt Chart item (GanttSection, GanttGroup) to this section.
|
void |
dispose() |
Removes this section from the chart.
|
org.eclipse.swt.graphics.Rectangle |
getBounds() |
Returns the bounds of this GanttSection
|
java.lang.Object |
getData() |
Returns the currently set data object.
|
java.util.List |
getEvents() |
Returns a list of all IGanttChartItems (GanttEvent and GanttGroup) contained in this section.
|
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.
|
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.
|
void |
removeGanttEvent(IGanttChartItem event) |
Removes a Gantt Chart item (GanttSection, GanttGroup) from this section.
|
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) |
|
void |
setName(java.lang.String name) |
Sets the name of this section.
|
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 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()
IFillBackgroundColorsgetSaturdayBackgroundColorBottom in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getSaturdayBackgroundColorTop()
IFillBackgroundColorsgetSaturdayBackgroundColorTop in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getSundayBackgroundColorBottom()
IFillBackgroundColorsgetSundayBackgroundColorBottom in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getSundayBackgroundColorTop()
IFillBackgroundColorsgetSundayBackgroundColorTop in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getHolidayBackgroundColorBottom()
IFillBackgroundColorsgetHolidayBackgroundColorBottom in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getHolidayBackgroundColorTop()
IFillBackgroundColorsgetHolidayBackgroundColorTop in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getWeekdayBackgroundColorBottom()
IFillBackgroundColorsgetWeekdayBackgroundColorBottom in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getWeekdayBackgroundColorTop()
IFillBackgroundColorsgetWeekdayBackgroundColorTop in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getSelectedDayColorBottom()
IFillBackgroundColorsgetSelectedDayColorBottom in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getSelectedDayColorTop()
IFillBackgroundColorsgetSelectedDayColorTop in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getSelectedDayHeaderColorBottom()
IFillBackgroundColorsgetSelectedDayHeaderColorBottom in interface IFillBackgroundColorspublic org.eclipse.swt.graphics.Color getSelectedDayHeaderColorTop()
IFillBackgroundColorsgetSelectedDayHeaderColorTop in interface IFillBackgroundColorspublic 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.HORIZONTALpublic GanttComposite getParentComposite()
GanttCompositeGanttCompositepublic void dispose()
public java.lang.String toString()
toString in class java.lang.Object