|
||||||||||
| 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.process.NodeFigure
org.openbp.cockpit.modeler.figures.process.MultiSocketNodeFigure
public class MultiSocketNodeFigure
A Node Figure is the graphical representation of a multi socket node.
| Field Summary |
|---|
| Fields inherited from class org.openbp.cockpit.modeler.figures.process.NodeFigure |
|---|
displayBox, iconFigure, iconOverlayFigure, node, presentationFigure, REGION_TYPE, ROTATE_CCW, ROTATE_CW, shadowFigure |
| Fields inherited from class CH.ifa.draw.standard.CompositeFigure |
|---|
_nHighestZ, _nLowestZ, fFigures |
| Fields inherited from interface CH.ifa.draw.framework.Figure |
|---|
POPUP_MENU |
| Fields inherited from interface org.openbp.cockpit.modeler.figures.VisualElement |
|---|
VISUAL_DISPLAY_ALL, VISUAL_DND_PARTICIPANT, VISUAL_VISIBLE |
| Constructor Summary | |
|---|---|
MultiSocketNodeFigure()
Constructor. |
|
| Method Summary | |
|---|---|
protected javax.swing.Icon |
determineCenterIcon()
Initializes the icon in the center of the node. |
java.awt.Color |
getDefaultFillColor()
Returns the default color of the underlying activity node. |
protected java.lang.String |
getDropRegionIdForFlavor(java.util.List flavors,
java.awt.datatransfer.Transferable data,
java.awt.event.MouseEvent mouseEvent)
Determines if none of the flavors in the list is accepted by DnD actions. |
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 |
getImportersAt(java.awt.Point p)
Returns all importers which will be accepted at the given point by this client. |
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 |
initIcon()
Initializes the icons of the figure. |
protected void |
initOverlayIcon()
Initializes the overlay icon in the lower right corner of the node. |
protected void |
initTextFigure(java.lang.String textPosition)
Sets up the name tag of this node. |
void |
removeSocket(SocketFigure socketFigure)
Removes the socket from this node. |
| 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, read, remove, removeAll, removeAll, removeAll, replace, sendToBack, sendToLayer, write |
| Methods inherited from class CH.ifa.draw.standard.AbstractFigure |
|---|
addFigureChangeListener, addToContainer, canConnect, connectedTextLocator, connectionInsets, connectorVisibility, decompose, displayBox, displayBox, getAttribute, getZValue, invalidate, 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.generic.Colorizable |
|---|
getFillColor, setFillColor |
| 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 CH.ifa.draw.framework.FigureChangeListener |
|---|
figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate |
| Constructor Detail |
|---|
public MultiSocketNodeFigure()
| Method Detail |
|---|
protected void initIcon()
initIcon in class NodeFigureprotected javax.swing.Icon determineCenterIcon()
determineCenterIcon in class NodeFigureprotected void initOverlayIcon()
protected void initTextFigure(java.lang.String textPosition)
NodeFigure
initTextFigure in class NodeFiguretextPosition - Text position ("c"/"s"/"n"/"e"/"w")public void removeSocket(SocketFigure socketFigure)
socketFigure - Socket to removepublic java.awt.Color getDefaultFillColor()
getDefaultFillColor in interface Colorizable
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 NodeFigureflavors - 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.
protected java.lang.String getDropRegionIdForFlavor(java.util.List flavors,
java.awt.datatransfer.Transferable data,
java.awt.event.MouseEvent mouseEvent)
flavors - Flavors to checkdata - Transferred objectmouseEvent - Mouse event of the DnD drop action
public boolean importData(java.lang.Object regionId,
java.awt.datatransfer.Transferable data,
java.awt.Point p)
InteractionClient
importData in interface InteractionClientimportData in class NodeFigureregionId - Id of the region to import into (see BasicDropRegion.getId)data - Transferable to importp - Drop point in glass coordinates
public java.util.List getImportersAt(java.awt.Point p)
InteractionClient
getImportersAt in interface InteractionClientgetImportersAt in class NodeFigurep - Current mouse position in screen coordinates
Importer objects or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||