Class ConnectionGroupStructure
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.Group
pamViewFX.fxNodes.connectionPane.StandardConnectionNode
pamViewFX.fxNodes.connectionPane.structures.ConnectionGroupStructure
- All Implemented Interfaces:
 javafx.css.Styleable,javafx.event.EventTarget,ConnectionNode,ConnectionStructure,ConnectionSubGroup
- Direct Known Subclasses:
 PamGroupStructure
public class ConnectionGroupStructure
extends StandardConnectionNode
implements ConnectionStructure, ConnectionSubGroup
A node which holds other connection nodes, minimising the space they use in
 the data model. This has one connection point which is passed to all
 connection nodes in the group. Hence all connection nodes in the group have
 the same parent.
- Author:
 - Jamie Macaulay
 
- 
Property Summary
Properties inherited from class pamViewFX.fxNodes.connectionPane.StandardConnectionNode
plugX, plugY, socketX, socketYProperties inherited from class javafx.scene.Group
autoSizeChildrenProperties inherited from class javafx.scene.Parent
needsLayoutProperties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible - 
Nested Class Summary
Nested classes/interfaces inherited from interface pamViewFX.fxNodes.connectionPane.structures.ConnectionStructure
ConnectionStructure.ConnectionStructureType - 
Field Summary
Fields inherited from class pamViewFX.fxNodes.connectionPane.StandardConnectionNode
CONNECTION_PANE_CLICK, connectionPane, cornerRadius, DEFUALT_PREF_HEIGHT, DEFUALT_PREF_WIDTH, DRAG_DROP, DRAGGING, DRAGGING_CHNAGED, plugBodyHeight, plugBodyWidth, plugEndHeight, plugEndWidthFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionCreate a default plug and adds to the ConnectionNode.voidbindConnectionNode(StandardConnectionNode connectionNode2) Bind a connection node to the group structure i.e.voidbindConnectionNode(StandardConnectionNode connectionNode2, boolean convertSceneLocation) Bind a connection node to the group structure i.e.Connection Node StuffChange Plug BehaviourGet the ConnectionRectangle for a ConnectionNode.getConnectionSubNodes(boolean includeStructures) Get a list of the sub nodes within the node.Get the connection sub pane.Get the connection structure type.javafx.scene.control.TooltipGet the tool describing what the structure does.voidLayout defaults and binding for a socket.booleanvoidnotifyChange(int flag, StandardConnectionNode connectionNode2) Called from the connection pane to notify a change from another connection node.voidnotifyConnectionListeners(ConnectorNode connectedShape, ConnectorNode plugShape, int connected) Notify all connection listener in the node.voidnotifySubChange(int flag, StandardConnectionNode connectionNode2) Notify a change fromprotected voidremoveConnectionPlug(StandardConnectionPlug plug, boolean newPlug) Remove a connectionPlug from the connection node.voidvoidunBindConnectionNode(StandardConnectionNode connectionNode2) Called whenever a node leaves the group.Methods inherited from class pamViewFX.fxNodes.connectionPane.StandardConnectionNode
addConnectionListener, addConnectorNodeListener, addDefaultSocket, checkWithinPane, connectNode, disconnectNode, getBranchConnectionSockets, getChildConnectionNodes, getConnectionGroup, getConnectionPane, getConnectionPlugs, getConnectionSockets, getNodeId, getNumConnectionListeners, getOrientation, getParentConnectionNodes, getPlugConnectionLines, getSocketConnectionLines, initDefaultSocketLayout, isAllowBranchSockets, isMouseDisable, plugXProperty, plugYProperty, removeAllBranchSockets, removeAllConnectionPlugs, removeAllConnectionSockets, removeConnectionListener, removeConnectionSocket, removeConnectorNodeListener, setAllowBranchSocket, setAllowBranchSockets, setCollisionShapesNull, setCollisionShapesNull, setConnectionPane, setDisableMouseInteraction, setPlugX, setPlugY, socketXProperty, socketYProperty, triggerConnectionListeners, triggerConnectorNodeListenersMethods inherited from class javafx.scene.Group
autoSizeChildrenProperty, getChildren, isAutoSizeChildren, layoutChildren, minHeight, minWidth, prefHeight, prefWidth, setAutoSizeChildrenMethods inherited from class javafx.scene.Parent
computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClassCssMetaData, getClip, getContentBias, getCssMetaData, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, maxHeight, maxWidth, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resize, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getStyleableNode 
- 
Constructor Details
- 
ConnectionGroupStructure
 
 - 
 - 
Method Details
- 
createPlug
Change Plug Behaviour- Overrides:
 createPlugin classStandardConnectionNode- Returns:
 - the connection plug.
 
 - 
addDefaultPlug
Create a default plug and adds to the ConnectionNode. This is initially bound to the rectangle but un-binds as soon as a drag event is registered or enableFreePlug();- Overrides:
 addDefaultPlugin classStandardConnectionNode- Returns:
 - a default plug.
 
 - 
removeConnectionPlug
Description copied from class:StandardConnectionNodeRemove a connectionPlug from the connection node. If no plugs are present a new one will be added.- Overrides:
 removeConnectionPlugin classStandardConnectionNode- Parameters:
 newPlug- - true to add new plug IF there are no plugs after plug is removed.
 - 
initDefaultPlugLayout
Description copied from class:StandardConnectionNodeLayout defaults and binding for a socket.- Overrides:
 initDefaultPlugLayoutin classStandardConnectionNode
 - 
getToolTip
public javafx.scene.control.Tooltip getToolTip()Description copied from interface:ConnectionStructureGet the tool describing what the structure does.- Specified by:
 getToolTipin interfaceConnectionStructure- Returns:
 - get the tool tip for the
 
 - 
createNodeBody
Connection Node Stuff- Overrides:
 createNodeBodyin classStandardConnectionNode- Returns:
 - the connection node shape.
 
 - 
getConnectionNodeBody
Description copied from class:StandardConnectionNodeGet the ConnectionRectangle for a ConnectionNode. The ConnectionRectangle is essentially a blank pane and can have various controls, images etc. added.- Specified by:
 getConnectionNodeBodyin interfaceConnectionNode- Overrides:
 getConnectionNodeBodyin classStandardConnectionNode- Returns:
 - the ConnectionRectangle for a ConnectionNode.
 
 - 
getStructureType
Description copied from interface:ConnectionStructureGet the connection structure type.- Specified by:
 getStructureTypein interfaceConnectionStructure- Returns:
 - the strcuture type.
 
 - 
notifyChange
Description copied from class:StandardConnectionNodeCalled from the connection pane to notify a change from another connection node.- Specified by:
 notifyChangein interfaceConnectionNode- Overrides:
 notifyChangein classStandardConnectionNode- Parameters:
 flag- - the change typeconnectionNode2- - the connection node
 - 
notifySubChange
Notify a change from- Parameters:
 flag- - the flagconnectionNode2- - the connection node.
 - 
bindConnectionNode
Bind a connection node to the group structure i.e. it becomes a sub node of the group.- Parameters:
 connectionNode2- - the connection node to bind
 - 
bindConnectionNode
public void bindConnectionNode(StandardConnectionNode connectionNode2, boolean convertSceneLocation) Bind a connection node to the group structure i.e. it becomes a sub node of the group.- Parameters:
 connectionNode2- - the connection node to bindconvertSceneLocation- - true to convert from the current node co-ordinates to co-ordinates inside the sub pane.
 - 
unBindConnectionNode
Called whenever a node leaves the group.- Parameters:
 connectionNode2- - the connection node leaving the group.
 - 
notifyConnectionListeners
public void notifyConnectionListeners(ConnectorNode connectedShape, ConnectorNode plugShape, int connected) Description copied from interface:ConnectionNodeNotify all connection listener in the node.- Specified by:
 notifyConnectionListenersin interfaceConnectionNode- Overrides:
 notifyConnectionListenersin classStandardConnectionNode- Parameters:
 connectedShape-plugShape-connected-
 - 
resizeFinished
public void resizeFinished() - 
getConnectionSubNodes
Description copied from interface:ConnectionSubGroupGet a list of the sub nodes within the node.- Specified by:
 getConnectionSubNodesin interfaceConnectionSubGroup- Parameters:
 includeStructures- - true to also return connection structures- Returns:
 - a list of connection nodes.
 
 - 
getConnectionSubPane
Get the connection sub pane. This contains any sub connection nodes.- Returns:
 - the connection sub pane.
 
 - 
isExpanded
public boolean isExpanded() 
 -