-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CYTOSCAPE-12787 Add support for edge z-order.
- Loading branch information
1 parent
54f86a7
commit 95138b7
Showing
6 changed files
with
70 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...odel-api/src/main/java/org/cytoscape/view/model/spacial/EdgeSpacialIndex2DEnumerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.cytoscape.view.model.spacial; | ||
|
||
import org.cytoscape.model.CyEdge; | ||
import org.cytoscape.model.CyNode; | ||
import org.cytoscape.view.model.View; | ||
|
||
public interface EdgeSpacialIndex2DEnumerator { | ||
|
||
int size(); | ||
|
||
boolean hasNext(); | ||
|
||
View<CyEdge> nextEdge(); | ||
|
||
View<CyEdge> nextEdgeWithNodeExtents(float[] sourceExtents, float[] targetExtents, View<CyNode>[] nodes); | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
viewmodel-api/src/main/java/org/cytoscape/view/model/spacial/NetworkSpacialIndex2D.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.cytoscape.view.model.spacial; | ||
|
||
/** | ||
* A spacial index used to query for locations of Nodes and Edges in a 2D representation of a network. | ||
*/ | ||
public interface NetworkSpacialIndex2D extends SpacialIndex2D<Long> { | ||
|
||
|
||
public NodeSpacialIndex2DEnumerator queryAllNodes(); | ||
|
||
public NodeSpacialIndex2DEnumerator queryOverlapNodes(float xMin, float yMin, float xMax, float yMax); | ||
|
||
|
||
public EdgeSpacialIndex2DEnumerator queryAllEdges(); | ||
|
||
public EdgeSpacialIndex2DEnumerator queryOverlapEdges(float xMin, float yMin, float xMax, float yMax); | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
...odel-api/src/main/java/org/cytoscape/view/model/spacial/NodeSpacialIndex2DEnumerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.cytoscape.view.model.spacial; | ||
|
||
import org.cytoscape.model.CyNode; | ||
import org.cytoscape.view.model.View; | ||
|
||
public interface NodeSpacialIndex2DEnumerator extends SpacialIndex2DEnumerator<Long> { | ||
|
||
public View<CyNode> nextNode(); | ||
|
||
public View<CyNode> nextNodeExtents(float[] extents); | ||
|
||
} |