| PREV CLASS Documentation homepage NEXT CLASS |
IlvObject
|
+--IlvPropertyStateManager
|
+--IlvFacesProxy
|
+--IlvSizedViewProxy
|
+--IlvBasicViewProxy
|
+--IlvFacesViewProxy
|
+--IlvFacesTiledViewProxy
|
+--IlvDiagrammerTiledViewProxy
IlvDiagrammerTiledViewProxy is an extension of the
IlvFacesTiledViewProxy for the JViews Diagrammer module.
| Constructor Summary | |
|---|---|
IlvDiagrammerTiledViewProxy(clientId, refNodeId, width, height, tileSize, 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. |
|
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 |
IlvDiagrammerTiledViewProxy(clientId, refNodeId, width, height, tileSize, 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()
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 {@link IlvFacesViewProxy#setInteractor()}.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 {@link IlvFacesViewProxy#setInteractor()}.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 |