GanttChartColumn

Inheritance: java.lang.Object, com.aspose.tasks.ViewColumn

public final class GanttChartColumn extends ViewColumn

Project’s view class

Constructors

ConstructorDescription
GanttChartColumn(String name, int width, TaskToColumnTextConverter converter, int field)Initializes a new instance of the GanttChartColumn class.
GanttChartColumn(String name, int width, TaskToColumnTextConverter converter)Initializes a new instance of the GanttChartColumn class.
GanttChartColumn(int width, int field)Initializes a new instance of the GanttChartColumn class.
GanttChartColumn(String name, int width, int field)Initializes a new instance of the GanttChartColumn class.

Methods

MethodDescription
getColumnText(Task task)Converts current task to the column text.
getField()Returns column field.
setField(int value)Sets column field.

GanttChartColumn(String name, int width, TaskToColumnTextConverter converter, int field)

public GanttChartColumn(String name, int width, TaskToColumnTextConverter converter, int field)

Initializes a new instance of the GanttChartColumn class.

Parameters:

ParameterTypeDescription
namejava.lang.StringColumn’s name.
widthintColumn’s width in pixels.
converterTaskToColumnTextConverterTask data to column text converter.
fieldintColumn field.

GanttChartColumn(String name, int width, TaskToColumnTextConverter converter)

public GanttChartColumn(String name, int width, TaskToColumnTextConverter converter)

Initializes a new instance of the GanttChartColumn class.

Parameters:

ParameterTypeDescription
namejava.lang.StringColumn’s name.
widthintColumn’s width in pixels.
converterTaskToColumnTextConverterTask data to column text converter.

GanttChartColumn(int width, int field)

public GanttChartColumn(int width, int field)

Initializes a new instance of the GanttChartColumn class.

Parameters:

ParameterTypeDescription
widthintColumn width in pixels.
fieldintColumn field.

GanttChartColumn(String name, int width, int field)

public GanttChartColumn(String name, int width, int field)

Initializes a new instance of the GanttChartColumn class.

Parameters:

ParameterTypeDescription
namejava.lang.StringColumn name.
widthintColumn width in pixels.
fieldintColumn field.

getColumnText(Task task)

public final String getColumnText(Task task)

Converts current task to the column text.

Parameters:

ParameterTypeDescription
taskTaskCurrent task.

Returns: java.lang.String - The column text.

getField()

public int getField()

Returns column field. Field.

Returns: int - column field value.

setField(int value)

public void setField(int value)

Sets column field.

Parameters:

ParameterTypeDescription
valueintcolumn field value.