| org.netbeans.modules.web.jsf.navigation.graph.PageFlowScene
PageFlowScene | public class PageFlowScene extends GraphPinScene (Code) | | This class represents a GraphPinScene for the Navigation Editor which is soon to be the Page Flow Editor.
Nodes are represented by a Page, Edges by a Link, and components by a Pin.
Graphics were taken from the VMDGraphScene designed by David Kaspar for mobility pack.
The visualization is done by: VMDNodeWidget for nodes, VMDPinWidget for pins, ConnectionWidget fro edges.
The scene has 4 layers: background, main, connection, upper.
The scene has following actions: zoom, panning, rectangular selection.
author: Joelle Lam |
Inner Class :final public class PageNodeEditAction implements EditProvider | |
Inner Class :final public class CaseNodeTextFieldInplaceEditor implements TextFieldInplaceEditor | |
Inner Class :final public class PageNodeTextFieldInplaceEditor implements TextFieldInplaceEditor | |
Inner Class :static class SceneTestAccessor | |
PageFlowScene | public PageFlowScene(PageFlowView view)(Code) | | Creates a VMD graph scene.
Parameters: pageFlowView - or TopComponent/container. |
attachEdgeSourceAnchor | protected void attachEdgeSourceAnchor(NavigationCaseEdge edge, Pin oldSourcePin, Pin sourcePin)(Code) | | Attaches an anchor of a source pin an edge.
The anchor is a ProxyAnchor that switches between the anchor attached to the pin widget directly and
the anchor attached to the pin node widget based on the minimize-state of the node.
Parameters: edge - the edge Parameters: oldSourcePin - the old source pin Parameters: sourcePin - the new source pin |
attachEdgeTargetAnchor | protected void attachEdgeTargetAnchor(NavigationCaseEdge edge, Pin oldTargetPin, Pin targetPin)(Code) | | Attaches an anchor of a target pin an edge.
The anchor is a ProxyAnchor that switches between the anchor attached to the pin widget directly and
the anchor attached to the pin node widget based on the minimize-state of the node.
Parameters: edge - the edge Parameters: oldTargetPin - the old target pin Parameters: targetPin - the new target pin |
attachEdgeWidget | protected Widget attachEdgeWidget(NavigationCaseEdge edge)(Code) | | Implements attaching a widget to an edge. the widget is ConnectionWidget and has object-hover, select and move-control-point actions.
Parameters: edge - the widget attached to the edge |
attachNodeWidget | protected Widget attachNodeWidget(Page page)(Code) | | Implements attaching a widget to a node. The widget is VMDNodeWidget and has object-hover, select, popup-menu and move actions.
Parameters: node - the node the widget attached to the node, will return null if |
attachPinWidget | protected Widget attachPinWidget(Page pageNode, Pin pinNode)(Code) | | Implements attaching a widget to a pin. The widget is VMDPinWidget and has object-hover and select action.
The the node id ends with "#default" then the pin is the default pin of a node and therefore it is non-visual.
Parameters: node - the node Parameters: pinNode - the widget attached to the pin, null, if it is a default pin |
createMalFormedWidget | public void createMalFormedWidget()(Code) | | To show a mal formed page.
|
destoryPageFlowScene | public void destoryPageFlowScene()(Code) | | |
detachNodeWidget | protected void detachNodeWidget(Page node, Widget widget)(Code) | | |
getConnectionLayer | public LayerWidget getConnectionLayer()(Code) | | |
getDefaultPin | public Pin getDefaultPin(Page pageNode)(Code) | | Parameters: pageNode - |
getPageFlowView | public PageFlowView getPageFlowView()(Code) | | Get the PageFlowView TopComponent
PageFlowView |
getPopupMenuProvider | public PopupMenuProvider getPopupMenuProvider()(Code) | | |
removeMalFormedWidget | public void removeMalFormedWidget()(Code) | | Removed the mal formed notes on the screen.
|
updateNodeWidgetActions | final public void updateNodeWidgetActions(Page page)(Code) | | |
|
|