public class IlvResourceDataSet extends IlvDefaultDataSet
IlvResourceDataSet
uses an IlvReservationDataPolicy
to compute the data values for each
reservation assigned to the resource. The data set then merges and sums the
results.
For optimal performance, do not create instances of this class directly. Instead,
it is recommended to use the IlvResourceDataChart.createDataSet(IlvResource,
IlvReservationDataPolicy)
method.
labels, xValues, yValues
DEFAULT_UNDEF_VALUE
Constructor and Description |
---|
IlvResourceDataSet(IlvGanttModel ganttModel,
IlvResource resource)
Creates a dataset for the specified resource.
|
IlvResourceDataSet(IlvGanttModel ganttModel,
IlvResource resource,
IlvReservationDataPolicy dataPolicy)
Creates a dataset for the specified resource.
|
Modifier and Type | Method and Description |
---|---|
IlvGanttModel |
getGanttModel()
Returns the Gantt data model associated with this data set.
|
Object |
getProperty(Object key)
Returns the value of the given property.
|
IlvReservationDataPolicy |
getReservationDataPolicy()
Returns the strategy that the data set will use to compute the data values
for each reservation assigned to the
resource.
|
IlvResource |
getResource()
Returns the resource that this data set represents.
|
void |
setReservationDataPolicy(IlvReservationDataPolicy dataPolicy)
Sets the strategy that the data set will use to compute the data values for each
reservation assigned to the resource.
|
void |
setResource(IlvResource resource)
Sets the resource that this data set represents.
|
addData, addData, create, dataAdded, dataChanged, getDataCount, getDataLabel, getDataLabels, getXData, getXValues, getYData, getYValues, isEditable, isUsingXValues, isXValuesSorted, setData, setData, setDataLabel, setDataLabels, setXData, setXValues, setYData, setYValues, useXValues
addDataSetListener, computeLimits, computeMinimumXDifference, endBatch, fireDataAddedEvent, fireDataChangedEvent, fireDataSetContentsEvent, fireDataSetPropertyEvent, getData, getDataBetween, getDataInside, getDataInside, getMinimumXDifference, getName, getUndefValue, getXRange, getXRange, getYRange, getYRange, invalidateLimits, invalidateLimits, invalidateLimits, isBatched, isXRangeIncludingUndefinedPoints, putProperty, removeDataSetListener, setLimitsValid, setName, setUndefValue, setXRangeIncludingUndefinedPoints, startBatch, toString
public IlvResourceDataSet(IlvGanttModel ganttModel, IlvResource resource, IlvReservationDataPolicy dataPolicy)
setResource(null)
so that the dataset
is properly disconnected from the Gantt data model.
For optimal performance, it is recommended that you do not call this constructor
and create instances of this class directly. Instead, you should call the
IlvResourceDataChart.createDataSet(IlvResource, IlvReservationDataPolicy)
method. This will guarantee optimized redraw performance of the chart when attributes
of the Gantt data model change.
ganttModel
- The Gantt data model that the resource is a member of.resource
- The resource.dataPolicy
- The strategy that the data set will use to compute the data values
for each reservation assigned to the
resource.public IlvResourceDataSet(IlvGanttModel ganttModel, IlvResource resource)
IlvReservationLoadData
policy to compute the resource's loading.
For optimal performance, it is recommended that you do not call this constructor
and create instances of this class directly. Instead, you should call the
IlvResourceDataChart.createDataSet(IlvResource, IlvReservationDataPolicy)
method. This will guarantee optimized redraw performance of the chart when attributes
of the Gantt data model change.
ganttModel
- The Gantt data model that the resource is a member of.resource
- The resource.public IlvGanttModel getGanttModel()
public IlvResource getResource()
setResource(ilog.views.gantt.IlvResource)
public void setResource(IlvResource resource)
resource
- The resource or null
to disconnect the
dataset from the Gantt data model.getResource()
public IlvReservationDataPolicy getReservationDataPolicy()
setReservationDataPolicy(ilog.views.schedule.data.IlvReservationDataPolicy)
public void setReservationDataPolicy(IlvReservationDataPolicy dataPolicy)
dataPolicy
- The strategy that the data set will use to compute the
data values for each reservation assigned to
the resource.getReservationDataPolicy()
public Object getProperty(Object key)
getProperty
in interface IlvDataSet
getProperty
in class IlvAbstractDataSet
key
- The property.IlvDataSet.putProperty(java.lang.Object, java.lang.Object, boolean)
,
IlvDataSetProperty
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.