| PREV CLASS Documentation homepage NEXT CLASS |
IlvObject
|
+--IlvPropertyStateManager
|
+--IlvFacesProxy
|
+--IlvSizedViewProxy
|
+--IlvBasicViewProxy
|
+--IlvFacesViewProxy
|
+--IlvDiagrammerViewProxy
IlvDiagrammerViewProxy is an extension of the
IlvFacesViewProxy for the JViews Diagrammer module. | Constructor Summary | |
|---|---|
IlvDiagrammerViewProxy(clientId, refNodeId, width, height, editable)
|
|
| Method Summary | |
|---|---|
createLink(sourceX, sourceY, destX, destY, tag, properties)
Creates a link on the diagram from (sourceX, sourceY) position to (destX, destY) position, providing that nodes existing at that two positions. |
|
createNode(x, y, tag, properties)
Creates a node on the diagram at the given (x, y) position. |
|
getDataSourceId()
Returns the data source identifier. |
|
getProject()
Returns the diagrammer project URL, if set. |
|
getSelectionManager()
Returns the selection manager of this view. |
|
getStyleSheets()
Returns the style sheets set on this component. |
|
performJSFAction(mb, params, capabilities, capabilitiesParams)
Performs a predefined action that will invoke the specified method binding. |
|
setCreateLinkInteractor(tag, oneshot, properties)
Sets an interactor on the view that allows you to create a link on the diagram with the given tag. |
|
setCreateNodeInteractor(tag, oneshot, properties)
Sets an interactor on the view that allows you to create a node on the diagram with the given tag. |
|
setDataSourceId(dataSourceId, update)
Sets the data source identifier. |
|
setProject(project, update, showAll)
Sets the JViews Diagrammer Designer project URL. |
|
setStyleSheets(css, update)
Sets the style sheets to apply to the diagrammer. |
|
| Constructor Detail |
IlvDiagrammerViewProxy(clientId, refNodeId, width, height, editable)
| Method Detail |
createLink(sourceX, sourceY, destX, destY, tag, properties)
<jvdf:diagrammerView/> is not editable.
var sourceX, sourceY;
function onmousedown(e) {
// store position
var e = diag_proxy.getObject().getGlassView().enhanceEvent(e);
sourceX = e.mouseX;
sourceY = e.mouseY;
}
function onmouseclicked(e) {
var e = diag_proxy.getObject().getGlassView().enhanceEvent(e);
diag_proxy.createNode(sourceX, sourceY, e.mouseX, e.mouseY, "tag");
}
x - the x coordinate where to create the node in the client-side view
coordinate system.y - the y coordinate where to create the node in the client-side view
coordinate system.tag - The tag of the created node.properties - an object of properties to be set containing keys and
values for each of the property to be set at creation time
({propertyName1:"propertyValue1", propertyName2:"propertyValue2"}).
This parameter is optional.
createNode(x, y, tag, properties)
<jvdf:diagrammerView/> is not editable.
function onmouseclicked(e) {
var e = diag_proxy.getObject().getGlassView().enhanceEvent(e);
diag_proxy.createNode(e.mouseX, e.mouseY, "tag");
}
x - the x coordinate where to create the node in the client-side view
coordinate system.y - the y coordinate where to create the node in the client-side view
coordinate system.tag - The tag of the created node.properties - an object of properties to be set containing keys and
values for each of the property to be set at creation time
({propertyName1:"propertyValue1", propertyName2:"propertyValue2"}).
This parameter is optional.
getDataSourceId()
getProject()
getSelectionManager()
getStyleSheets()
performJSFAction(mb, params, capabilities, capabilitiesParams)
This action will be executed before the image generation.
The signature of the method must be void methodName (IlvDiagrammer, String[]) where
the first parameter is the IlvDiagrammer instance used to draw the diagram and the second
parameter is the array of action parameters.
The action must only change the IlvDiagrammer instance as only the image is refreshed (the JSF components are not).
If the view is a dashboard view, simply cast the IlvDiagrammer into an IlvDashboardDiagram.
mb - The method binding to invoke.params - A String array.capabilities - Indicates whether the action is affecting the capabilities
(like the manager bounds or the layer list, for example) or not.capabilitiesParams - The array that contains the parameter to pass to the getCapabilities method
(if the capabilities parameter is set to true).
setCreateLinkInteractor(tag, oneshot, properties)
<jvdf:diagrammerView/> is not editable. tag - The tag of the created link.oneshot - If true the previous interactor will be pushed back
once a node has been created. Otherwise the interactor will not
be removed until another interactor is set by the setInteractor() method.properties - an object of properties to be set containing keys and
values for each of the property to be set at creation time
({propertyName1:"propertyValue1", propertyName2:"propertyValue2"}).
This parameter is optional.
setCreateNodeInteractor(tag, oneshot, properties)
<jvdf:diagrammerView/> is not editable. tag - The tag of the created node.oneshot - If true the previous interactor will be pushed back
once a node has been created. Otherwise the interactor will not
be removed until another interactor is set by the setInteractor() method.properties - an object of properties to be set containing keys and
values for each of the property to be set at creation time
({propertyName1:"propertyValue1", propertyName2:"propertyValue2"}).
This parameter is optional.
setDataSourceId(dataSourceId, update)
dataSourceId - The data source identifier.update - A flag indicating if the view and capabilities should be updated.setProject(project, update, showAll)
project - The project URL to set.update - A flag indicating if the view and capabilities should be updated.showAll - A flag indicating that the zoom level should be reset if the update parameter is set to true.setStyleSheets(css, update)
css - The style sheets to apply.update - A flag indicating if the view and capabilities should be updated.| Inherited Methods from IlvFacesViewProxy |
| Inherited Methods from IlvBasicViewProxy |
| Inherited Methods from IlvSizedViewProxy |
| Inherited Methods from IlvFacesProxy |
| Inherited Methods from IlvPropertyStateManager |
| Inherited Methods from IlvObject |
| PREV CLASS Documentation homepage NEXT CLASS |