Author: Christian Lopes
Date: 2010-11-29 07:56:22 -0800 (Mon, 29 Nov 2010)
New Revision: 23022
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/GraphMediator.as
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphView.as
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
Log:
Update line style when applying a new visual style.
Fix that updates edge curvature when removing an edge filter.
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/GraphMediator.as
===================================================================
--- cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/GraphMediator.as
2010-11-29 15:45:48 UTC (rev 23021)
+++ cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/GraphMediator.as
2010-11-29 15:56:22 UTC (rev 23022)
@@ -258,6 +258,7 @@
var edges:* = graphProxy.graphData.edges;
var e:EdgeSprite;
for each (e in edges) {
+ e.props.curvature = Edges.curvature(e);
e.visible = Edges.visible(e);
}
}
@@ -677,12 +678,12 @@
if (_draggingComponent) vis.updateDragRectangle(amountX, amountY);
}
- private function onSelect(evt:SelectionEvent):void {for each (var item
in evt.items) { trace(" S---> " + item.data.label); }
+ private function onSelect(evt:SelectionEvent):void {
if (evt.items != null && evt.items.length > 0)
sendNotification(ApplicationFacade.SELECT, evt.items);
}
- private function onDeselect(evt:SelectionEvent):void {for each (var
item in evt.items) { trace(" D---> " + item.data.label); }
+ private function onDeselect(evt:SelectionEvent):void {
if (evt.items != null && evt.items.length > 0)
sendNotification(ApplicationFacade.DESELECT, evt.items);
}
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphView.as
===================================================================
---
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphView.as
2010-11-29 15:45:48 UTC (rev 23021)
+++
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphView.as
2010-11-29 15:56:22 UTC (rev 23022)
@@ -270,6 +270,7 @@
e.props.targetArrowColor = Edges.targetArrowColor(e);
e.alpha = Edges.alpha(e);
e.arrowType = Edges.targetArrowShape(e);
+ e.props.lineStyle = Edges.lineStyle(e);
e.props.curvature = Edges.curvature(e);
e.filters = Edges.filters(e);
if (e.props.label != null) e.props.label.alpha = e.alpha;
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
===================================================================
---
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
2010-11-29 15:45:48 UTC (rev 23021)
+++
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/view/components/GraphVis.as
2010-11-29 15:56:22 UTC (rev 23022)
@@ -229,6 +229,9 @@
// Tooltips:
// ---------------------------------------------------------
tooltipControl.showDelay =
_style.getValue(VisualProperties.TOOLTIP_DELAY) as Number;
+
+ // Force the rendering--might be necessary for some browsers:
+ DirtySprite.renderDirty();
}
public function applyLayout(layoutObj:Object):Transition {
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.