code: function mxCellHighlight(graph, highlightColor, strokeWidth, dashed)
  {
  	if (graph != null)
  	{
  		this.graph = graph;
  		this.highlightColor = (highlightColor != null) ? highlightColor : mxConstants.DEFAULT_VALID_COLOR;
  		this.strokeWidth = (strokeWidth != null) ? strokeWidth : mxConstants.HIGHLIGHT_STROKEWIDTH;
  		this.dashed = (dashed != null) ? dashed : false;
  		this.opacity = mxConstants.HIGHLIGHT_OPACITY;
  
  		// Updates the marker if the graph changes
  		this.repaintHandler = mxUtils.bind(this, function()
  		{
  			// Updates reference to state
  			if (this.state != null)
  			{
  				var tmp = this.graph.view.getState(this.state.cell);
  				
  				if (tmp == null)
  				{
  					this.hide();
  				}
  				else
  				{
  					this.state = tmp;
  					this.repaint();
  				}
  			}
  		});
  
  		this.graph.getView().addListener(mxEvent.SCALE, this.repaintHandler);
  		this.graph.getView().addListener(mxEvent.TRANSLATE, this.repaintHandler);
  		this.graph.getView().addListener(mxEvent.SCALE_AND_TRANSLATE, this.repaintHandler);
  		this.graph.getModel().addListener(mxEvent.CHANGE, this.repaintHandler);
  		
  		// Hides the marker if the current root changes
  		this.resetHandler = mxUtils.bind(this, function()
  		{
  			this.hide();
  		});
  
  		this.graph.getView().addListener(mxEvent.DOWN, this.resetHandler);
  		this.graph.getView().addListener(mxEvent.UP, this.resetHandler);
  	}
  }
docs: Copyright (c) 2006-2015, JGraph Ltd
  Copyright (c) 2006-2015, Gaudenz Alder
   
  Class: mxCellHighlight
  
  A helper class to highlight cells. Here is an example for a given cell.
  
  (code)
  var highlight = new mxCellHighlight(graph, '#ff0000', 2);
  highlight.highlight(graph.view.getState(cell)));
  (end)
  
  Constructor: mxCellHighlight
  
  Constructs a cell highlight.