public class GraphicEdge.EdgeGroup
extends java.lang.Object
GraphicEdge.multi
attribute) inside the multi-representation.Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<GraphicEdge> |
edges
The set of multiple edges.
|
Constructor and Description |
---|
EdgeGroup(GraphicEdge first,
GraphicEdge second)
Create a new edge group, starting with two edges.
|
Modifier and Type | Method and Description |
---|---|
void |
decrement(GraphicEdge edge)
Remove an edge from the group.
|
int |
getCount()
Number of edges in this group.
|
GraphicEdge |
getEdge(int i)
I-th edge of the group.
|
void |
increment(GraphicEdge edge)
Add an edge in the group.
|
public java.util.ArrayList<GraphicEdge> edges
public EdgeGroup(GraphicEdge first, GraphicEdge second)
first
- The initial edge.second
- The second edge.public GraphicEdge getEdge(int i)
i
- The edge index.public int getCount()
public void increment(GraphicEdge edge)
edge
- The edge to add.public void decrement(GraphicEdge edge)
edge
- The edge to remove.