public class DispatchUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FONT_COLOR |
static java.lang.String |
RENDERED_COLOR |
Constructor and Description |
---|
DispatchUtil(DispatchViewBean bean) |
Modifier and Type | Method and Description |
---|---|
void |
fixupModel(MXGanttModel theModel)
Set the colors on each crew and labor resource to be one of the colors from the predefined color table
|
java.util.List<java.lang.String> |
getColormap() |
java.util.List<java.lang.String> |
getFontcolormap() |
MXTravelTimeConstraint |
getTravelTimeConstraintForToActivity(MXGanttModel theModel,
ilog.views.gantt.IlvActivity activity)
returns the 'TO' constraint for the passed in activity
|
java.lang.String |
getViewerProperty(java.lang.String propertyName,
java.lang.String string) |
static boolean |
isLaborOrCrew(MXResource mxresource)
returns true if the resource is a labor or crew type resource.
|
void |
updateResources(ilog.views.gantt.IlvGanttModel newModel,
ilog.views.gantt.IlvGanttModel existingModel)
functions updates the current model with the contents of the newModel.
|
public static final java.lang.String RENDERED_COLOR
public static final java.lang.String FONT_COLOR
public DispatchUtil(DispatchViewBean bean) throws java.io.IOException, MXException
java.io.IOException
MXException
public java.lang.String getViewerProperty(java.lang.String propertyName, java.lang.String string)
public void fixupModel(MXGanttModel theModel)
public java.util.List<java.lang.String> getFontcolormap()
public java.util.List<java.lang.String> getColormap()
public MXTravelTimeConstraint getTravelTimeConstraintForToActivity(MXGanttModel theModel, ilog.views.gantt.IlvActivity activity)
public void updateResources(ilog.views.gantt.IlvGanttModel newModel, ilog.views.gantt.IlvGanttModel existingModel)
newModel
- public static boolean isLaborOrCrew(MXResource mxresource)
mxresource
-