public class SimpleVertexProvider extends Object implements VertexProvider
Constructor and Description |
---|
SimpleVertexProvider(String namespace) |
Modifier and Type | Method and Description |
---|---|
void |
add(Collection<Vertex> vertices) |
void |
add(Vertex... vertices) |
void |
addVertexListener(VertexListener vertexListener) |
void |
clearVertices() |
boolean |
containsVertexId(String id)
Deprecated.
You should search by the namespace and ID tuple instead
|
boolean |
containsVertexId(VertexRef id,
Criteria... criteria) |
boolean |
contributesTo(String namespace)
This boolean returns true if the vertices in this provider are intended
to contribute to or overlay another namespace
|
List<Vertex> |
getChildren(VertexRef group,
Criteria... criteria) |
Vertex |
getParent(VertexRef vertex) |
List<Vertex> |
getRootGroup() |
int |
getSemanticZoomLevel(VertexRef vertex) |
Vertex |
getVertex(String namespace,
String id) |
Vertex |
getVertex(VertexRef reference,
Criteria... criteria) |
String |
getVertexNamespace()
A string used to identify references belonging to this provider
May only contain characters that make for a reasonable Java identifier
such as letters digits and underscore (no colons, periods, commas etc.)
|
int |
getVertexTotalCount() |
List<Vertex> |
getVertices(Collection<? extends VertexRef> references,
Criteria... criteria) |
List<Vertex> |
getVertices(Criteria... criteria)
Return an immutable list of vertices that match the criteria.
|
boolean |
hasChildren(VertexRef group) |
void |
remove(List<VertexRef> vertices) |
void |
remove(VertexRef... vertices) |
void |
removeVertexListener(VertexListener vertexListener) |
boolean |
setParent(VertexRef child,
VertexRef parent) |
void |
setVertices(List<Vertex> vertices) |
public SimpleVertexProvider(String namespace)
public String getVertexNamespace()
VertexProvider
getVertexNamespace
in interface VertexProvider
public boolean contributesTo(String namespace)
VertexProvider
contributesTo
in interface VertexProvider
namespace
- the namespace of a providerpublic Vertex getVertex(String namespace, String id)
getVertex
in interface VertexProvider
public Vertex getVertex(VertexRef reference, Criteria... criteria)
getVertex
in interface VertexProvider
public List<Vertex> getVertices(Collection<? extends VertexRef> references, Criteria... criteria)
getVertices
in interface VertexProvider
public List<Vertex> getRootGroup()
getRootGroup
in interface VertexProvider
public boolean hasChildren(VertexRef group)
hasChildren
in interface VertexProvider
public Vertex getParent(VertexRef vertex)
getParent
in interface VertexProvider
public boolean setParent(VertexRef child, VertexRef parent)
setParent
in interface VertexProvider
public List<Vertex> getChildren(VertexRef group, Criteria... criteria)
getChildren
in interface VertexProvider
public void addVertexListener(VertexListener vertexListener)
addVertexListener
in interface VertexProvider
public void removeVertexListener(VertexListener vertexListener)
removeVertexListener
in interface VertexProvider
public void add(Vertex... vertices)
public void add(Collection<Vertex> vertices)
public void remove(VertexRef... vertices)
public List<Vertex> getVertices(Criteria... criteria)
VertexProvider
getVertices
in interface VertexProvider
public int getSemanticZoomLevel(VertexRef vertex)
getSemanticZoomLevel
in interface VertexProvider
public void clearVertices()
clearVertices
in interface VertexProvider
public int getVertexTotalCount()
getVertexTotalCount
in interface VertexProvider
public boolean containsVertexId(String id)
containsVertexId
in interface VertexProvider
public boolean containsVertexId(VertexRef id, Criteria... criteria)
containsVertexId
in interface VertexProvider
Copyright © 2017. All rights reserved.