protected boolean isValidState(mxCellState state){
  return true;
}

protected boolean isValidState ( mxCellState state ) { return true ; }
returns true if the given state is a valid state . if this returns true , then the state is stored in validstate . the return value of this method is used as the argument for getmarkercolor .
