|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCH.ifa.draw.standard.AbstractFigure
CH.ifa.draw.standard.CompositeFigure
org.openbp.cockpit.modeler.figures.tag.AbstractTagFigure
org.openbp.cockpit.modeler.figures.tag.HorizontalRotatingTagFigure
org.openbp.cockpit.modeler.figures.process.SocketFigure
public class SocketFigure
Socket figure.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.openbp.cockpit.modeler.figures.tag.AbstractTagFigure |
|---|
AbstractTagFigure.TagContent |
| Field Summary | |
|---|---|
static java.lang.String |
REGION_COLOR
Drop region id for color region |
static java.lang.String |
REGION_PARAM_BY_TYPE
Drop region id for param by type region |
static java.lang.String |
REGION_PARAM_BY_VARIABLE
Drop region id for param by other param region |
protected NodeSocket |
socket
Socket represented by this tag |
| Fields inherited from class org.openbp.cockpit.modeler.figures.tag.AbstractTagFigure |
|---|
angle, content, CONTENT_DATA, CONTENT_FLOW, CONTENT_ICON, CONTENT_INTERACTION, CONTENT_STATIC, CONTENT_TEXT, CONTENT_USER1, CONTENT_USER2, contentState, currentContentState, DECO_TAGCONTENTTYPE, layouter, origin, parent, presentationFigure, shadowFigure, visualStatus |
| Fields inherited from class CH.ifa.draw.standard.CompositeFigure |
|---|
_nHighestZ, _nLowestZ, fFigures |
| 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 |
| Constructor Summary | |
|---|---|
SocketFigure(NodeFigure parent,
NodeSocket socket)
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
acceptsTyping()
|
void |
addFlowConnection(FlowConnection connection)
Adds a flow connection. |
ParamFigure |
addParam(NodeParam param,
int pos)
Adds a figure for the given param to the socket figure. |
void |
applyContentState()
Override that applies for hiding standard in/out names. |
void |
basicSetAngle(double angle)
Sets the angle to the given one. |
boolean |
canConnect()
|
void |
connect(CH.ifa.draw.framework.Figure connectedFigure)
|
CH.ifa.draw.framework.Connector |
connectorAt(int x,
int y)
|
boolean |
containsPoint(int x,
int y)
|
void |
decodeGeometry()
|
protected void |
decodeParameter(java.lang.String parameter)
|
void |
disconnect(CH.ifa.draw.framework.Figure disconnectFigure)
|
void |
dragEnded(java.awt.datatransfer.Transferable transferable)
called when a dragging has ended. |
void |
dragStarted(java.awt.datatransfer.Transferable transferable)
Called when a dragging has been started. |
void |
encodeGeometry()
Stores geometric information in the socket object. |
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. |
java.awt.Color |
getDefaultFillColor()
Gets the default fill color. |
java.util.List |
getDropRegions(java.util.List flavors,
java.awt.datatransfer.Transferable data,
java.awt.event.MouseEvent mouseEvent)
Returns a list of drop regions of this client that are compatible with the provided data flavors. |
java.util.List |
getFlowConnections()
Gets the list of all flow connections to / from this point. |
java.awt.Font |
getFont()
|
java.util.List |
getImportersAt(java.awt.Point p)
Returns all importers which will be accepted at the given point by this client. |
NodeSocket |
getNodeSocket()
Gets the socket represented by this tag. |
java.util.List |
getParamList()
Gets the list of all param figures contained in this tag. |
java.awt.Rectangle[] |
getParamRegions()
Returns an array of Rectangles containing the coordinates of the regions between the parameters. |
ProcessObject |
getProcessElement()
Returns the contained process element. |
ProcessObject |
getReferredProcessElement()
Returns the process element this figure refers to. |
java.lang.String |
getText()
|
boolean |
handleEvent(VisualElementEvent event)
Handler method that is called for handling events. |
boolean |
importData(java.lang.Object regionId,
java.awt.datatransfer.Transferable data,
java.awt.Point p)
Imports the given transferable into the given region. |
protected void |
initContent(java.lang.Object modelObject)
Creates the content of this tag. |
boolean |
isEntrySocket()
Determines if this socket figure represents an entry socket. |
void |
moveParameter(int oldIndex,
int newIndex)
Moves the parameter with the given index so that it assumes the new index. |
int |
overlayColumns()
|
void |
reinitParams(boolean showAllParams)
Reinitializes the parameter list of the socket. |
void |
release()
|
protected void |
removeConnections()
Removes all connections from/to this figure. |
void |
removeFlowConnection(FlowConnection connection)
Removes a flow connection. |
void |
removeParam(ParamFigure paramFigure)
Removes the parameter from this socket. |
CH.ifa.draw.framework.Figure |
selectionOnDelete()
select node on deletion. |
void |
setText(java.lang.String newText)
|
java.awt.Rectangle |
textDisplayBox()
|
java.lang.String |
toString()
Returns a string representation of this object. |
void |
updatePresentationFigure()
Updates (reinitializes) the presentation figure. |
| Methods inherited from class org.openbp.cockpit.modeler.figures.tag.HorizontalRotatingTagFigure |
|---|
initTagLayouter, positionDisplayBox |
| Methods inherited from class CH.ifa.draw.standard.CompositeFigure |
|---|
add, addAll, addAll, bringToFront, draw, figureAt, figureChanged, figureCount, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, figures, figures, figuresReverse, findFigure, findFigure, findFigureInsideWithout, findFigureWithout, getFigureFromLayer, getLayer, includes, init, orphan, orphanAll, orphanAll, remove, removeAll, removeAll, removeAll, replace, sendToBack, sendToLayer |
| Methods inherited from class CH.ifa.draw.standard.AbstractFigure |
|---|
addFigureChangeListener, addToContainer, center, clone, connectedTextLocator, connectionInsets, connectorVisibility, decompose, displayBox, displayBox, getAttribute, getZValue, isEmpty, listener, moveBy, removeFigureChangeListener, removeFromContainer, setAttribute, setZValue, size, willChange |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openbp.cockpit.modeler.figures.VisualElement |
|---|
findVisualElement, findVisualElementInside, getDrawing, getParentElement, getPresentationFigure, isVisible, setDrawing, setVisible |
| Methods inherited from interface CH.ifa.draw.framework.Figure |
|---|
addFigureChangeListener, addToContainer, basicDisplayBox, center, changed, clone, connectedTextLocator, connectionInsets, connectorVisibility, decompose, displayBox, displayBox, displayBox, draw, figures, findFigureInside, getAttribute, getZValue, handles, includes, invalidate, isEmpty, listener, moveBy, 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, getAllDropRegions, getAllImportersAt, getSubClients |
| Methods inherited from interface org.openbp.cockpit.modeler.figures.generic.UpdatableFigure |
|---|
updateFigure |
| Methods inherited from interface org.openbp.cockpit.modeler.figures.generic.Colorizable |
|---|
getFillColor, setFillColor |
| Methods inherited from interface CH.ifa.draw.framework.FigureChangeListener |
|---|
figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate |
| Field Detail |
|---|
public static final java.lang.String REGION_COLOR
public static final java.lang.String REGION_PARAM_BY_TYPE
public static final java.lang.String REGION_PARAM_BY_VARIABLE
protected NodeSocket socket
| Constructor Detail |
|---|
public SocketFigure(NodeFigure parent,
NodeSocket socket)
parent - Parent node figuresocket - Socket the figure refers to| Method Detail |
|---|
protected void initContent(java.lang.Object modelObject)
initContent in class AbstractTagFiguremodelObject - Model object this tag represents or nullpublic void reinitParams(boolean showAllParams)
showAllParams - true: Show visible and hidden parameterspublic void applyContentState()
applyContentState in class AbstractTagFigurepublic java.lang.String toString()
toString in class java.lang.Objectpublic NodeSocket getNodeSocket()
public boolean isEntrySocket()
public java.util.List getFlowConnections()
public void addFlowConnection(FlowConnection connection)
connection - Connection to addpublic void removeFlowConnection(FlowConnection connection)
connection - Connection to removepublic java.util.List getParamList()
public ParamFigure addParam(NodeParam param,
int pos)
param - Param to addpos - Position to add the parameter at (starting with 1) or -1 to add it to the end of the parameter list
public void removeParam(ParamFigure paramFigure)
paramFigure - Parameter to remove
public void moveParameter(int oldIndex,
int newIndex)
protected void removeConnections()
public void basicSetAngle(double angle)
AbstractTagFigure
basicSetAngle in class AbstractTagFigure
public CH.ifa.draw.framework.Connector connectorAt(int x,
int y)
connectorAt in interface CH.ifa.draw.framework.FigureconnectorAt in class AbstractTagFigureAbstractFigure.connectorAt(int x, int y)public boolean canConnect()
canConnect in interface CH.ifa.draw.framework.FigurecanConnect in class AbstractTagFigureFigure.canConnect()
public boolean containsPoint(int x,
int y)
containsPoint in interface CH.ifa.draw.framework.FigurecontainsPoint in class AbstractTagFigureFigure.containsPoint(int, int)public void release()
release in interface CH.ifa.draw.framework.Figurerelease in class CH.ifa.draw.standard.CompositeFigureFigure.release()public void decodeGeometry()
protected void decodeParameter(java.lang.String parameter)
public void encodeGeometry()
public ProcessObject getProcessElement()
ProcessElementContainer
getProcessElement in interface ProcessElementContainerProcessElementContainer.getProcessElement()public ProcessObject getReferredProcessElement()
ProcessElementContainerProcessElementContainer.getProcessElement(), however this
might be different also for example for sockets of initial/final nodes sockets, which will return
their parent node.
getReferredProcessElement in interface ProcessElementContainerProcessElementContainer.getReferredProcessElement()public CH.ifa.draw.framework.Figure selectionOnDelete()
selectionOnDelete in interface ProcessElementContainerProcessElementContainer.selectionOnDelete()
public ProcessElementContainer findProcessElementContainer(int x,
int y)
ProcessElementContainer
findProcessElementContainer in interface ProcessElementContainerx - Document coordinatey - Document coordinate
ProcessElementContainer.findProcessElementContainer(int, int)
public ProcessElementContainer findProcessElementContainerInside(int x,
int y)
ProcessElementContainer
findProcessElementContainerInside in interface ProcessElementContainerx - Document coordinatey - Document coordinate
ProcessElementContainer.findProcessElementContainerInside(int, int)public java.awt.Rectangle textDisplayBox()
textDisplayBox in interface CH.ifa.draw.standard.TextHolderpublic java.lang.String getText()
getText in interface CH.ifa.draw.standard.TextHolderpublic void setText(java.lang.String newText)
setText in interface CH.ifa.draw.standard.TextHolderpublic boolean acceptsTyping()
acceptsTyping in interface CH.ifa.draw.standard.TextHolderpublic int overlayColumns()
overlayColumns in interface CH.ifa.draw.standard.TextHolderpublic void connect(CH.ifa.draw.framework.Figure connectedFigure)
connect in interface CH.ifa.draw.standard.TextHolderpublic void disconnect(CH.ifa.draw.framework.Figure disconnectFigure)
disconnect in interface CH.ifa.draw.standard.TextHolderpublic java.awt.Font getFont()
getFont in interface CH.ifa.draw.standard.TextHolderpublic boolean handleEvent(VisualElementEvent event)
VisualElement
handleEvent in interface VisualElementhandleEvent in class AbstractTagFigureevent - Event that desribes the event
VisualElement.handleEvent(VisualElementEvent event)public void updatePresentationFigure()
VisualElement
updatePresentationFigure in interface VisualElementupdatePresentationFigure in class AbstractTagFigureVisualElement.updatePresentationFigure()public java.awt.Color getDefaultFillColor()
Colorizable
getDefaultFillColor in interface ColorizableColorizable.getDefaultFillColor()public void dragStarted(java.awt.datatransfer.Transferable transferable)
InteractionClient
dragStarted in interface InteractionClientdragStarted in class AbstractTagFiguretransferable - Transferable to be draggedInteractionClient.dragStarted(Transferable)public void dragEnded(java.awt.datatransfer.Transferable transferable)
InteractionClient
dragEnded in interface InteractionClientdragEnded in class AbstractTagFiguretransferable - Transferable that has been draggedInteractionClient.dragEnded(Transferable)
public java.util.List getDropRegions(java.util.List flavors,
java.awt.datatransfer.Transferable data,
java.awt.event.MouseEvent mouseEvent)
InteractionClient
getDropRegions in interface InteractionClientgetDropRegions in class AbstractTagFigureflavors - List of data flavors to checkdata - Transferable to be importedmouseEvent - Mouse event that initiated the drag action
DragAwareRegion object or null if the drop client
cannot satisfy at least one of the supplied data flavors.InteractionClient.getDropRegions(List, Transferable, MouseEvent)public java.awt.Rectangle[] getParamRegions()
public boolean importData(java.lang.Object regionId,
java.awt.datatransfer.Transferable data,
java.awt.Point p)
InteractionClient
importData in interface InteractionClientimportData in class AbstractTagFigureregionId - Id of the region to import into (see BasicDropRegion.getId)data - Transferable to importp - Drop point in glass coordinates
InteractionClient.importData(Object, Transferable, Point)public java.util.List getImportersAt(java.awt.Point p)
InteractionClient
getImportersAt in interface InteractionClientgetImportersAt in class AbstractTagFigurep - Current mouse position in screen coordinates
Importer objects or nullInteractionClient.getImportersAt(Point)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||