public class MXActivityModelProcessor extends java.lang.Object implements IMXActivityModelProcessor
Constructor and Description |
---|
MXActivityModelProcessor(MXGanttModel model) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<IMXActivity> |
activityPreorderIterator()
Returns an Iterator for all activities in the model
|
java.util.Iterator<IMXActivity> |
activityPreorderIterator(IMXActivity activity)
Returns an Iterator that iterates over this activity's descendants.
|
java.util.Iterator<IMXActivity> |
childActivityIterator(IMXActivity activity)
Returns an Iterator this this parent's children.
|
java.util.Iterator<IMXConstraint> |
constraintIterator(IMXActivity activity)
Returns an Iterator for all outgoing constraints for this activity.
|
int |
getChildActivityCount(IMXActivity activity)
Return the Child Count for this parent
|
IMXActivity |
getItemById(java.lang.String id)
Fetches Activity by ID.
|
IMXGanttModel |
getModel() |
IMXActivity |
getRootActivity()
Get the first/main activity for the model
|
public MXActivityModelProcessor(MXGanttModel model)
public IMXGanttModel getModel()
getModel
in interface IMXActivityModelProcessor
public IMXActivity getRootActivity()
IMXActivityModelProcessor
getRootActivity
in interface IMXActivityModelProcessor
public java.util.Iterator<IMXActivity> activityPreorderIterator()
IMXActivityModelProcessor
activityPreorderIterator
in interface IMXActivityModelProcessor
public java.util.Iterator<IMXActivity> activityPreorderIterator(IMXActivity activity)
IMXActivityModelProcessor
activityPreorderIterator
in interface IMXActivityModelProcessor
public java.util.Iterator<IMXActivity> childActivityIterator(IMXActivity activity)
IMXActivityModelProcessor
childActivityIterator
in interface IMXActivityModelProcessor
public int getChildActivityCount(IMXActivity activity)
IMXActivityModelProcessor
getChildActivityCount
in interface IMXActivityModelProcessor
public java.util.Iterator<IMXConstraint> constraintIterator(IMXActivity activity)
IMXActivityModelProcessor
constraintIterator
in interface IMXActivityModelProcessor
public IMXActivity getItemById(java.lang.String id)
IMXActivityModelProcessor
getItemById
in interface IMXActivityModelProcessor