public class SimpleNodeColorMapper extends Object implements ColorMapper<org.neo4j.graphdb.Node>
| Constructor and Description |
|---|
SimpleNodeColorMapper(String propertyKey,
Map<Object,Color> mappings)
Map from property values to colors.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor(org.neo4j.graphdb.Node entity)
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.Node entity)
ColorMappergetColor in interface ColorMapper<org.neo4j.graphdb.Node>entity - entity to get color forpublic Collection<Color> getColors()
ColorMappergetColors in interface ColorMapper<org.neo4j.graphdb.Node>Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.