* @param color
*/
public void highlightCell(final Cell cell, final boolean highlight, final ColorRGBA color) {
CellRendererJME r = (CellRendererJME) cell.getCellRenderer(Cell.RendererType.RENDERER_JME);
Entity entity = r.getEntity();
RenderComponent rc = entity.getComponent(RenderComponent.class);
//check if object has Navigate-To capability
final NewInteractionComponent hc = cell.getComponent(NewInteractionComponent.class);
if (hc != null && hc.isHighlightEnable()) {
if (rc == null) {
return;
}
TreeScan.findNode(rc.getSceneRoot(), Geometry.class, new ProcessNodeInterface() {
public boolean processNode(final Spatial s) {
s.setGlowEnabled(highlight);
float comps[] = hc.getHighlightColor().getColorComponents(null);
ColorRGBA newcolor = new ColorRGBA((float) comps[0],
(float) comps[1],