Class FindPositionVisitor
- java.lang.Object
-
- de.xima.fc.common.tree.TreeVisit.ITreeVisitor.Pathless<Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble>>
-
- de.xima.fc.workflow.converter.bpmn.FindPositionVisitor
-
- All Implemented Interfaces:
TreeVisit.ITreeVisitor<Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble>>
public final class FindPositionVisitor extends TreeVisit.ITreeVisitor.Pathless<Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.xima.fc.common.tree.TreeVisit.ITreeVisitor
TreeVisit.ITreeVisitor.Pathless<Node>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TreeVisit.ETreeVisitResult
enter(Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble> positioned)
Enters a tree node.protected boolean
exit(Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble> positioned)
Exists a tree node.static Positioned<IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble>
resolvePositionOfItemByValue(IWorkflowBpmnAlignmentItem<?,?> item, Object value)
static <T> Positioned<IWorkflowBpmnAlignmentItem<T,?>,Point2DDouble>
resolvePositionOfItemByValue(IWorkflowBpmnAlignmentItem<?,?> item, Object value, Class<T> type)
protected boolean
visit(Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble> positioned)
Visits a tree node.-
Methods inherited from class de.xima.fc.common.tree.TreeVisit.ITreeVisitor.Pathless
enter, exit, visit
-
-
-
-
Method Detail
-
enter
public TreeVisit.ETreeVisitResult enter(Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble> positioned)
Description copied from class:TreeVisit.ITreeVisitor.Pathless
Enters a tree node. This is called when the node is first reached, before any visitor methods are called on child nodes. SeeTreeVisit
for an example of the call order.- Overrides:
enter
in classTreeVisit.ITreeVisitor.Pathless<Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble>>
- Parameters:
positioned
- A tree node.- Returns:
- How to proceed with the tree visit.
-
exit
protected boolean exit(Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble> positioned)
Description copied from class:TreeVisit.ITreeVisitor.Pathless
Exists a tree node. This is called at the end, after all children were visited. No more visitor methods will be called on any children of the node. SeeTreeVisit
for an example of the call order.- Overrides:
exit
in classTreeVisit.ITreeVisitor.Pathless<Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble>>
- Parameters:
positioned
- A tree node.- Returns:
true
to continue with the tree visit,false
to exit the visit (seeTreeVisit.ETreeVisitResult.QUIT
).
-
visit
protected boolean visit(Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble> positioned)
Description copied from class:TreeVisit.ITreeVisitor.Pathless
Visits a tree node. This is called betweenenter
andexit
. SeeTreeVisit
for an example of the call order.- Overrides:
visit
in classTreeVisit.ITreeVisitor.Pathless<Positioned<? extends IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble>>
- Parameters:
positioned
- A tree node.- Returns:
true
to continue with the tree visit,false
to exit the visit (seeTreeVisit.ETreeVisitResult.QUIT
).
-
resolvePositionOfItemByValue
public static <T> Positioned<IWorkflowBpmnAlignmentItem<T,?>,Point2DDouble> resolvePositionOfItemByValue(IWorkflowBpmnAlignmentItem<?,?> item, Object value, Class<T> type)
-
resolvePositionOfItemByValue
public static Positioned<IWorkflowBpmnAlignmentItem<?,?>,Point2DDouble> resolvePositionOfItemByValue(IWorkflowBpmnAlignmentItem<?,?> item, Object value)
-
-