IGanttChartItem
public class GanttGroup extends java.lang.Object implements IGanttChartItem
Modifier and Type | Field | Description |
---|---|---|
static int |
FIXED_ROW_HEIGHT_AUTOMATIC |
Constructor | Description |
---|---|
GanttGroup(GanttChart parent) |
Creates a new GanttGroup on the given GanttChart.
|
Modifier and Type | Method | 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.
|
int |
getLayer() |
Returns the layer of this event.
|
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 |
setLayer(int layer) |
Sets the layer of this event.
|
void |
setVerticalEventAlignment(int vAlignment) |
Sets the vertical alignment of all contained events.
|
java.lang.String |
toString() |
public 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 IGanttChartItem
public void setFixedRowHeight(int fixedRowHeight)
setFixedRowHeight
in interface IGanttChartItem
fixedRowHeight
- Row height in pixels.public boolean isAutomaticRowHeight()
isAutomaticRowHeight
in interface IGanttChartItem
public void setAutomaticRowHeight()
setAutomaticRowHeight
in interface IGanttChartItem
public 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()
public java.lang.String toString()
toString
in class java.lang.Object
public int getLayer()
public void setLayer(int layer)
layer
- What layer this item belongs to.GanttComposite.hideLayer(int)
,
GanttComposite.showLayer(int)
,
GanttComposite.setLayerOpacity(int, int)