public class IlvGanttProjectConfiguration extends Object
IlvGanttProjectConfiguration
is the logical grouping
of:
Modifier and Type | Field and Description |
---|---|
static String |
GANTT_CHART_TYPE
The chart type for an activity-oriented
Gantt chart.
|
static String |
SCHEDULE_CHART_TYPE
The chart type for a resource-oriented
Schedule chart.
|
Constructor and Description |
---|
IlvGanttProjectConfiguration()
Creates a new
IlvGanttProjectConfiguration . |
Modifier and Type | Method and Description |
---|---|
void |
addStyleSheet(String ssheet)
Adds the specified style sheet to this configuration.
|
void |
addStyleSheets(String[] ssheets)
Adds the specified style sheets to this configuration.
|
void |
apply(IlvStylable chart)
Applies this configuration to the specified chart.
|
boolean |
canApply(IlvStylable chart)
Returns whether the chart type of this
configuration is compatible with the specified
chart . |
String |
getChartType()
Returns the chart type of the configuration.
|
IlvGanttDataSource |
getDataSource()
Returns the Gantt data source handled by this configuration.
|
IlvGanttModel |
getGanttModel()
Returns the Gantt data model handled by this configuration.
|
String[] |
getStyleSheets()
Returns the style sheets handled by this configuration.
|
boolean |
isSupportedChartType(String chartType)
Returns whether the specified chart type is supported by this
configuration.
|
void |
read(URL url)
Initialize this configuration from the specified URL.
|
void |
setChartType(IlvHierarchyChart chart)
Sets the chart type of the configuration based upon the specified chart.
|
void |
setChartType(String chartType)
Sets the chart type of the configuration.
|
void |
setDataSource(IlvGanttDataSource dataSource)
Sets the Gantt data source handled by this configuration.
|
void |
setGanttModel(IlvGanttModel ganttModel)
Sets the Gantt data model handled by this configuration.
|
void |
setStyleSheets(String[] ssheets)
Sets the style sheets of this configuration.
|
void |
write(URL url)
Writes this configuration to the specified output stream.
|
public static final String GANTT_CHART_TYPE
public static final String SCHEDULE_CHART_TYPE
public IlvGanttProjectConfiguration()
IlvGanttProjectConfiguration
.public boolean isSupportedChartType(String chartType)
GANTT_CHART_TYPE
and the SCHEDULE_CHART_TYPE
.chartType
- The chart type to test.true
if the chart type is supported by the
configuration, false
otherwise.public IlvGanttDataSource getDataSource()
IlvGanttDataSource
.public final void setDataSource(IlvGanttDataSource dataSource)
dataSource
- The IlvGanttDataSource
.public IlvGanttModel getGanttModel()
IlvGanttModel
.public final void setGanttModel(IlvGanttModel ganttModel)
ganttModel
- The IlvGanttModel
.public final void setStyleSheets(String[] ssheets)
ssheets
- The style sheets to add.public final String[] getStyleSheets()
public String getChartType()
public void setChartType(String chartType)
chartType
- The chart type, which must be one of the
types supported by this configuration.IllegalArgumentException
- if the chart type is not
supported by the configuration.public void setChartType(IlvHierarchyChart chart)
chart
- The chart.public final void addStyleSheet(String ssheet)
ssheet
- The style sheet to add.public final void addStyleSheets(String[] ssheets)
ssheets
- The style sheets to add.public boolean canApply(IlvStylable chart)
chart
.chart
- The chart.apply(ilog.views.util.styling.IlvStylable)
public void apply(IlvStylable chart) throws IlvStylingException
chart
- The chart.IlvStylingException
- if a problem is encountered while applying
the configuration's styling to the chart.IllegalArgumentException
- if the chart
type of the configuration is not compatible with the chart
.canApply(ilog.views.util.styling.IlvStylable)
public void read(URL url) throws IOException
url
- The URL
to read the configuration from.IOException
public void write(URL url) throws IOException
url
- The URL
to write the configuration to.IOException
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.