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, socketY
Properties inherited from class javafx.scene.Group
autoSizeChildren
Properties inherited from class javafx.scene.Parent
needsLayout
Properties 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, cornerRadius, DEFUALT_PREF_HEIGHT, DEFUALT_PREF_WIDTH, DRAG_DROP, DRAGGING, DRAGGING_CHNAGED, plugBodyHeight, plugBodyWidth, plugEndHeight, plugEndWidth
Fields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a default plug and adds to the ConnectionNode.void
bindConnectionNode
(StandardConnectionNode connectionNode2) Bind a connection node to the group structure i.e.void
bindConnectionNode
(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.Tooltip
Get the tool describing what the structure does.void
Layout defaults and binding for a socket.boolean
void
notifyChange
(int flag, StandardConnectionNode connectionNode2) Called from the connection pane to notify a change from another connection node.void
notifyConnectionListeners
(ConnectorNode connectedShape, ConnectorNode plugShape, int connected) Notify all connection listener in the node.void
notifySubChange
(int flag, StandardConnectionNode connectionNode2) Notify a change fromvoid
void
unBindConnectionNode
(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
Methods inherited from class javafx.scene.Group
autoSizeChildrenProperty, getChildren, isAutoSizeChildren, minHeight, minWidth, prefHeight, prefWidth, setAutoSizeChildren
Methods inherited from class javafx.scene.Parent
getBaselineOffset, getChildrenUnmodifiable, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout
Methods 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, 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, setEffect, setEventDispatcher, setFocusTraversable, 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, 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, visibleProperty
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javafx.css.Styleable
getStyleableNode
-
Constructor Details
-
ConnectionGroupStructure
-
-
Method Details
-
createPlug
Change Plug Behaviour- Overrides:
createPlug
in 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:
addDefaultPlug
in classStandardConnectionNode
- Returns:
- a default plug.
-
initDefaultPlugLayout
Description copied from class:StandardConnectionNode
Layout defaults and binding for a socket.- Overrides:
initDefaultPlugLayout
in classStandardConnectionNode
-
getToolTip
public javafx.scene.control.Tooltip getToolTip()Description copied from interface:ConnectionStructure
Get the tool describing what the structure does.- Specified by:
getToolTip
in interfaceConnectionStructure
- Returns:
- get the tool tip for the
-
createNodeBody
Connection Node Stuff- Overrides:
createNodeBody
in classStandardConnectionNode
- Returns:
- the connection node shape.
-
getConnectionNodeBody
Description copied from class:StandardConnectionNode
Get the ConnectionRectangle for a ConnectionNode. The ConnectionRectangle is essentially a blank pane and can have various controls, images etc. added.- Specified by:
getConnectionNodeBody
in interfaceConnectionNode
- Overrides:
getConnectionNodeBody
in classStandardConnectionNode
- Returns:
- the ConnectionRectangle for a ConnectionNode.
-
getStructureType
Description copied from interface:ConnectionStructure
Get the connection structure type.- Specified by:
getStructureType
in interfaceConnectionStructure
- Returns:
- the strcuture type.
-
notifyChange
Description copied from class:StandardConnectionNode
Called from the connection pane to notify a change from another connection node.- Specified by:
notifyChange
in interfaceConnectionNode
- Overrides:
notifyChange
in 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:ConnectionNode
Notify all connection listener in the node.- Specified by:
notifyConnectionListeners
in interfaceConnectionNode
- Overrides:
notifyConnectionListeners
in classStandardConnectionNode
-
resizeFinished
public void resizeFinished() -
getConnectionSubNodes
Description copied from interface:ConnectionSubGroup
Get a list of the sub nodes within the node.- Specified by:
getConnectionSubNodes
in 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()
-