public class GanttGroup extends AbstractGanttEvent implements IGanttChartItem
| Modifier and Type | Field and Description |
|---|---|
static int |
FIXED_ROW_HEIGHT_AUTOMATIC |
| Constructor and Description |
|---|
GanttGroup(GanttChart parent)
Creates a new GanttGroup on the given GanttChart.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(GanttEvent event)
Adds a GanttEvent to this group.
|
boolean |
containsEvent(GanttEvent event)
Checks whether this GanttGroup contains a given GanttEvent.
|
void |
dispose()
Disposes this event from the chart.
|
java.util.List |
getEventMembers()
Returns a list of all GanttEvents contained in this group.
|
int |
getFixedRowHeight()
Returns the fixed row height of this group.
|
(package private) int |
getTallestEvent() |
int |
getVerticalEventAlignment()
Returns the vertical alignment of all events in this row.
|
boolean |
isAutomaticRowHeight()
Whether this group is on automatic row height or if the height is fixed.
|
void |
removeEvent(GanttEvent event)
Removes a GanttEvent from this group.
|
void |
setAutomaticRowHeight()
Flags this group to use automatic row height calculation.
|
void |
setFixedRowHeight(int fixedRowHeight)
Sets the fixed row height for this group.
|
void |
setVerticalEventAlignment(int vAlignment)
Sets the vertical alignment of all contained events.
|
java.lang.String |
toString() |
getLayer, getLayerInt, setLayerpublic static final int FIXED_ROW_HEIGHT_AUTOMATIC
public GanttGroup(GanttChart parent)
parent - GanttChart parentpublic void addEvent(GanttEvent event)
event - GanttEvent to add.public void removeEvent(GanttEvent event)
event - GanttEvent to remove.public boolean containsEvent(GanttEvent event)
event - GanttEvent to check if it exists in this GanttGroup.public java.util.List getEventMembers()
public int getFixedRowHeight()
getFixedRowHeight in interface IGanttChartItempublic void setFixedRowHeight(int fixedRowHeight)
setFixedRowHeight in interface IGanttChartItemfixedRowHeight - Row height in pixels.public boolean isAutomaticRowHeight()
isAutomaticRowHeight in interface IGanttChartItempublic void setAutomaticRowHeight()
setAutomaticRowHeight in interface IGanttChartItempublic int getVerticalEventAlignment()
public void setVerticalEventAlignment(int vAlignment)
vAlignment - Vertical alignment. Valid values are: SWT.TOP, SWT.CENTER, SWT.BOTTOM. Default is SWT.TOP.public void dispose()
int getTallestEvent()
public java.lang.String toString()
toString in class java.lang.Object