public class SimpleRelationshipTypeColorMapper extends Object implements ColorMapper<org.neo4j.graphdb.RelationshipType>
| Constructor and Description |
|---|
SimpleRelationshipTypeColorMapper(Map<String,Color> mappings)
Map relationship types represented as strings to colors.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor(org.neo4j.graphdb.RelationshipType type)
Get color for an entity.
|
Collection<Color> |
getColors()
Colors to reserve - note that it will only be called once, any changes to
the collection after that will have no effect.
|
public Color getColor(org.neo4j.graphdb.RelationshipType type)
ColorMappergetColor in interface ColorMapper<org.neo4j.graphdb.RelationshipType>type - entity to get color forpublic Collection<Color> getColors()
ColorMappergetColors in interface ColorMapper<org.neo4j.graphdb.RelationshipType>Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.