org.openbp.cockpit.modeler.figures.process
Interface ProcessElementContainer

All Superinterfaces:
java.lang.Cloneable, CH.ifa.draw.framework.Figure, InteractionClient, java.io.Serializable, CH.ifa.draw.util.Storable, UpdatableFigure, VisualElement
All Known Implementing Classes:
DecisionNodeFigure, FinalNodeFigure, FlowConnection, ForkNodeFigure, InitialNodeFigure, JoinNodeFigure, MergeNodeFigure, MultiSocketNodeFigure, NodeFigure, ParamConnection, ParamFigure, PlaceholderNodeFigure, PrimitiveNodeFigure, ProcessDrawing, ProcessVariableConnection, ProcessVariableFigure, SocketFigure, TextElementFigure, WaitStateNodeFigure, WorkflowEndNodeFigure, WorkflowNodeFigure

public interface ProcessElementContainer
extends VisualElement, UpdatableFigure

This interface is implemented by all figures which represent an OpenBP process element (nodes, sockets etc\.).

Author:
Stephan Moritz

Field Summary
 
Fields inherited from interface org.openbp.cockpit.modeler.figures.VisualElement
VISUAL_DISPLAY_ALL, VISUAL_DND_PARTICIPANT, VISUAL_VISIBLE
 
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
 
Method Summary
 ProcessElementContainer findProcessElementContainer(int x, int y)
          Gets the direct child element at the given coordinates.
 ProcessElementContainer findProcessElementContainerInside(int x, int y)
          Gets the innermost child at the given coordinates.
 ProcessObject getProcessElement()
          Returns the contained process element.
 ProcessObject getReferredProcessElement()
          Returns the process element this figure refers to.
 CH.ifa.draw.framework.Figure selectionOnDelete()
          Returns the figure that should be selected after this figure has been deleted.
 
Methods inherited from interface org.openbp.cockpit.modeler.figures.VisualElement
findVisualElement, findVisualElementInside, getDrawing, getParentElement, getPresentationFigure, handleEvent, isVisible, setDrawing, setVisible, updatePresentationFigure
 
Methods inherited from interface CH.ifa.draw.framework.Figure
addFigureChangeListener, addToContainer, basicDisplayBox, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, displayBox, draw, figures, findFigureInside, getAttribute, getZValue, handles, includes, invalidate, isEmpty, listener, moveBy, release, removeFigureChangeListener, removeFromContainer, setAttribute, setZValue, size, willChange
 
Methods inherited from interface CH.ifa.draw.util.Storable
read, write
 
Methods inherited from interface org.openbp.jaspira.gui.interaction.InteractionClient
dragActionTriggered, dragEnded, dragStarted, getAllDropRegions, getAllImportersAt, getDropRegions, getImportersAt, getSubClients, importData
 
Methods inherited from interface org.openbp.cockpit.modeler.figures.generic.UpdatableFigure
updateFigure
 

Method Detail

getProcessElement

ProcessObject getProcessElement()
Returns the contained process element.


getReferredProcessElement

ProcessObject getReferredProcessElement()
Returns the process element this figure refers to. The returned element will be used for property browser and tool tip display. This is usually the same as returned by getProcessElement(), however this might be different also for example for sockets of initial/final nodes sockets, which will return their parent node.


selectionOnDelete

CH.ifa.draw.framework.Figure selectionOnDelete()
Returns the figure that should be selected after this figure has been deleted.

Returns:
Next figure to be selected or null

findProcessElementContainer

ProcessElementContainer findProcessElementContainer(int x,
                                                    int y)
Gets the direct child element at the given coordinates.

Parameters:
x - Document coordinate
y - Document coordinate
Returns:
The child element or null if no such child exists

findProcessElementContainerInside

ProcessElementContainer findProcessElementContainerInside(int x,
                                                          int y)
Gets the innermost child at the given coordinates.

Parameters:
x - Document coordinate
y - Document coordinate
Returns:
The child element or this if the point is in this element itself or null otherwise


Copyright © 2011. All Rights Reserved.